函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ftrace_syscall_exit

函数原型:static void ftrace_syscall_exit(void *data, struct pt_regs *regs, long ret)

返回类型:void

参数:

类型参数名称
void *data
struct pt_regs *regs
longret
365  tr等于data
375  syscall_nr等于trace_get_syscall_nr(当前进程, regs)
376  如果syscall_nr小于0或syscall_nr大于等于NR_syscalls则返回
380  trace_file等于cu_dereference_sched() - fetch RCU-sched-protected pointer for dereferencing*@p: The pointer to read, prior to dereferencing* Makes rcu_dereference_check() do the dirty work.(exit_syscall_files[syscall_nr])
381  如果非trace_file则返回
384  如果race_trigger_soft_disabled - do triggers and test if soft disabled*@file: The file pointer of the event to test* If any triggers without filters are attached to this event, they* will be called here则返回
387  sys_data等于syscall_nr_to_meta(syscall_nr)
388  如果非sys_data则返回
391  local_save_flags(irq_flags)
392  pc等于抢占计数值
394  buffer等于buffer
395  event等于trace_buffer_lock_reserve(buffer, type, entry的长度, irq_flags, pc)
398  如果非event则返回
401  entry等于g_buffer_event_data - return the data of the event*@event: the event to get the data from
402  nr等于syscall_nr
403  ret等于syscall_get_return_value(当前进程, regs)
405  vent_trigger_unlock_commit - handle triggers and finish event commit*@file: The file pointer assoctiated to the event*@buffer: The ring buffer that the event is being written to*@event: The event meta data in the ring buffer*@entry: The event