函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\core.c Create Date:2022-07-27 14:50:18
Last Modify:2022-05-20 07:50:19 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:perf_cpu_time_max_percent_handler

函数原型:int perf_cpu_time_max_percent_handler(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
465  ret等于指定大小读sysctl整数向量
467  如果ret或非write则返回:ret
470  如果sysctl_perf_cpu_time_max_percent恒等于100或sysctl_perf_cpu_time_max_percent恒等于0则
472  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
474  WRITE_ONCE(perf_sample_allowed_ns, 0)
475  否则
476  update_perf_cpu_limits()
479  返回:0