函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Helper function for event_trigger_unlock_commit{_regs}().* If there are event triggers attached to this event that requires* filtering against its fields, then they wil be called as the* entry already holds the field information of the current event.

函数原型:static inline bool __event_trigger_test_discard(struct trace_event_file *file, struct ring_buffer *buffer, struct ring_buffer_event *event, void *entry, enum event_trigger_type *tt)

返回类型:bool

参数:

类型参数名称
struct trace_event_file *file
struct ring_buffer *buffer
struct ring_buffer_event *event
void *entry
enum event_trigger_type *tt
1443  eflags等于* 32 bit flags: * bit 0: enabled * bit 1: enabled cmd record * bit 2: enable/disable with the soft disable bit * bit 3: soft disabled * bit 4: trigger enabled * Note: The bits must be set atomically to prevent races * from other writers. Reads of flags do
1445  如果eflags按位与EVENT_FILE_FL_TRIGGER_CONDtt等于event_triggers_call(file, entry, event)
1448  如果st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from此条件成立可能性小(为编译器优化)(* 32 bit flags: * bit 0: enabled * bit 1: enabled cmd record * bit 2: enable/disable with the soft disable bit * bit 3: soft disabled * bit 4: trigger enabled * Note: The bits must be set atomically to prevent races * from other writers. Reads of flags do & EVENT_FILE_FL_FILTERED)且非filter_match_preds(filter, entry)则
1451  __trace_event_discard_commit(buffer, event)
1452  返回:true
1455  返回:false
调用者
名称描述
event_trigger_unlock_commitvent_trigger_unlock_commit - handle triggers and finish event commit*@file: The file pointer assoctiated to the event*@buffer: The ring buffer that the event is being written to*@event: The event meta data in the ring buffer*@entry: The event
event_trigger_unlock_commit_regsvent_trigger_unlock_commit_regs - handle triggers and finish event commit*@file: The file pointer assoctiated to the event*@buffer: The ring buffer that the event is being written to*@event: The event meta data in the ring buffer*@entry: The event