Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:stack_trace_sysctl

Proto:int stack_trace_sysctl(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos)

Type:int

Parameter:

TypeParameterName
struct ctl_table *table
intwrite
void __user *buffer
size_t *lenp
loff_t *ppos
525  mutex_lock( & stack_sysctl_mutex)
526  was_enabled = Not Not stack_tracer_enabled
528  ret = read a vector of integers
530  If ret || Not write || was_enabled == Not Not stack_tracer_enabled Then Go to out
533  If stack_tracer_enabled Then gister_ftrace_function - register a function for profiling*@ops - ops structure that holds the function for profiling
535  Else register_ftrace_function - unregister a function for profiling.*@ops - ops structure that holds the function to unregister* Unregister a function that was added to be called by ftrace profiling.
537  out :
538  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.
539  Return ret