函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:When the benchmark tracepoint is enabled, it calls this* function and the thread that calls the tracepoint is created.

函数原型:int trace_benchmark_reg(void)

返回类型:int

参数:

180  如果非ok_to_run
181  打印警告信息("trace benchmark cannot be started via kernel command line\n")
182  返回:负EBUSY
185  bm_event_thread等于kthread_run - create and wake a thread.*@threadfn: the function to run until signal_pending(current).*@data: data ptr for @threadfn.*@namefmt: printf-style name for the thread.* Description: Convenient wrapper for kthread_create() followed by(benchmark_event_kthread, NULL, "event_benchmark")
187  如果是错误
188  打印警告信息("trace benchmark failed to create kernel thread\n")
189  返回:错误
192  返回:0