Lines Matching defs:event_mod
946 static void free_event_mod(struct event_mod_load *event_mod)
948 list_del(&event_mod->list);
949 kfree(event_mod->module);
950 kfree(event_mod->match);
951 kfree(event_mod->system);
952 kfree(event_mod->event);
953 kfree(event_mod);
958 struct event_mod_load *event_mod, *n;
960 list_for_each_entry_safe(event_mod, n, &tr->mod_events, list) {
961 free_event_mod(event_mod);
968 struct event_mod_load *event_mod, *n;
971 list_for_each_entry_safe(event_mod, n, &tr->mod_events, list) {
972 if (strcmp(event_mod->module, mod) != 0)
975 if (match && (!event_mod->match || strcmp(event_mod->match, match) != 0))
979 (!event_mod->system || strcmp(event_mod->system, system) != 0))
983 (!event_mod->event || strcmp(event_mod->event, event) != 0))
986 free_event_mod(event_mod);
996 struct event_mod_load *event_mod;
1006 event_mod = kzalloc_obj(*event_mod);
1007 if (!event_mod)
1010 INIT_LIST_HEAD(&event_mod->list);
1011 event_mod->module = kstrdup(mod, GFP_KERNEL);
1012 if (!event_mod->module)
1016 event_mod->match = kstrdup(match, GFP_KERNEL);
1017 if (!event_mod->match)
1022 event_mod->system = kstrdup(system, GFP_KERNEL);
1023 if (!event_mod->system)
1028 event_mod->event = kstrdup(event, GFP_KERNEL);
1029 if (!event_mod->event)
1033 list_add(&event_mod->list, &tr->mod_events);
1038 free_event_mod(event_mod);
1639 struct event_mod_load *event_mod;
1662 iter->event_mod = list_entry(&tr->mod_events, struct event_mod_load, list);
1667 list_for_each_entry_continue(iter->event_mod, &tr->mod_events, list)
1807 if (iter->event_mod->match) {
1808 seq_printf(m, "%s:mod:%s\n", iter->event_mod->match,
1809 iter->event_mod->module);
1813 system = iter->event_mod->system ? : "*";
1814 event = iter->event_mod->event ? : "*";
1816 seq_printf(m, "%s:%s:mod:%s\n", system, event, iter->event_mod->module);
4030 struct event_mod_load *event_mod, *n;
4032 list_for_each_entry_safe(event_mod, n, &tr->mod_events, list) {
4033 if (strcmp(event_mod->module, mod->name) != 0)
4036 __ftrace_set_clr_event_nolock(tr, event_mod->match,
4037 event_mod->system,
4038 event_mod->event, 1, mod->name);
4039 free_event_mod(event_mod);