Lines Matching refs:system
56 static inline int system_refcount(struct event_subsystem *system) in system_refcount() argument
58 return system->ref_count; in system_refcount()
61 static int system_refcount_inc(struct event_subsystem *system) in system_refcount_inc() argument
63 return system->ref_count++; in system_refcount_inc()
66 static int system_refcount_dec(struct event_subsystem *system) in system_refcount_dec() argument
68 return --system->ref_count; in system_refcount_dec()
886 char *system; member
895 kfree(event_mod->system); in free_event_mod()
910 const char *match, const char *system, const char *event) in remove_cache_mod() argument
922 if (system && in remove_cache_mod()
923 (!event_mod->system || strcmp(event_mod->system, system) != 0)) in remove_cache_mod()
938 const char *match, const char *system, const char *event) in cache_mod() argument
948 return remove_cache_mod(tr, mod, match, system, event); in cache_mod()
965 if (system) { in cache_mod()
966 event_mod->system = kstrdup(system, GFP_KERNEL); in cache_mod()
967 if (!event_mod->system) in cache_mod()
989 const char *match, const char *system, const char *event) in cache_mod() argument
1195 static void __put_system(struct event_subsystem *system) in __put_system() argument
1197 struct event_filter *filter = system->filter; in __put_system()
1199 WARN_ON_ONCE(system_refcount(system) == 0); in __put_system()
1200 if (system_refcount_dec(system)) in __put_system()
1203 list_del(&system->list); in __put_system()
1209 kfree_const(system->name); in __put_system()
1210 kfree(system); in __put_system()
1213 static void __get_system(struct event_subsystem *system) in __get_system() argument
1215 WARN_ON_ONCE(system_refcount(system) == 0); in __get_system()
1216 system_refcount_inc(system); in __get_system()
1281 remove_subsystem(file->system); in remove_event_file_dir()
1332 strcmp(match, call->class->system) != 0) in __ftrace_set_clr_event_nolock()
1335 if (sub && strcmp(sub, call->class->system) != 0) in __ftrace_set_clr_event_nolock()
1442 int trace_set_clr_event(const char *system, const char *event, int set) in trace_set_clr_event() argument
1449 return __ftrace_set_clr_event(tr, NULL, system, event, set, NULL); in trace_set_clr_event()
1466 int trace_array_set_clr_event(struct trace_array *tr, const char *system, in trace_array_set_clr_event() argument
1475 return __ftrace_set_clr_event(tr, NULL, system, event, set, NULL); in trace_array_set_clr_event()
1641 if (strcmp(call->class->system, TRACE_SYSTEM) != 0) in t_show()
1642 seq_printf(m, "%s:", call->class->system); in t_show()
1657 const char *system; in s_show() local
1670 system = iter->event_mod->system ? : "*"; in s_show()
1673 seq_printf(m, "%s:%s:mod:%s\n", system, event, iter->event_mod->module); in s_show()
1836 struct event_subsystem *system = dir->subsystem; in system_enable_read() local
1851 if (system && strcmp(call->class->system, system->name) != 0) in system_enable_read()
1882 struct event_subsystem *system = dir->subsystem; in system_enable_write() local
1902 if (system) in system_enable_write()
1903 name = system->name; in system_enable_write()
2149 struct event_subsystem *system = NULL; in subsystem_open() local
2166 system = dir->subsystem; in subsystem_open()
2176 if (!system) in subsystem_open()
2240 struct event_subsystem *system = dir->subsystem; in subsystem_filter_read() local
2253 print_subsystem_event_filter(system, s); in subsystem_filter_read()
2701 struct event_subsystem *system; in create_new_subsystem() local
2704 system = kmalloc(sizeof(*system), GFP_KERNEL); in create_new_subsystem()
2705 if (!system) in create_new_subsystem()
2708 system->ref_count = 1; in create_new_subsystem()
2711 system->name = kstrdup_const(name, GFP_KERNEL); in create_new_subsystem()
2712 if (!system->name) in create_new_subsystem()
2715 system->filter = kzalloc(sizeof(struct event_filter), GFP_KERNEL); in create_new_subsystem()
2716 if (!system->filter) in create_new_subsystem()
2719 list_add(&system->list, &event_subsystems); in create_new_subsystem()
2721 return system; in create_new_subsystem()
2724 kfree_const(system->name); in create_new_subsystem()
2725 kfree(system); in create_new_subsystem()
2749 struct event_subsystem *system, *iter; in event_subsystem_dir() local
2766 system = dir->subsystem; in event_subsystem_dir()
2767 if (strcmp(system->name, name) == 0) { in event_subsystem_dir()
2769 file->system = dir; in event_subsystem_dir()
2775 system = NULL; in event_subsystem_dir()
2778 system = iter; in event_subsystem_dir()
2787 if (!system) { in event_subsystem_dir()
2788 system = create_new_subsystem(name); in event_subsystem_dir()
2789 if (!system) in event_subsystem_dir()
2792 __get_system(system); in event_subsystem_dir()
2803 __put_system(system); in event_subsystem_dir()
2811 dir->subsystem = system; in event_subsystem_dir()
2812 file->system = dir; in event_subsystem_dir()
2822 if (!dir || !system) in event_subsystem_dir()
3007 if (WARN_ON_ONCE(strcmp(call->class->system, TRACE_SYSTEM) == 0)) in event_create_dir()
3010 e_events = event_subsystem_dir(tr, call->class->system, file, parent); in event_create_dir()
3300 if (!last_system || call->class->system != last_system) { in trace_event_eval_update()
3303 last_system = call->class->system; in trace_event_eval_update()
3317 if (call->class->system == map[i]->system) { in trace_event_eval_update()
3335 const char *system; in event_in_systems() local
3341 system = call->class->system; in event_in_systems()
3342 p = strstr(systems, system); in event_in_systems()
3349 p += strlen(system); in event_in_systems()
3620 event_mod->system, in update_mod_cache()
3736 __find_event_file(struct trace_array *tr, const char *system, const char *event) in __find_event_file() argument
3751 strcmp(system, call->class->system) == 0) in __find_event_file()
3759 find_event_file(struct trace_array *tr, const char *system, const char *event) in find_event_file() argument
3763 file = __find_event_file(tr, system, event); in find_event_file()
3792 const char *system, in trace_get_event_file() argument
3811 file = find_event_file(tr, system, event); in trace_get_event_file()
3932 edata->file->event_call->class->system, in event_enable_print()
4042 const char *system; in event_enable_func() local
4055 system = strsep(¶m, ":"); in event_enable_func()
4063 file = find_event_file(tr, system, event); in event_enable_func()
4598 struct event_subsystem *system; in event_trace_self_tests() local
4623 if (call->class->system && in event_trace_self_tests()
4624 strcmp(call->class->system, "syscalls") == 0) in event_trace_self_tests()
4653 system = dir->subsystem; in event_trace_self_tests()
4656 if (strcmp(system->name, "ftrace") == 0) in event_trace_self_tests()
4659 pr_info("Testing event system %s: ", system->name); in event_trace_self_tests()
4661 ret = __ftrace_set_clr_event(tr, NULL, system->name, NULL, 1, NULL); in event_trace_self_tests()
4664 system->name); in event_trace_self_tests()
4670 ret = __ftrace_set_clr_event(tr, NULL, system->name, NULL, 0, NULL); in event_trace_self_tests()
4673 system->name); in event_trace_self_tests()