函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:stack_trace_sysctl

函数原型:int stack_trace_sysctl(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos)

返回类型:int

参数:

类型参数名称
struct ctl_table *table
intwrite
void __user *buffer
size_t *lenp
loff_t *ppos
525  mutex_lock( & stack_sysctl_mutex)
526  was_enabled等于非非stack_tracer_enabled
528  ret等于读sysctl整数向量
530  如果ret或非writewas_enabled恒等于非非stack_tracer_enabled则转到:out
533  如果stack_tracer_enabledgister_ftrace_function - register a function for profiling*@ops - ops structure that holds the function for profiling
535  否则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  返回:ret