Linux Perf
bpf.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SEC(NAME)   __attribute__((section(NAME), used))
 
#define probe(function, vars)   SEC(#function "=" #function " " #vars) function
 
#define license(name)
 

Macro Definition Documentation

◆ license

#define license (   name)
Value:
char _license[] SEC("license") = #name; \
int _version SEC("version") = LINUX_VERSION_CODE;
const char * name
#define SEC(NAME)
Definition: bpf.h:4

Definition at line 9 of file bpf.h.

◆ probe

#define probe (   function,
  vars 
)    SEC(#function "=" #function " " #vars) function

Definition at line 6 of file bpf.h.

◆ SEC

#define SEC (   NAME)    __attribute__((section(NAME), used))

Definition at line 4 of file bpf.h.