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()
921 static void __put_system(struct event_subsystem *system) in __put_system() argument
923 struct event_filter *filter = system->filter; in __put_system()
925 WARN_ON_ONCE(system_refcount(system) == 0); in __put_system()
926 if (system_refcount_dec(system)) in __put_system()
929 list_del(&system->list); in __put_system()
935 kfree_const(system->name); in __put_system()
936 kfree(system); in __put_system()
939 static void __get_system(struct event_subsystem *system) in __get_system() argument
941 WARN_ON_ONCE(system_refcount(system) == 0); in __get_system()
942 system_refcount_inc(system); in __get_system()
999 remove_subsystem(file->system); in remove_event_file_dir()
1030 strcmp(match, call->class->system) != 0) in __ftrace_set_clr_event_nolock()
1033 if (sub && strcmp(sub, call->class->system) != 0) in __ftrace_set_clr_event_nolock()
1119 int trace_set_clr_event(const char *system, const char *event, int set) in trace_set_clr_event() argument
1126 return __ftrace_set_clr_event(tr, NULL, system, event, set); in trace_set_clr_event()
1143 int trace_array_set_clr_event(struct trace_array *tr, const char *system, in trace_array_set_clr_event() argument
1152 return __ftrace_set_clr_event(tr, NULL, system, event, set); in trace_array_set_clr_event()
1277 if (strcmp(call->class->system, TRACE_SYSTEM) != 0) in t_show()
1278 seq_printf(m, "%s:", call->class->system); in t_show()
1432 struct event_subsystem *system = dir->subsystem; in system_enable_read() local
1447 if (system && strcmp(call->class->system, system->name) != 0) in system_enable_read()
1478 struct event_subsystem *system = dir->subsystem; in system_enable_write() local
1498 if (system) in system_enable_write()
1499 name = system->name; in system_enable_write()
1730 struct event_subsystem *system = NULL; in subsystem_open() local
1747 system = dir->subsystem; in subsystem_open()
1757 if (!system) in subsystem_open()
1821 struct event_subsystem *system = dir->subsystem; in subsystem_filter_read() local
1834 print_subsystem_event_filter(system, s); in subsystem_filter_read()
2250 struct event_subsystem *system; in create_new_subsystem() local
2253 system = kmalloc(sizeof(*system), GFP_KERNEL); in create_new_subsystem()
2254 if (!system) in create_new_subsystem()
2257 system->ref_count = 1; in create_new_subsystem()
2260 system->name = kstrdup_const(name, GFP_KERNEL); in create_new_subsystem()
2261 if (!system->name) in create_new_subsystem()
2264 system->filter = NULL; in create_new_subsystem()
2266 system->filter = kzalloc(sizeof(struct event_filter), GFP_KERNEL); in create_new_subsystem()
2267 if (!system->filter) in create_new_subsystem()
2270 list_add(&system->list, &event_subsystems); in create_new_subsystem()
2272 return system; in create_new_subsystem()
2275 kfree_const(system->name); in create_new_subsystem()
2276 kfree(system); in create_new_subsystem()
2284 struct event_subsystem *system, *iter; in event_subsystem_dir() local
2290 system = dir->subsystem; in event_subsystem_dir()
2291 if (strcmp(system->name, name) == 0) { in event_subsystem_dir()
2293 file->system = dir; in event_subsystem_dir()
2299 system = NULL; in event_subsystem_dir()
2302 system = iter; in event_subsystem_dir()
2311 if (!system) { in event_subsystem_dir()
2312 system = create_new_subsystem(name); in event_subsystem_dir()
2313 if (!system) in event_subsystem_dir()
2316 __get_system(system); in event_subsystem_dir()
2321 __put_system(system); in event_subsystem_dir()
2328 dir->subsystem = system; in event_subsystem_dir()
2329 file->system = dir; in event_subsystem_dir()
2338 kfree(system->filter); in event_subsystem_dir()
2339 system->filter = NULL; in event_subsystem_dir()
2355 if (!dir || !system) in event_subsystem_dir()
2410 if (strcmp(call->class->system, TRACE_SYSTEM) != 0) { in event_create_dir()
2411 d_events = event_subsystem_dir(tr, call->class->system, file, parent); in event_create_dir()
2736 if (!last_system || call->class->system != last_system) { in trace_event_eval_update()
2739 last_system = call->class->system; in trace_event_eval_update()
2753 if (call->class->system == map[i]->system) { in trace_event_eval_update()
3031 __find_event_file(struct trace_array *tr, const char *system, const char *event) in __find_event_file() argument
3046 strcmp(system, call->class->system) == 0) in __find_event_file()
3054 find_event_file(struct trace_array *tr, const char *system, const char *event) in find_event_file() argument
3058 file = __find_event_file(tr, system, event); in find_event_file()
3087 const char *system, in trace_get_event_file() argument
3106 file = find_event_file(tr, system, event); in trace_get_event_file()
3236 edata->file->event_call->class->system, in event_enable_print()
3345 const char *system; in event_enable_func() local
3358 system = strsep(¶m, ":"); in event_enable_func()
3367 file = find_event_file(tr, system, event); in event_enable_func()
3891 struct event_subsystem *system; in event_trace_self_tests() local
3916 if (call->class->system && in event_trace_self_tests()
3917 strcmp(call->class->system, "syscalls") == 0) in event_trace_self_tests()
3946 system = dir->subsystem; in event_trace_self_tests()
3949 if (strcmp(system->name, "ftrace") == 0) in event_trace_self_tests()
3952 pr_info("Testing event system %s: ", system->name); in event_trace_self_tests()
3954 ret = __ftrace_set_clr_event(tr, NULL, system->name, NULL, 1); in event_trace_self_tests()
3957 system->name); in event_trace_self_tests()
3963 ret = __ftrace_set_clr_event(tr, NULL, system->name, NULL, 0); in event_trace_self_tests()
3966 system->name); in event_trace_self_tests()