libbpf-tools: runqslow: add '-P' optional
authorzhenwei pi <pizhenwei@bytedance.com>
Tue, 17 Aug 2021 12:46:54 +0000 (20:46 +0800)
committeryonghong-song <ys114321@gmail.com>
Fri, 20 Aug 2021 06:30:03 +0000 (23:30 -0700)
commit40d6e8556b380e2fd10b865da884f66e7bfdae35
treefe43728affe55ed84062e069dcc2d2d5f5e3a2f8
parent04d2039e6407ca14a2673cf585db20b0c6593ef4
libbpf-tools: runqslow: add '-P' optional

Sync change 508d9694ba7ea503cce821175ffca5a7740b832b.

During a task hits schedule delay, in the high probability, the
previous task takes a long time to run. It's possible to dump the
previous task comm and TID by '-P' or '--previous' option.

Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
libbpf-tools/runqslower.bpf.c
libbpf-tools/runqslower.c
libbpf-tools/runqslower.h