Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:When the benchmark tracepoint is enabled, it calls this* function and the thread that calls the tracepoint is created.

Proto:int trace_benchmark_reg(void)

Type:int

Parameter:Nothing

180  If Not ok_to_run Then
181  pr_warn("trace benchmark cannot be started via kernel command line\n")
182  Return -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  If IS_ERR(bm_event_thread) Then
188  pr_warn("trace benchmark failed to create kernel thread\n")
189  Return PTR_ERR(bm_event_thread)
192  Return 0