• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/kernel/trace/

Lines Matching refs:system

258 		    strcmp(match, call->class->system) != 0)
261 if (sub && strcmp(sub, call->class->system) != 0)
309 * @system: system name to match (NULL for any system)
310 * @event: event name to match (NULL for all events, within system)
319 int trace_set_clr_event(const char *system, const char *event, int set)
321 return __ftrace_set_clr_event(NULL, system, event, set);
437 if (strcmp(call->class->system, TRACE_SYSTEM) != 0)
438 seq_printf(m, "%s:", call->class->system);
524 const char *system = filp->private_data;
535 if (system && strcmp(call->class->system, system) != 0)
565 const char *system = filp->private_data;
589 ret = __ftrace_set_clr_event(NULL, system, NULL, val);
845 struct event_subsystem *system = filp->private_data;
858 print_subsystem_event_filter(system, s);
870 struct event_subsystem *system = filp->private_data;
887 err = apply_subsystem_event_filter(system, buf);
1016 struct event_subsystem *system;
1020 list_for_each_entry(system, &event_subsystems, list) {
1021 if (strcmp(system->name, name) == 0) {
1022 system->nr_events++;
1023 return system->entry;
1028 system = kmalloc(sizeof(*system), GFP_KERNEL);
1029 if (!system) {
1035 system->entry = debugfs_create_dir(name, d_events);
1036 if (!system->entry) {
1039 kfree(system);
1043 system->nr_events = 1;
1044 system->name = kstrdup(name, GFP_KERNEL);
1045 if (!system->name) {
1046 debugfs_remove(system->entry);
1047 kfree(system);
1051 list_add(&system->list, &event_subsystems);
1053 system->filter = NULL;
1055 system->filter = kzalloc(sizeof(struct event_filter), GFP_KERNEL);
1056 if (!system->filter) {
1059 return system->entry;
1062 entry = debugfs_create_file("filter", 0644, system->entry, system,
1065 kfree(system->filter);
1066 system->filter = NULL;
1071 trace_create_file("enable", 0644, system->entry,
1072 (void *)system->name,
1075 return system->entry;
1090 * then the system would be called "TRACE_SYSTEM".
1092 if (strcmp(call->class->system, TRACE_SYSTEM) != 0)
1093 d_events = event_subsystem_dir(call->class->system, d_events);
1185 struct event_subsystem *system;
1190 list_for_each_entry(system, &event_subsystems, list) {
1191 if (strcmp(system->name, name) == 0) {
1192 if (!--system->nr_events) {
1193 struct event_filter *filter = system->filter;
1195 debugfs_remove_recursive(system->entry);
1196 list_del(&system->list);
1201 kfree(system->name);
1202 kfree(system);
1221 remove_subsystem_dir(call->class->system);
1524 struct event_subsystem *system;
1542 if (call->class->system &&
1543 strcmp(call->class->system, "syscalls") == 0)
1566 /* Now test at the sub system level */
1570 list_for_each_entry(system, &event_subsystems, list) {
1572 /* the ftrace system is special, skip it */
1573 if (strcmp(system->name, "ftrace") == 0)
1576 pr_info("Testing event system %s: ", system->name);
1578 ret = __ftrace_set_clr_event(NULL, system->name, NULL, 1);
1580 pr_warning("error enabling system %s\n",
1581 system->name);
1587 ret = __ftrace_set_clr_event(NULL, system->name, NULL, 0);
1589 pr_warning("error disabling system %s\n",
1590 system->name);