Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_syscalls.c Create Date:2022-07-28 12:22:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ftrace_syscall_exit

Proto:static void ftrace_syscall_exit(void *data, struct pt_regs *regs, long ret)

Type:void

Parameter:

TypeParameterName
void *data
struct pt_regs *regs
longret
365  tr = data
375  syscall_nr = trace_get_syscall_nr(current process, regs)
376  If syscall_nr < 0 || syscall_nr >= NR_syscalls Then Return
380  trace_file = fetch RCU-sched-protected pointer for dereferencing(exit_syscall_files[syscall_nr])
381  If Not trace_file Then Return
384  If 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 Then Return
387  sys_data = syscall_nr_to_meta(syscall_nr)
388  If Not sys_data Then Return
391  local_save_flags(irq_flags)
392  pc = We mask the PREEMPT_NEED_RESCHED bit so as not to confuse all current users* that think a non-zero value indicates we cannot preempt.
394  buffer = buffer
395  event = trace_buffer_lock_reserve(buffer, type, size of entry , irq_flags, pc)
398  If Not event Then Return
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(current process, 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