add LICENSE() macro
Test: builds Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: I46db3e87e87b8237f4bbf53aa345826826ddb46d
This commit is contained in:
parent
6161ff246f
commit
410ebe0c75
1 changed files with 3 additions and 0 deletions
|
|
@ -9,6 +9,9 @@
|
|||
/* place things in different elf sections */
|
||||
#define SEC(NAME) __attribute__((section(NAME), used))
|
||||
|
||||
/* Example use: LICENSE("GPL"); or LICENSE("Apache 2.0"); */
|
||||
#define LICENSE(NAME) char _license[] SEC("license") = (NAME)
|
||||
|
||||
/*
|
||||
* Helper functions called from eBPF programs written in C. These are
|
||||
* implemented in the kernel sources.
|
||||
|
|
|
|||
Loading…
Reference in a new issue