函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_syscalls.c Create Date:2022-07-27 13:29:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:reg_event_syscall_exit

函数原型:static int reg_event_syscall_exit(struct trace_event_file *file, struct trace_event_call *call)

返回类型:int

参数:

类型参数名称
struct trace_event_file *file
struct trace_event_call *call
450  tr等于tr
451  ret等于0
454  num等于syscall_nr
455  如果WARN_ON_ONCE(num < 0 || num >= NR_syscalls)则返回:负ENOSYS
457  mutex_lock( & syscall_trace_lock)
458  如果非sys_refcount_exitret等于register_trace_sys_exit(ftrace_syscall_exit, tr)
460  如果非ret
461  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization(exit_syscall_files[num], file)
462  sys_refcount_exit自加
464  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
465  返回:ret
调用者
名称描述
syscall_exit_register