diff options
author | Yonghong Song <[email protected]> | 2018-11-07 19:55:36 -0800 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2018-11-09 08:18:31 +0100 |
commit | 49a249c387268882e8393dd1fafc51e3b21cb7a2 (patch) | |
tree | 5cd53dfb63cee2fe911fa9ab6303b95c94eef49a /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | b13b8787c95c156b093305e9f006a6fb7d9119b1 (diff) |
tools/bpftool: copy a few net uapi headers to tools directory
Commit f6f3bac08ff9 ("tools/bpf: bpftool: add net support")
added certain networking support to bpftool.
The implementation relies on a relatively recent uapi header file
linux/tc_act/tc_bpf.h on the host which contains the marco
definition of TCA_ACT_BPF_ID.
Unfortunately, this is not the case for all distributions.
See the email message below where rhel-7.2 does not have
an up-to-date linux/tc_act/tc_bpf.h.
https://www.mail-archive.com/[email protected]/msg1799211.html
Further investigation found that linux/pkt_cls.h is also needed for macro
TCA_BPF_TAG.
This patch fixed the issue by copying linux/tc_act/tc_bpf.h
and linux/pkt_cls.h from kernel include/uapi directory to
tools/include/uapi directory so building the bpftool does not depend
on host system for these files.
Fixes: f6f3bac08ff9 ("tools/bpf: bpftool: add net support")
Reported-by: kernel test robot <[email protected]>
Cc: Li Zhijian <[email protected]>
Signed-off-by: Yonghong Song <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions