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()
693 static void __put_system(struct event_subsystem *system) in __put_system() argument
695 struct event_filter *filter = system->filter; in __put_system()
697 WARN_ON_ONCE(system_refcount(system) == 0); in __put_system()
698 if (system_refcount_dec(system)) in __put_system()
701 list_del(&system->list); in __put_system()
707 kfree_const(system->name); in __put_system()
708 kfree(system); in __put_system()
711 static void __get_system(struct event_subsystem *system) in __get_system() argument
713 WARN_ON_ONCE(system_refcount(system) == 0); in __get_system()
714 system_refcount_inc(system); in __get_system()
771 remove_subsystem(file->system); in remove_event_file_dir()
802 strcmp(match, call->class->system) != 0) in __ftrace_set_clr_event_nolock()
805 if (sub && strcmp(sub, call->class->system) != 0) in __ftrace_set_clr_event_nolock()
891 int trace_set_clr_event(const char *system, const char *event, int set) in trace_set_clr_event() argument
898 return __ftrace_set_clr_event(tr, NULL, system, event, set); in trace_set_clr_event()
915 int trace_array_set_clr_event(struct trace_array *tr, const char *system, in trace_array_set_clr_event() argument
924 return __ftrace_set_clr_event(tr, NULL, system, event, set); in trace_array_set_clr_event()
1049 if (strcmp(call->class->system, TRACE_SYSTEM) != 0) in t_show()
1050 seq_printf(m, "%s:", call->class->system); in t_show()
1204 struct event_subsystem *system = dir->subsystem; in system_enable_read() local
1218 if (system && strcmp(call->class->system, system->name) != 0) in system_enable_read()
1249 struct event_subsystem *system = dir->subsystem; in system_enable_write() local
1269 if (system) in system_enable_write()
1270 name = system->name; in system_enable_write()
1499 struct event_subsystem *system = NULL; in subsystem_open() local
1516 system = dir->subsystem; in subsystem_open()
1526 if (!system) in subsystem_open()
1593 struct event_subsystem *system = dir->subsystem; in subsystem_filter_read() local
1606 print_subsystem_event_filter(system, s); in subsystem_filter_read()
2022 struct event_subsystem *system; in create_new_subsystem() local
2025 system = kmalloc(sizeof(*system), GFP_KERNEL); in create_new_subsystem()
2026 if (!system) in create_new_subsystem()
2029 system->ref_count = 1; in create_new_subsystem()
2032 system->name = kstrdup_const(name, GFP_KERNEL); in create_new_subsystem()
2033 if (!system->name) in create_new_subsystem()
2036 system->filter = NULL; in create_new_subsystem()
2038 system->filter = kzalloc(sizeof(struct event_filter), GFP_KERNEL); in create_new_subsystem()
2039 if (!system->filter) in create_new_subsystem()
2042 list_add(&system->list, &event_subsystems); in create_new_subsystem()
2044 return system; in create_new_subsystem()
2047 kfree_const(system->name); in create_new_subsystem()
2048 kfree(system); in create_new_subsystem()
2057 struct event_subsystem *system; in event_subsystem_dir() local
2062 system = dir->subsystem; in event_subsystem_dir()
2063 if (strcmp(system->name, name) == 0) { in event_subsystem_dir()
2065 file->system = dir; in event_subsystem_dir()
2071 list_for_each_entry(system, &event_subsystems, list) { in event_subsystem_dir()
2072 if (strcmp(system->name, name) == 0) in event_subsystem_dir()
2076 if (&system->list == &event_subsystems) in event_subsystem_dir()
2077 system = NULL; in event_subsystem_dir()
2083 if (!system) { in event_subsystem_dir()
2084 system = create_new_subsystem(name); in event_subsystem_dir()
2085 if (!system) in event_subsystem_dir()
2088 __get_system(system); in event_subsystem_dir()
2093 __put_system(system); in event_subsystem_dir()
2100 dir->subsystem = system; in event_subsystem_dir()
2101 file->system = dir; in event_subsystem_dir()
2106 kfree(system->filter); in event_subsystem_dir()
2107 system->filter = NULL; in event_subsystem_dir()
2122 if (!dir || !system) in event_subsystem_dir()
2177 if (strcmp(call->class->system, TRACE_SYSTEM) != 0) { in event_create_dir()
2178 d_events = event_subsystem_dir(tr, call->class->system, file, parent); in event_create_dir()
2430 if (!last_system || call->class->system != last_system) { in trace_event_eval_update()
2433 last_system = call->class->system; in trace_event_eval_update()
2447 if (call->class->system == map[i]->system) { in trace_event_eval_update()
2690 __find_event_file(struct trace_array *tr, const char *system, const char *event) in __find_event_file() argument
2705 strcmp(system, call->class->system) == 0) in __find_event_file()
2713 find_event_file(struct trace_array *tr, const char *system, const char *event) in find_event_file() argument
2717 file = __find_event_file(tr, system, event); in find_event_file()
2746 const char *system, in trace_get_event_file() argument
2765 file = find_event_file(tr, system, event); in trace_get_event_file()
2895 edata->file->event_call->class->system, in event_enable_print()
3004 const char *system; in event_enable_func() local
3017 system = strsep(&param, ":"); in event_enable_func()
3026 file = find_event_file(tr, system, event); in event_enable_func()
3563 struct event_subsystem *system; in event_trace_self_tests() local
3588 if (call->class->system && in event_trace_self_tests()
3589 strcmp(call->class->system, "syscalls") == 0) in event_trace_self_tests()
3618 system = dir->subsystem; in event_trace_self_tests()
3621 if (strcmp(system->name, "ftrace") == 0) in event_trace_self_tests()
3624 pr_info("Testing event system %s: ", system->name); in event_trace_self_tests()
3626 ret = __ftrace_set_clr_event(tr, NULL, system->name, NULL, 1); in event_trace_self_tests()
3629 system->name); in event_trace_self_tests()
3635 ret = __ftrace_set_clr_event(tr, NULL, system->name, NULL, 0); in event_trace_self_tests()
3638 system->name); in event_trace_self_tests()