Lines Matching refs:system
46 static inline int system_refcount(struct event_subsystem *system) in system_refcount() argument
48 return system->ref_count; in system_refcount()
51 static int system_refcount_inc(struct event_subsystem *system) in system_refcount_inc() argument
53 return system->ref_count++; in system_refcount_inc()
56 static int system_refcount_dec(struct event_subsystem *system) in system_refcount_dec() argument
58 return --system->ref_count; in system_refcount_dec()
645 static void __put_system(struct event_subsystem *system) in __put_system() argument
647 struct event_filter *filter = system->filter; in __put_system()
649 WARN_ON_ONCE(system_refcount(system) == 0); in __put_system()
650 if (system_refcount_dec(system)) in __put_system()
653 list_del(&system->list); in __put_system()
659 kfree_const(system->name); in __put_system()
660 kfree(system); in __put_system()
663 static void __get_system(struct event_subsystem *system) in __get_system() argument
665 WARN_ON_ONCE(system_refcount(system) == 0); in __get_system()
666 system_refcount_inc(system); in __get_system()
723 remove_subsystem(file->system); in remove_event_file_dir()
754 strcmp(match, call->class->system) != 0) in __ftrace_set_clr_event_nolock()
757 if (sub && strcmp(sub, call->class->system) != 0) in __ftrace_set_clr_event_nolock()
842 int trace_set_clr_event(const char *system, const char *event, int set) in trace_set_clr_event() argument
849 return __ftrace_set_clr_event(tr, NULL, system, event, set); in trace_set_clr_event()
974 if (strcmp(call->class->system, TRACE_SYSTEM) != 0) in t_show()
975 seq_printf(m, "%s:", call->class->system); in t_show()
1097 struct event_subsystem *system = dir->subsystem; in system_enable_read() local
1111 if (system && strcmp(call->class->system, system->name) != 0) in system_enable_read()
1142 struct event_subsystem *system = dir->subsystem; in system_enable_write() local
1162 if (system) in system_enable_write()
1163 name = system->name; in system_enable_write()
1392 struct event_subsystem *system = NULL; in subsystem_open() local
1409 system = dir->subsystem; in subsystem_open()
1419 if (!system) in subsystem_open()
1486 struct event_subsystem *system = dir->subsystem; in subsystem_filter_read() local
1499 print_subsystem_event_filter(system, s); in subsystem_filter_read()
1843 struct event_subsystem *system; in create_new_subsystem() local
1846 system = kmalloc(sizeof(*system), GFP_KERNEL); in create_new_subsystem()
1847 if (!system) in create_new_subsystem()
1850 system->ref_count = 1; in create_new_subsystem()
1853 system->name = kstrdup_const(name, GFP_KERNEL); in create_new_subsystem()
1854 if (!system->name) in create_new_subsystem()
1857 system->filter = NULL; in create_new_subsystem()
1859 system->filter = kzalloc(sizeof(struct event_filter), GFP_KERNEL); in create_new_subsystem()
1860 if (!system->filter) in create_new_subsystem()
1863 list_add(&system->list, &event_subsystems); in create_new_subsystem()
1865 return system; in create_new_subsystem()
1868 kfree_const(system->name); in create_new_subsystem()
1869 kfree(system); in create_new_subsystem()
1878 struct event_subsystem *system; in event_subsystem_dir() local
1883 system = dir->subsystem; in event_subsystem_dir()
1884 if (strcmp(system->name, name) == 0) { in event_subsystem_dir()
1886 file->system = dir; in event_subsystem_dir()
1892 list_for_each_entry(system, &event_subsystems, list) { in event_subsystem_dir()
1893 if (strcmp(system->name, name) == 0) in event_subsystem_dir()
1897 if (&system->list == &event_subsystems) in event_subsystem_dir()
1898 system = NULL; in event_subsystem_dir()
1904 if (!system) { in event_subsystem_dir()
1905 system = create_new_subsystem(name); in event_subsystem_dir()
1906 if (!system) in event_subsystem_dir()
1909 __get_system(system); in event_subsystem_dir()
1914 __put_system(system); in event_subsystem_dir()
1921 dir->subsystem = system; in event_subsystem_dir()
1922 file->system = dir; in event_subsystem_dir()
1927 kfree(system->filter); in event_subsystem_dir()
1928 system->filter = NULL; in event_subsystem_dir()
1943 if (!dir || !system) in event_subsystem_dir()
1962 if (strcmp(call->class->system, TRACE_SYSTEM) != 0) { in event_create_dir()
1963 d_events = event_subsystem_dir(tr, call->class->system, file, parent); in event_create_dir()
2213 if (!last_system || call->class->system != last_system) { in trace_event_eval_update()
2216 last_system = call->class->system; in trace_event_eval_update()
2230 if (call->class->system == map[i]->system) { in trace_event_eval_update()
2470 __find_event_file(struct trace_array *tr, const char *system, const char *event) in __find_event_file() argument
2485 strcmp(system, call->class->system) == 0) in __find_event_file()
2493 find_event_file(struct trace_array *tr, const char *system, const char *event) in find_event_file() argument
2497 file = __find_event_file(tr, system, event); in find_event_file()
2590 edata->file->event_call->class->system, in event_enable_print()
2699 const char *system; in event_enable_func() local
2712 system = strsep(¶m, ":"); in event_enable_func()
2721 file = find_event_file(tr, system, event); in event_enable_func()
3246 struct event_subsystem *system; in event_trace_self_tests() local
3271 if (call->class->system && in event_trace_self_tests()
3272 strcmp(call->class->system, "syscalls") == 0) in event_trace_self_tests()
3301 system = dir->subsystem; in event_trace_self_tests()
3304 if (strcmp(system->name, "ftrace") == 0) in event_trace_self_tests()
3307 pr_info("Testing event system %s: ", system->name); in event_trace_self_tests()
3309 ret = __ftrace_set_clr_event(tr, NULL, system->name, NULL, 1); in event_trace_self_tests()
3312 system->name); in event_trace_self_tests()
3318 ret = __ftrace_set_clr_event(tr, NULL, system->name, NULL, 0); in event_trace_self_tests()
3321 system->name); in event_trace_self_tests()