Home
last modified time | relevance | path

Searched refs:syscall_nr (Results 1 – 17 of 17) sorted by relevance

/linux-6.6.21/kernel/trace/
Dtrace_syscalls.c299 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()
[all …]
/linux-6.6.21/arch/x86/entry/vsyscall/
Dvsyscall_64.c125 int vsyscall_nr, syscall_nr, tmp; in emulate_vsyscall() local
193 syscall_nr = __NR_gettimeofday; in emulate_vsyscall()
202 syscall_nr = __NR_time; in emulate_vsyscall()
212 syscall_nr = __NR_getcpu; in emulate_vsyscall()
223 regs->orig_ax = syscall_nr; in emulate_vsyscall()
226 if ((!tmp && regs->orig_ax != syscall_nr) || regs->ip != address) { in emulate_vsyscall()
/linux-6.6.21/arch/hexagon/kernel/
Dtraps.c142 if (regs->syscall_nr != -1) { in do_show_stack()
144 regs->syscall_nr); in do_show_stack()
367 regs->syscall_nr = regs->r06; in do_trap0()
377 if ((unsigned long) regs->syscall_nr >= __NR_syscalls) { in do_trap0()
381 (sys_call_table[regs->syscall_nr]); in do_trap0()
Dsignal.c146 if (regs->syscall_nr >= 0) { in handle_signal()
159 regs->r06 = regs->syscall_nr; in handle_signal()
197 if (regs->syscall_nr >= 0) { in do_signal()
202 regs->r06 = regs->syscall_nr; in do_signal()
246 regs->syscall_nr = -1; in sys_rt_sigreturn()
Dvm_events.c27 regs->restart_r0, regs->syscall_nr); in show_regs()
Dasm-offsets.c32 OFFSET(_PT_SYSCALL_NR, pt_regs, syscall_nr); in main()
Dkgdb.c70 { "syscall_nr", GDB_SIZEOF_REG, offsetof(struct pt_regs, syscall_nr)},
/linux-6.6.21/samples/bpf/
Dsyscall_tp_kern.c9 long syscall_nr; member
17 long syscall_nr; member
/linux-6.6.21/tools/perf/util/bpf_skel/
Daugmented_raw_syscalls.bpf.c72 long syscall_nr; member
78 long syscall_nr; member
395 bpf_tail_call(args, &syscalls_sys_enter, augmented_args->args.syscall_nr); in sys_enter()
415 bpf_tail_call(args, &syscalls_sys_exit, exit_args.syscall_nr); in sys_exit()
/linux-6.6.21/samples/seccomp/
Dbpf-direct.c32 #define syscall_nr (offsetof(struct seccomp_data, nr)) macro
115 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, syscall_nr), in install_filter()
/linux-6.6.21/include/trace/
Dsyscall.h27 int syscall_nr; member
/linux-6.6.21/kernel/
Dseccomp.c353 int syscall_nr) in seccomp_cache_check_allow_bitmap() argument
355 if (unlikely(syscall_nr < 0 || syscall_nr >= bitmap_size)) in seccomp_cache_check_allow_bitmap()
357 syscall_nr = array_index_nospec(syscall_nr, bitmap_size); in seccomp_cache_check_allow_bitmap()
359 return test_bit(syscall_nr, bitmap); in seccomp_cache_check_allow_bitmap()
372 int syscall_nr = sd->nr; in seccomp_cache_check_allow() local
379 syscall_nr); in seccomp_cache_check_allow()
384 syscall_nr); in seccomp_cache_check_allow()
388 syscall_nr); in seccomp_cache_check_allow()
/linux-6.6.21/arch/hexagon/include/uapi/asm/
Dregisters.h28 long syscall_nr; /* Only used in system calls */ member
/linux-6.6.21/arch/sh/kernel/
Dentry-common.S384 mov.l @(OFF_R3,r15), r3 ! syscall_nr
/linux-6.6.21/tools/testing/selftests/arm64/abi/
Dsyscall-abi.c55 int syscall_nr; member
70 gpr_in[8] = cfg->syscall_nr; in setup_gpr()
/linux-6.6.21/tools/testing/selftests/seccomp/
Dseccomp_bpf.c2037 long syscall_nr; in FIXTURE() local
2047 long *syscall_nr = NULL, *syscall_ret = NULL; in tracer_ptrace() local
2075 self->syscall_nr = get_syscall(_metadata, tracee); in tracer_ptrace()
2082 syscall_nr = &syscall_nr_val; in tracer_ptrace()
2087 switch (self->syscall_nr) { in tracer_ptrace()
2106 __change_syscall(_metadata, tracee, syscall_nr, syscall_ret); in tracer_ptrace()
/linux-6.6.21/include/linux/
Dsyscalls.h185 .syscall_nr = -1, /* Filled in at boot */ \