Lines Matching refs:syscall_nr
299 int syscall_nr; in ftrace_syscall_enter() local
302 syscall_nr = trace_get_syscall_nr(current, regs); in ftrace_syscall_enter()
303 if (syscall_nr < 0 || syscall_nr >= NR_syscalls) in ftrace_syscall_enter()
307 trace_file = rcu_dereference_sched(tr->enter_syscall_files[syscall_nr]); in ftrace_syscall_enter()
314 sys_data = syscall_nr_to_meta(syscall_nr); in ftrace_syscall_enter()
325 entry->nr = syscall_nr; in ftrace_syscall_enter()
339 int syscall_nr; in ftrace_syscall_exit() local
341 syscall_nr = trace_get_syscall_nr(current, regs); in ftrace_syscall_exit()
342 if (syscall_nr < 0 || syscall_nr >= NR_syscalls) in ftrace_syscall_exit()
346 trace_file = rcu_dereference_sched(tr->exit_syscall_files[syscall_nr]); in ftrace_syscall_exit()
353 sys_data = syscall_nr_to_meta(syscall_nr); in ftrace_syscall_exit()
362 entry->nr = syscall_nr; in ftrace_syscall_exit()
375 num = ((struct syscall_metadata *)call->data)->syscall_nr; in reg_event_syscall_enter()
395 num = ((struct syscall_metadata *)call->data)->syscall_nr; in unreg_event_syscall_enter()
413 num = ((struct syscall_metadata *)call->data)->syscall_nr; in reg_event_syscall_exit()
433 num = ((struct syscall_metadata *)call->data)->syscall_nr; in unreg_event_syscall_exit()
449 num = ((struct syscall_metadata *)call->data)->syscall_nr; in init_syscall_trace()
532 meta->syscall_nr = i; in init_ftrace_syscalls()
559 unsigned long syscall_nr; in perf_call_bpf_enter() member
565 param.syscall_nr = rec->nr; in perf_call_bpf_enter()
578 int syscall_nr; in perf_syscall_enter() local
582 syscall_nr = trace_get_syscall_nr(current, regs); in perf_syscall_enter()
583 if (syscall_nr < 0 || syscall_nr >= NR_syscalls) in perf_syscall_enter()
585 if (!test_bit(syscall_nr, enabled_perf_enter_syscalls)) in perf_syscall_enter()
588 sys_data = syscall_nr_to_meta(syscall_nr); in perf_syscall_enter()
606 rec->nr = syscall_nr; in perf_syscall_enter()
627 num = ((struct syscall_metadata *)call->data)->syscall_nr; in perf_sysenter_enable()
646 num = ((struct syscall_metadata *)call->data)->syscall_nr; in perf_sysenter_disable()
661 unsigned long syscall_nr; in perf_call_bpf_exit() member
666 param.syscall_nr = rec->nr; in perf_call_bpf_exit()
677 int syscall_nr; in perf_syscall_exit() local
681 syscall_nr = trace_get_syscall_nr(current, regs); in perf_syscall_exit()
682 if (syscall_nr < 0 || syscall_nr >= NR_syscalls) in perf_syscall_exit()
684 if (!test_bit(syscall_nr, enabled_perf_exit_syscalls)) in perf_syscall_exit()
687 sys_data = syscall_nr_to_meta(syscall_nr); in perf_syscall_exit()
704 rec->nr = syscall_nr; in perf_syscall_exit()
723 num = ((struct syscall_metadata *)call->data)->syscall_nr; in perf_sysexit_enable()
742 num = ((struct syscall_metadata *)call->data)->syscall_nr; in perf_sysexit_disable()