commit | 28dbf861deacb0321604bf1c5e1ccc34dd215669 | [log] [tgz] |
---|---|---|
author | Yonghong Song <yhs@fb.com> | Sat Apr 28 22:28:13 2018 -0700 |
committer | Alexei Starovoitov <ast@kernel.org> | Sun Apr 29 08:45:54 2018 -0700 |
tree | ae98045b9d24ea60e1034b08200d74e762dde8bb | |
parent | de2ff05f48afcde816ff4edb217417f62f624ab5 [diff] |
samples/bpf: move common-purpose trace functions to selftests There is no functionality change in this patch. The common-purpose trace functions, including perf_event polling and ksym lookup, are moved from trace_output_user.c and bpf_load.c to selftests/bpf/trace_helpers.c so that these function can be reused later in selftests. Acked-by: Alexei Starovoitov <ast@fb.com> Signed-off-by: Yonghong Song <yhs@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>