Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\callchain.c Create Date:2022-07-28 13:43:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Used for sysctl_perf_event_max_stack and* sysctl_perf_event_max_contexts_per_stack.

Proto:int perf_event_max_stack_handler(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
241  value = data
242  new_value = value
243  new_table = table
245  data = new_value
246  ret = read a vector of integers with min/max values
247  If ret || Not write Then Return ret
250  mutex_lock( & callchain_mutex)
251  If atomic_read( & nr_callchain_events) Then ret = -EBUSY
253  Else value = new_value
256  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.
258  Return ret