diff options
| author | Quentin Monnet <[email protected]> | 2018-11-30 16:25:44 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2018-11-30 22:06:06 +0000 |
| commit | 327e5dab6dd8559ba28739ec8873350d7b5bb080 (patch) | |
| tree | 370cef3a25e60fa348730d04ee1561b7f726d705 /tools/bpf/bpftool/prog.c | |
| parent | arm64/bpf: use movn/movk/movk sequence to generate kernel addresses (diff) | |
| download | kernel-327e5dab6dd8559ba28739ec8873350d7b5bb080.tar.gz kernel-327e5dab6dd8559ba28739ec8873350d7b5bb080.zip | |
tools: bpftool: use "/proc/self/" i.o. crafting links with getpid()
The getpid() function is called in a couple of places in bpftool to
craft links of the shape "/proc/<pid>/...". Instead, it is possible to
use the "/proc/self/" shortcut, which makes things a bit easier, in
particular in jit_disasm.c.
Do the replacement, and remove the includes of <sys/types.h> from the
relevant files, now we do not use getpid() anymore.
Signed-off-by: Quentin Monnet <[email protected]>
Reviewed-by: Jakub Kicinski <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions
