Home
last modified time | relevance | path

Searched refs:class (Results 1 – 23 of 23) sorted by relevance

/kernel/locking/
Dlockdep_proc.c34 #define iterate_lock_classes(idx, class) \ argument
35 for (idx = 0, class = lock_classes; idx <= max_lock_class_idx; \
36 idx++, class++)
40 struct lock_class *class = v; in l_next() local
42 ++class; in l_next()
43 *pos = class - lock_classes; in l_next()
44 return (*pos > max_lock_class_idx) ? NULL : class; in l_next()
60 static void print_name(struct seq_file *m, struct lock_class *class) in print_name() argument
63 const char *name = class->name; in print_name()
66 name = __get_key_name(class->key, str); in print_name()
[all …]
Dlockdep.c294 struct lock_class_stats lock_stats(struct lock_class *class) in lock_stats() argument
302 &per_cpu(cpu_lock_stats, cpu)[class - lock_classes]; in lock_stats()
323 void clear_lock_stats(struct lock_class *class) in clear_lock_stats() argument
329 &per_cpu(cpu_lock_stats, cpu)[class - lock_classes]; in clear_lock_stats()
333 memset(class->contention_point, 0, sizeof(class->contention_point)); in clear_lock_stats()
334 memset(class->contending_point, 0, sizeof(class->contending_point)); in clear_lock_stats()
337 static struct lock_class_stats *get_lock_stats(struct lock_class *class) in get_lock_stats() argument
339 return &this_cpu_ptr(cpu_lock_stats)[class - lock_classes]; in get_lock_stats()
495 static int class_filter(struct lock_class *class) in class_filter() argument
499 if (class->name_version == 1 && in class_filter()
[all …]
Dlockdep_internals.h128 extern void get_usage_chars(struct lock_class *class,
167 lockdep_count_forward_deps(struct lock_class *class) in lockdep_count_forward_deps() argument
172 lockdep_count_backward_deps(struct lock_class *class) in lockdep_count_backward_deps() argument
236 static inline void debug_class_ops_inc(struct lock_class *class) in debug_class_ops_inc() argument
240 idx = class - lock_classes; in debug_class_ops_inc()
244 static inline unsigned long debug_class_ops_read(struct lock_class *class) in debug_class_ops_read() argument
249 idx = class - lock_classes; in debug_class_ops_read()
/kernel/bpf/
Ddisasm.c136 u8 class = BPF_CLASS(insn->code); in print_bpf_insn() local
138 if (class == BPF_ALU || class == BPF_ALU64) { in print_bpf_insn()
140 if (class == BPF_ALU64) in print_bpf_insn()
146 insn->code, class == BPF_ALU ? 'w' : 'r', in print_bpf_insn()
147 insn->dst_reg, class == BPF_ALU ? 'w' : 'r', in print_bpf_insn()
151 insn->code, class == BPF_ALU ? 'w' : 'r', in print_bpf_insn()
154 class == BPF_ALU ? 'w' : 'r', in print_bpf_insn()
158 insn->code, class == BPF_ALU ? 'w' : 'r', in print_bpf_insn()
163 } else if (class == BPF_STX) { in print_bpf_insn()
208 } else if (class == BPF_ST) { in print_bpf_insn()
[all …]
Dverifier.c2340 u8 code, class, op; in is_reg64() local
2343 class = BPF_CLASS(code); in is_reg64()
2345 if (class == BPF_JMP) { in is_reg64()
2369 if (class == BPF_ALU64 || class == BPF_JMP || in is_reg64()
2371 (class == BPF_ALU && op == BPF_END && insn->imm == 64)) in is_reg64()
2374 if (class == BPF_ALU || class == BPF_JMP32) in is_reg64()
2377 if (class == BPF_LDX) { in is_reg64()
2384 if (class == BPF_STX) { in is_reg64()
2394 if (class == BPF_LD) { in is_reg64()
2413 if (class == BPF_ST) in is_reg64()
[all …]
/kernel/trace/
Dtrace_event_perf.c129 ret = tp_event->class->reg(tp_event, TRACE_REG_PERF_REGISTER, NULL); in perf_trace_event_reg()
162 tp_event->class->reg(tp_event, TRACE_REG_PERF_UNREGISTER, NULL); in perf_trace_event_unreg()
184 return tp_event->class->reg(tp_event, TRACE_REG_PERF_OPEN, p_event); in perf_trace_event_open()
190 tp_event->class->reg(tp_event, TRACE_REG_PERF_CLOSE, p_event); in perf_trace_event_close()
224 tp_event->class && tp_event->class->reg && in perf_trace_init()
368 if (!tp_event->class->reg(tp_event, TRACE_REG_PERF_ADD, p_event)) { in perf_trace_add()
392 if (!tp_event->class->reg(tp_event, TRACE_REG_PERF_DEL, p_event)) in perf_trace_del()
Dtrace_events.c149 if (WARN_ON(!call->class)) in trace_define_field()
164 if (WARN_ON(!call->class)) in trace_define_field_ext()
251 struct trace_event_fields *field = call->class->fields_array; in test_field()
534 call->class->probe, in trace_event_reg()
538 call->class->probe, in trace_event_reg()
545 call->class->perf_probe, in trace_event_reg()
549 call->class->perf_probe, in trace_event_reg()
652 call->class->reg(call, TRACE_REG_UNREGISTER, file); in __ftrace_event_enable_disable()
698 ret = call->class->reg(call, TRACE_REG_REGISTER, file); in __ftrace_event_enable_disable()
1031 if (!name || !call->class || !call->class->reg) in __ftrace_set_clr_event_nolock()
[all …]
Dtrace_events_user.c108 struct trace_event_class class; member
1040 call->class->probe, in user_event_reg()
1048 call->class->probe, in user_event_reg()
1055 call->class->perf_probe, in user_event_reg()
1063 call->class->perf_probe, in user_event_reg()
1306 INIT_LIST_HEAD(&user->class.fields); in user_event_parse()
1324 user->call.class = &user->class; in user_event_parse()
1329 user->class.system = group->system_name; in user_event_parse()
1331 user->class.fields_array = user_event_fields_array; in user_event_parse()
1332 user->class.get_fields = user_event_get_fields; in user_event_parse()
[all …]
Dtrace_eprobe.c203 sys_name = event->class->system; in alloc_event_probe()
306 trace_seq_printf(s, "%s.%s", pevent->class->system, in print_eprobe_event()
866 call->class->fields_array = eprobe_fields_array; in init_trace_eprobe_call()
867 call->class->reg = eprobe_register; in init_trace_eprobe_call()
884 if (!tp_event->class->system || in find_and_get_event()
885 strcmp(system, tp_event->class->system)) in find_and_get_event()
Dtrace_probe.c1006 kfree(tpe->class.system); in trace_probe_event_free()
1063 INIT_LIST_HEAD(&tp->event->class.fields); in trace_probe_init()
1069 call->class = &tp->event->class; in trace_probe_init()
1076 tp->event->class.system = kstrdup(group, GFP_KERNEL); in trace_probe_init()
1077 if (!tp->event->class.system) { in trace_probe_init()
1096 if (!tp_event->class->system || in find_trace_event_call()
1097 strcmp(system, tp_event->class->system)) in find_trace_event_call()
Dtrace_events_synth.c883 event->call.class = &event->class; in register_synth_event()
884 event->class.system = kstrdup(SYNTH_SYSTEM, GFP_KERNEL); in register_synth_event()
885 if (!event->class.system) { in register_synth_event()
897 INIT_LIST_HEAD(&call->class->fields); in register_synth_event()
899 call->class->fields_array = synth_event_fields_array; in register_synth_event()
907 call->class->reg = trace_event_reg; in register_synth_event()
908 call->class->probe = trace_event_raw_event_synth; in register_synth_event()
953 kfree(event->class.system); in free_synth_event()
2258 seq_printf(m, "s:%s/", event->class.system); in synth_event_show()
Dtrace_synth.h33 struct trace_event_class class; member
Dtrace_probe.h240 struct trace_event_class class; member
290 return tp->event->call.class->system; in trace_probe_group_name()
Dtrace_export.c171 .class = &event_class_ftrace_##call, \
Dtrace_kprobe.c1658 const char *group = event->tp_event->class->system; in bpf_get_kprobe_info()
1785 call->class->fields_array = kretprobe_fields_array; in init_trace_event_call()
1788 call->class->fields_array = kprobe_fields_array; in init_trace_event_call()
1792 call->class->reg = kprobe_register; in init_trace_event_call()
Dtrace_uprobe.c1424 const char *group = event->tp_event->class->system; in bpf_get_uprobe_info()
1563 call->class->fields_array = uprobe_fields_array; in init_trace_event_call()
1566 call->class->reg = trace_uprobe_register; in init_trace_event_call()
Dtrace_events_trigger.c1660 enable_data->file->event_call->class->system, in event_enable_trigger_print()
Dtrace_events_hist.c793 system = call->class->system; in last_cmd_set()
2237 if (strcmp(system, call->class->system) != 0) in local_field_var_ref()
3080 if (strcmp(subsys_name, call->class->system) != 0) in find_target_event_var()
3269 if (strcmp(subsys_name, call->class->system) != 0) in create_target_field_var()
/kernel/
Dauditfilter.c168 int __init audit_register_class(int class, unsigned *list) in audit_register_class() argument
181 if (class >= AUDIT_SYSCALL_CLASSES || classes[class]) { in audit_register_class()
185 classes[class] = p; in audit_register_class()
189 int audit_match_class(int class, unsigned syscall) in audit_match_class() argument
193 if (unlikely(class >= AUDIT_SYSCALL_CLASSES || !classes[class])) in audit_match_class()
195 return classes[class][AUDIT_WORD(syscall)] & AUDIT_BIT(syscall); in audit_match_class()
199 static inline int audit_match_class_bits(int class, u32 *mask) in audit_match_class_bits() argument
203 if (classes[class]) { in audit_match_class_bits()
205 if (mask[i] & classes[class][i]) in audit_match_class_bits()
287 __u32 *class; in audit_to_entry_common() local
[all …]
Daudit.h230 extern int audit_match_class(int class, unsigned syscall);
/kernel/sched/
Dsched.h2289 #define for_class_range(class, _from, _to) \ argument
2290 for (class = (_from); class < (_to); class++)
2292 #define for_each_class(class) \ argument
2293 for_class_range(class, __sched_class_highest, __sched_class_lowest)
Dcore.c6002 const struct sched_class *class; in put_prev_task_balance() local
6011 for_class_range(class, prev->sched_class, &idle_sched_class) { in put_prev_task_balance()
6012 if (class->balance(rq, prev, rf)) in put_prev_task_balance()
6026 const struct sched_class *class; in __pick_next_task() local
6054 for_each_class(class) { in __pick_next_task()
6055 p = class->pick_next_task(rq); in __pick_next_task()
6084 const struct sched_class *class; in pick_task() local
6087 for_each_class(class) { in pick_task()
6088 p = class->pick_task(rq); in pick_task()
9380 const struct sched_class *class; in pick_migrate_task() local
[all …]
/kernel/time/
Dalarmtimer.c138 alarmtimer_rtc_interface.class = rtc_class; in alarmtimer_rtc_interface_setup()