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()
932 static void __put_system(struct event_subsystem *system) in __put_system() argument
934 struct event_filter *filter = system->filter; in __put_system()
936 WARN_ON_ONCE(system_refcount(system) == 0); in __put_system()
937 if (system_refcount_dec(system)) in __put_system()
940 list_del(&system->list); in __put_system()
946 kfree_const(system->name); in __put_system()
947 kfree(system); in __put_system()
950 static void __get_system(struct event_subsystem *system) in __get_system() argument
952 WARN_ON_ONCE(system_refcount(system) == 0); in __get_system()
953 system_refcount_inc(system); in __get_system()
997 remove_subsystem(file->system); in remove_event_file_dir()
1028 strcmp(match, call->class->system) != 0) in __ftrace_set_clr_event_nolock()
1031 if (sub && strcmp(sub, call->class->system) != 0) in __ftrace_set_clr_event_nolock()
1117 int trace_set_clr_event(const char *system, const char *event, int set) in trace_set_clr_event() argument
1124 return __ftrace_set_clr_event(tr, NULL, system, event, set); in trace_set_clr_event()
1141 int trace_array_set_clr_event(struct trace_array *tr, const char *system, in trace_array_set_clr_event() argument
1150 return __ftrace_set_clr_event(tr, NULL, system, event, set); in trace_array_set_clr_event()
1275 if (strcmp(call->class->system, TRACE_SYSTEM) != 0) in t_show()
1276 seq_printf(m, "%s:", call->class->system); in t_show()
1430 struct event_subsystem *system = dir->subsystem; in system_enable_read() local
1445 if (system && strcmp(call->class->system, system->name) != 0) in system_enable_read()
1476 struct event_subsystem *system = dir->subsystem; in system_enable_write() local
1496 if (system) in system_enable_write()
1497 name = system->name; in system_enable_write()
1733 struct event_subsystem *system = NULL; in subsystem_open() local
1750 system = dir->subsystem; in subsystem_open()
1760 if (!system) in subsystem_open()
1824 struct event_subsystem *system = dir->subsystem; in subsystem_filter_read() local
1837 print_subsystem_event_filter(system, s); in subsystem_filter_read()
2255 struct event_subsystem *system; in create_new_subsystem() local
2258 system = kmalloc(sizeof(*system), GFP_KERNEL); in create_new_subsystem()
2259 if (!system) in create_new_subsystem()
2262 system->ref_count = 1; in create_new_subsystem()
2265 system->name = kstrdup_const(name, GFP_KERNEL); in create_new_subsystem()
2266 if (!system->name) in create_new_subsystem()
2269 system->filter = kzalloc(sizeof(struct event_filter), GFP_KERNEL); in create_new_subsystem()
2270 if (!system->filter) in create_new_subsystem()
2273 list_add(&system->list, &event_subsystems); in create_new_subsystem()
2275 return system; in create_new_subsystem()
2278 kfree_const(system->name); in create_new_subsystem()
2279 kfree(system); in create_new_subsystem()
2287 struct event_subsystem *system, *iter; in event_subsystem_dir() local
2294 system = dir->subsystem; in event_subsystem_dir()
2295 if (strcmp(system->name, name) == 0) { in event_subsystem_dir()
2297 file->system = dir; in event_subsystem_dir()
2303 system = NULL; in event_subsystem_dir()
2306 system = iter; in event_subsystem_dir()
2315 if (!system) { in event_subsystem_dir()
2316 system = create_new_subsystem(name); in event_subsystem_dir()
2317 if (!system) in event_subsystem_dir()
2320 __get_system(system); in event_subsystem_dir()
2325 __put_system(system); in event_subsystem_dir()
2333 dir->subsystem = system; in event_subsystem_dir()
2334 file->system = dir; in event_subsystem_dir()
2343 kfree(system->filter); in event_subsystem_dir()
2344 system->filter = NULL; in event_subsystem_dir()
2360 if (!dir || !system) in event_subsystem_dir()
2418 if (WARN_ON_ONCE(strcmp(call->class->system, TRACE_SYSTEM) == 0)) in event_create_dir()
2421 ef_subsystem = event_subsystem_dir(tr, call->class->system, file, parent); in event_create_dir()
2746 if (!last_system || call->class->system != last_system) { in trace_event_eval_update()
2749 last_system = call->class->system; in trace_event_eval_update()
2763 if (call->class->system == map[i]->system) { in trace_event_eval_update()
3103 __find_event_file(struct trace_array *tr, const char *system, const char *event) in __find_event_file() argument
3118 strcmp(system, call->class->system) == 0) in __find_event_file()
3126 find_event_file(struct trace_array *tr, const char *system, const char *event) in find_event_file() argument
3130 file = __find_event_file(tr, system, event); in find_event_file()
3159 const char *system, in trace_get_event_file() argument
3178 file = find_event_file(tr, system, event); in trace_get_event_file()
3308 edata->file->event_call->class->system, in event_enable_print()
3417 const char *system; in event_enable_func() local
3430 system = strsep(&param, ":"); in event_enable_func()
3439 file = find_event_file(tr, system, event); in event_enable_func()
3964 struct event_subsystem *system; in event_trace_self_tests() local
3989 if (call->class->system && in event_trace_self_tests()
3990 strcmp(call->class->system, "syscalls") == 0) in event_trace_self_tests()
4019 system = dir->subsystem; in event_trace_self_tests()
4022 if (strcmp(system->name, "ftrace") == 0) in event_trace_self_tests()
4025 pr_info("Testing event system %s: ", system->name); in event_trace_self_tests()
4027 ret = __ftrace_set_clr_event(tr, NULL, system->name, NULL, 1); in event_trace_self_tests()
4030 system->name); in event_trace_self_tests()
4036 ret = __ftrace_set_clr_event(tr, NULL, system->name, NULL, 0); in event_trace_self_tests()
4039 system->name); in event_trace_self_tests()