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()
886 char *system; member
895 kfree(event_mod->system); in free_event_mod()
910 const char *match, const char *system, const char *event) in remove_cache_mod() argument
922 if (system && in remove_cache_mod()
923 (!event_mod->system || strcmp(event_mod->system, system) != 0)) in remove_cache_mod()
938 const char *match, const char *system, const char *event) in cache_mod() argument
948 return remove_cache_mod(tr, mod, match, system, event); in cache_mod()
965 if (system) { in cache_mod()
966 event_mod->system = kstrdup(system, GFP_KERNEL); in cache_mod()
967 if (!event_mod->system) in cache_mod()
989 const char *match, const char *system, const char *event) in cache_mod() argument
1195 static void __put_system(struct event_subsystem *system) in __put_system() argument
1197 struct event_filter *filter = system->filter; in __put_system()
1199 WARN_ON_ONCE(system_refcount(system) == 0); in __put_system()
1200 if (system_refcount_dec(system)) in __put_system()
1203 list_del(&system->list); in __put_system()
1209 kfree_const(system->name); in __put_system()
1210 kfree(system); in __put_system()
1213 static void __get_system(struct event_subsystem *system) in __get_system() argument
1215 WARN_ON_ONCE(system_refcount(system) == 0); in __get_system()
1216 system_refcount_inc(system); in __get_system()
1281 remove_subsystem(file->system); in remove_event_file_dir()
1332 strcmp(match, call->class->system) != 0) in __ftrace_set_clr_event_nolock()
1335 if (sub && strcmp(sub, call->class->system) != 0) in __ftrace_set_clr_event_nolock()
1442 int trace_set_clr_event(const char *system, const char *event, int set) in trace_set_clr_event() argument
1449 return __ftrace_set_clr_event(tr, NULL, system, event, set, NULL); in trace_set_clr_event()
1466 int trace_array_set_clr_event(struct trace_array *tr, const char *system, in trace_array_set_clr_event() argument
1475 return __ftrace_set_clr_event(tr, NULL, system, event, set, NULL); in trace_array_set_clr_event()
1641 if (strcmp(call->class->system, TRACE_SYSTEM) != 0) in t_show()
1642 seq_printf(m, "%s:", call->class->system); in t_show()
1657 const char *system; in s_show() local
1670 system = iter->event_mod->system ? : "*"; in s_show()
1673 seq_printf(m, "%s:%s:mod:%s\n", system, event, iter->event_mod->module); in s_show()
1837 int trace_events_enabled(struct trace_array *tr, const char *system) in trace_events_enabled() argument
1851 if (system && strcmp(call->class->system, system) != 0) in trace_events_enabled()
1877 struct event_subsystem *system = dir->subsystem; in system_enable_read() local
1883 set = trace_events_enabled(tr, system ? system->name : NULL); in system_enable_read()
1898 struct event_subsystem *system = dir->subsystem; in system_enable_write() local
1918 if (system) in system_enable_write()
1919 name = system->name; in system_enable_write()
2165 struct event_subsystem *system = NULL; in subsystem_open() local
2182 system = dir->subsystem; in subsystem_open()
2192 if (!system) in subsystem_open()
2256 struct event_subsystem *system = dir->subsystem; in subsystem_filter_read() local
2269 print_subsystem_event_filter(system, s); in subsystem_filter_read()
2717 struct event_subsystem *system; in create_new_subsystem() local
2720 system = kmalloc(sizeof(*system), GFP_KERNEL); in create_new_subsystem()
2721 if (!system) in create_new_subsystem()
2724 system->ref_count = 1; in create_new_subsystem()
2727 system->name = kstrdup_const(name, GFP_KERNEL); in create_new_subsystem()
2728 if (!system->name) in create_new_subsystem()
2731 system->filter = kzalloc(sizeof(struct event_filter), GFP_KERNEL); in create_new_subsystem()
2732 if (!system->filter) in create_new_subsystem()
2735 list_add(&system->list, &event_subsystems); in create_new_subsystem()
2737 return system; in create_new_subsystem()
2740 kfree_const(system->name); in create_new_subsystem()
2741 kfree(system); in create_new_subsystem()
2765 struct event_subsystem *system, *iter; in event_subsystem_dir() local
2782 system = dir->subsystem; in event_subsystem_dir()
2783 if (strcmp(system->name, name) == 0) { in event_subsystem_dir()
2785 file->system = dir; in event_subsystem_dir()
2791 system = NULL; in event_subsystem_dir()
2794 system = iter; in event_subsystem_dir()
2803 if (!system) { in event_subsystem_dir()
2804 system = create_new_subsystem(name); in event_subsystem_dir()
2805 if (!system) in event_subsystem_dir()
2808 __get_system(system); in event_subsystem_dir()
2819 __put_system(system); in event_subsystem_dir()
2827 dir->subsystem = system; in event_subsystem_dir()
2828 file->system = dir; in event_subsystem_dir()
2838 if (!dir || !system) in event_subsystem_dir()
3023 if (WARN_ON_ONCE(strcmp(call->class->system, TRACE_SYSTEM) == 0)) in event_create_dir()
3026 e_events = event_subsystem_dir(tr, call->class->system, file, parent); in event_create_dir()
3316 if (!last_system || call->class->system != last_system) { in trace_event_eval_update()
3319 last_system = call->class->system; in trace_event_eval_update()
3333 if (call->class->system == map[i]->system) { in trace_event_eval_update()
3351 const char *system; in event_in_systems() local
3357 system = call->class->system; in event_in_systems()
3358 p = strstr(systems, system); in event_in_systems()
3365 p += strlen(system); in event_in_systems()
3636 event_mod->system, in update_mod_cache()
3752 __find_event_file(struct trace_array *tr, const char *system, const char *event) in __find_event_file() argument
3767 strcmp(system, call->class->system) == 0) in __find_event_file()
3775 find_event_file(struct trace_array *tr, const char *system, const char *event) in find_event_file() argument
3779 file = __find_event_file(tr, system, event); in find_event_file()
3808 const char *system, in trace_get_event_file() argument
3827 file = find_event_file(tr, system, event); in trace_get_event_file()
3948 edata->file->event_call->class->system, in event_enable_print()
4058 const char *system; in event_enable_func() local
4071 system = strsep(&param, ":"); in event_enable_func()
4079 file = find_event_file(tr, system, event); in event_enable_func()
4614 struct event_subsystem *system; in event_trace_self_tests() local
4639 if (call->class->system && in event_trace_self_tests()
4640 strcmp(call->class->system, "syscalls") == 0) in event_trace_self_tests()
4669 system = dir->subsystem; in event_trace_self_tests()
4672 if (strcmp(system->name, "ftrace") == 0) in event_trace_self_tests()
4675 pr_info("Testing event system %s: ", system->name); in event_trace_self_tests()
4677 ret = __ftrace_set_clr_event(tr, NULL, system->name, NULL, 1, NULL); in event_trace_self_tests()
4680 system->name); in event_trace_self_tests()
4686 ret = __ftrace_set_clr_event(tr, NULL, system->name, NULL, 0, NULL); in event_trace_self_tests()
4689 system->name); in event_trace_self_tests()