forked from luck/tmp_suning_uos_patched
1f477305ab
To further reduce boilerplate. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: https://lkml.kernel.org/n/tip-vst6hj335s0ebxzqltes3nsc@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
11 lines
275 B
C
11 lines
275 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef _PERF_BPF_H
|
|
#define _PERF_BPF_H
|
|
#define SEC(NAME) __attribute__((section(NAME), used))
|
|
|
|
#define license(name) \
|
|
char _license[] SEC("license") = #name; \
|
|
int _version SEC("version") = LINUX_VERSION_CODE;
|
|
|
|
#endif /* _PERF_BPF_H */
|