Lines Matching refs:system

48 static inline int system_refcount(struct event_subsystem *system)  in system_refcount()  argument
50 return system->ref_count; in system_refcount()
53 static int system_refcount_inc(struct event_subsystem *system) in system_refcount_inc() argument
55 return system->ref_count++; in system_refcount_inc()
58 static int system_refcount_dec(struct event_subsystem *system) in system_refcount_dec() argument
60 return --system->ref_count; in system_refcount_dec()
901 static void __put_system(struct event_subsystem *system) in __put_system() argument
903 struct event_filter *filter = system->filter; in __put_system()
905 WARN_ON_ONCE(system_refcount(system) == 0); in __put_system()
906 if (system_refcount_dec(system)) in __put_system()
909 list_del(&system->list); in __put_system()
915 kfree_const(system->name); in __put_system()
916 kfree(system); in __put_system()
919 static void __get_system(struct event_subsystem *system) in __get_system() argument
921 WARN_ON_ONCE(system_refcount(system) == 0); in __get_system()
922 system_refcount_inc(system); in __get_system()
979 remove_subsystem(file->system); in remove_event_file_dir()
1010 strcmp(match, call->class->system) != 0) in __ftrace_set_clr_event_nolock()
1013 if (sub && strcmp(sub, call->class->system) != 0) in __ftrace_set_clr_event_nolock()
1099 int trace_set_clr_event(const char *system, const char *event, int set) in trace_set_clr_event() argument
1106 return __ftrace_set_clr_event(tr, NULL, system, event, set); in trace_set_clr_event()
1123 int trace_array_set_clr_event(struct trace_array *tr, const char *system, in trace_array_set_clr_event() argument
1132 return __ftrace_set_clr_event(tr, NULL, system, event, set); in trace_array_set_clr_event()
1257 if (strcmp(call->class->system, TRACE_SYSTEM) != 0) in t_show()
1258 seq_printf(m, "%s:", call->class->system); in t_show()
1412 struct event_subsystem *system = dir->subsystem; in system_enable_read() local
1427 if (system && strcmp(call->class->system, system->name) != 0) in system_enable_read()
1458 struct event_subsystem *system = dir->subsystem; in system_enable_write() local
1478 if (system) in system_enable_write()
1479 name = system->name; in system_enable_write()
1708 struct event_subsystem *system = NULL; in subsystem_open() local
1725 system = dir->subsystem; in subsystem_open()
1735 if (!system) in subsystem_open()
1802 struct event_subsystem *system = dir->subsystem; in subsystem_filter_read() local
1815 print_subsystem_event_filter(system, s); in subsystem_filter_read()
2231 struct event_subsystem *system; in create_new_subsystem() local
2234 system = kmalloc(sizeof(*system), GFP_KERNEL); in create_new_subsystem()
2235 if (!system) in create_new_subsystem()
2238 system->ref_count = 1; in create_new_subsystem()
2241 system->name = kstrdup_const(name, GFP_KERNEL); in create_new_subsystem()
2242 if (!system->name) in create_new_subsystem()
2245 system->filter = NULL; in create_new_subsystem()
2247 system->filter = kzalloc(sizeof(struct event_filter), GFP_KERNEL); in create_new_subsystem()
2248 if (!system->filter) in create_new_subsystem()
2251 list_add(&system->list, &event_subsystems); in create_new_subsystem()
2253 return system; in create_new_subsystem()
2256 kfree_const(system->name); in create_new_subsystem()
2257 kfree(system); in create_new_subsystem()
2266 struct event_subsystem *system; in event_subsystem_dir() local
2271 system = dir->subsystem; in event_subsystem_dir()
2272 if (strcmp(system->name, name) == 0) { in event_subsystem_dir()
2274 file->system = dir; in event_subsystem_dir()
2280 list_for_each_entry(system, &event_subsystems, list) { in event_subsystem_dir()
2281 if (strcmp(system->name, name) == 0) in event_subsystem_dir()
2285 if (&system->list == &event_subsystems) in event_subsystem_dir()
2286 system = NULL; in event_subsystem_dir()
2292 if (!system) { in event_subsystem_dir()
2293 system = create_new_subsystem(name); in event_subsystem_dir()
2294 if (!system) in event_subsystem_dir()
2297 __get_system(system); in event_subsystem_dir()
2302 __put_system(system); in event_subsystem_dir()
2309 dir->subsystem = system; in event_subsystem_dir()
2310 file->system = dir; in event_subsystem_dir()
2319 kfree(system->filter); in event_subsystem_dir()
2320 system->filter = NULL; in event_subsystem_dir()
2336 if (!dir || !system) in event_subsystem_dir()
2391 if (strcmp(call->class->system, TRACE_SYSTEM) != 0) { in event_create_dir()
2392 d_events = event_subsystem_dir(tr, call->class->system, file, parent); in event_create_dir()
2647 if (!last_system || call->class->system != last_system) { in trace_event_eval_update()
2650 last_system = call->class->system; in trace_event_eval_update()
2664 if (call->class->system == map[i]->system) { in trace_event_eval_update()
2921 __find_event_file(struct trace_array *tr, const char *system, const char *event) in __find_event_file() argument
2936 strcmp(system, call->class->system) == 0) in __find_event_file()
2944 find_event_file(struct trace_array *tr, const char *system, const char *event) in find_event_file() argument
2948 file = __find_event_file(tr, system, event); in find_event_file()
2977 const char *system, in trace_get_event_file() argument
2996 file = find_event_file(tr, system, event); in trace_get_event_file()
3126 edata->file->event_call->class->system, in event_enable_print()
3235 const char *system; in event_enable_func() local
3248 system = strsep(&param, ":"); in event_enable_func()
3257 file = find_event_file(tr, system, event); in event_enable_func()
3796 struct event_subsystem *system; in event_trace_self_tests() local
3821 if (call->class->system && in event_trace_self_tests()
3822 strcmp(call->class->system, "syscalls") == 0) in event_trace_self_tests()
3851 system = dir->subsystem; in event_trace_self_tests()
3854 if (strcmp(system->name, "ftrace") == 0) in event_trace_self_tests()
3857 pr_info("Testing event system %s: ", system->name); in event_trace_self_tests()
3859 ret = __ftrace_set_clr_event(tr, NULL, system->name, NULL, 1); in event_trace_self_tests()
3862 system->name); in event_trace_self_tests()
3868 ret = __ftrace_set_clr_event(tr, NULL, system->name, NULL, 0); in event_trace_self_tests()
3871 system->name); in event_trace_self_tests()