diff options
author | Arnaldo Carvalho de Melo <acme@kernel.org> | 2020-06-09 18:16:53 -0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2020-06-10 01:19:25 +0200 |
commit | 8ca8d4a841730c02e77bf3c87bf658cc44f364b9 (patch) | |
tree | b699f3f002299f989c1cd419c759eaab9fcc23e3 /tools/perf/scripts/python/syscall-counts.py | |
parent | 042b1545fe47788e734b0f074a8ae65856015cdf (diff) |
libbpf: Define __WORDSIZE if not available
Some systems, such as Android, don't have a define for __WORDSIZE, do it
in terms of __SIZEOF_LONG__, as done in perf since 2012:
http://git.kernel.org/torvalds/c/3f34f6c0233ae055b5
For reference: https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html
I build tested it here and Andrii did some Travis CI build tests too.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20200608161150.GA3073@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions