diff options
author | Yonghong Song <[email protected]> | 2020-08-18 15:23:10 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2020-08-18 17:36:23 -0700 |
commit | e60572b8d4c39572be6857d1ec91fdf979f8775f (patch) | |
tree | d4ab349e5c3baa0fb8f2f82ba9dd804e74ada523 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | e679654a704e5bd676ea6446fa7b764cbabf168a (diff) |
bpf: Avoid visit same object multiple times
Currently when traversing all tasks, the next tid
is always increased by one. This may result in
visiting the same task multiple times in a
pid namespace.
This patch fixed the issue by seting the next
tid as pid_nr_ns(pid, ns) + 1, similar to
funciton next_tgid().
Signed-off-by: Yonghong Song <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Cc: Rik van Riel <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions