diff options
author | 2018-05-04 15:18:31 -0300 | |
---|---|---|
committer | 2018-05-15 14:31:24 -0300 | |
commit | 1f477305ab462e2fd1fa8a4c4fa425ad752b3175 (patch) | |
tree | 5b41f0f141d3b7af760221e0decbb222b48d536d /tools/perf/examples/bpf/5sec.c | |
parent | perf bpf: Add kprobe example to catch 5s naps (diff) | |
download | linux-1f477305ab462e2fd1fa8a4c4fa425ad752b3175.tar.gz linux-1f477305ab462e2fd1fa8a4c4fa425ad752b3175.tar.bz2 linux-1f477305ab462e2fd1fa8a4c4fa425ad752b3175.zip |
perf bpf: Add license(NAME) helper
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>
Diffstat (limited to 'tools/perf/examples/bpf/5sec.c')
-rw-r--r-- | tools/perf/examples/bpf/5sec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/perf/examples/bpf/5sec.c b/tools/perf/examples/bpf/5sec.c index 3d1ed34aec8b..6fc3697ac749 100644 --- a/tools/perf/examples/bpf/5sec.c +++ b/tools/perf/examples/bpf/5sec.c @@ -40,5 +40,4 @@ int func(void *ctx, int err, long sec) return sec == 5; } -char _license[] SEC("license") = "GPL"; -int _version SEC("version") = LINUX_VERSION_CODE; +license(GPL); |