diff options
| author | David Daney <[email protected]> | 2017-06-13 16:49:38 -0700 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-06-14 15:03:23 -0400 |
| commit | 4b7190e8416d9238e995da993a7fb851996654e2 (patch) | |
| tree | cd9223768849c8dc218787198acdc37d4ba2dc17 /tools/perf/scripts/python/bin | |
| parent | c1932cdb275e65cbef2f230f0df0c490fdd03c62 (diff) | |
samples/bpf: Fix tracex5 to work with MIPS syscalls.
There are two problems:
1) In MIPS the __NR_* macros expand to an expression, this causes the
sections of the object file to be named like:
.
.
.
[ 5] kprobe/(5000 + 1) PROGBITS 0000000000000000 000160 ...
[ 6] kprobe/(5000 + 0) PROGBITS 0000000000000000 000258 ...
[ 7] kprobe/(5000 + 9) PROGBITS 0000000000000000 000348 ...
.
.
.
The fix here is to use the "asm_offsets" trick to evaluate the macros
in the C compiler and generate a header file with a usable form of the
macros.
2) MIPS syscall numbers start at 5000, so we need a bigger map to hold
the sub-programs.
Signed-off-by: David Daney <[email protected]>
Acked-by: Daniel Borkmann <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions