libbpf-tools: display pid instead of tid (#3499)
authorHengqi Chen <chenhengqi@outlook.com>
Thu, 1 Jul 2021 15:43:31 +0000 (23:43 +0800)
committerGitHub <noreply@github.com>
Thu, 1 Jul 2021 15:43:31 +0000 (08:43 -0700)
commit6062343568245221acfd2513415e0fee5783f58b
tree759a1d4417f1a8e611d6c8a98c17852cfd7fa070
parentf47b81a4b1f8471dc2242e362cde9d45354a8411
libbpf-tools: display pid instead of tid (#3499)

execsnoop displays tid in its output with header PID,
which is wrong and differs from the original BCC tool.
This commit fixes that with some code cleanup.

Signed-off-by: Hengqi Chen <chenhengqi@outlook.com>
libbpf-tools/execsnoop.bpf.c
libbpf-tools/execsnoop.c
libbpf-tools/execsnoop.h