Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bpf_get_raw_tracepoint_module

Proto:static struct bpf_raw_event_map *bpf_get_raw_tracepoint_module(const char *name)

Type:struct bpf_raw_event_map

Parameter:

TypeParameterName
const char *name
36  struct bpf_raw_event_map * btp, * ret = NULL
40  mutex_lock( & bpf_module_mutex)
42  When i < num_bpf_raw_events cycle
43  btp = bpf_raw_events[i]
44  If Not strcmp( Tracepoint name , name) Then
45  If try_module_get(module) Then ret = btp
47  Go to out
51  out :
52  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
53  Return ret
Caller
NameDescribe
bpf_get_raw_tracepoint