Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:stack_trace_init

Proto:static __init int stack_trace_init(void)

Type:int

Parameter:Nothing

560  d_tracer = racing_init_dentry - initialize top level trace array* This is called when creating files or directories in the tracing* directory. It is called via fs_initcall() by any of the boot up code
561  If IS_ERR(d_tracer) Then Return 0
564  trace_create_file("stack_max_size", 0644, d_tracer, & stack_trace_max_size, & stack_max_size_fops)
567  trace_create_file("stack_trace", 0444, d_tracer, NULL, & stack_trace_fops)
575  If stack_trace_filter_buf[0] Then ftrace_set_early_filter( & trace_ops, stack_trace_filter_buf, 1)
578  If stack_tracer_enabled Then gister_ftrace_function - register a function for profiling*@ops - ops structure that holds the function for profiling
581  Return 0