函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:stack_trace_init

函数原型:static __init int stack_trace_init(void)

返回类型:int

参数:

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  如果是错误则返回: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  如果stack_trace_filter_buf[0]则ftrace_set_early_filter( & trace_ops, stack_trace_filter_buf, 1)
578  如果stack_tracer_enabledgister_ftrace_function - register a function for profiling*@ops - ops structure that holds the function for profiling
581  返回:0