函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:last_cmd_set

函数原型:static void last_cmd_set(struct trace_event_file *file, char *str)

返回类型:void

参数:

类型参数名称
struct trace_event_file *file
char *str
606  const char * system = NULL, * name = NULL
609  如果非str则返回
612  strncpy(last_cmd, str, Should handle KSYM_SYMBOL_LEN - 1)
614  如果file
615  call等于event_call
617  system等于system
618  如果system
619  name等于trace_event_name(call)
620  如果非namesystem = NULL
625  如果systemsnprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
调用者
名称描述
event_hist_trigger_func