Re: [RFC PATCH] samples:bpf: introduce task detector

2020-05-28 Thread 王贇
On 2020/5/29 上午2:34, Andrii Nakryiko wrote: [snip] >>> >>> With CO-RE, it also will allow to compile this tool once and run it on >>> many different kernels without recompilation. Please do take a look >>> and submit a PR there, it will be a good addition to the toolkit (and >>> will force you w

Re: [RFC PATCH] samples:bpf: introduce task detector

2020-05-28 Thread Andrii Nakryiko
On Thu, May 28, 2020 at 1:14 AM 王贇 wrote: > > Hi, Andrii > > Thanks for your comments :-) > > On 2020/5/28 下午2:36, Andrii Nakryiko wrote: > [snip] > >> --- > > > > I haven't looked through implementation thoroughly yet. But I have few > > general remarks. > > > > This looks like a useful and gener

Re: [RFC PATCH] samples:bpf: introduce task detector

2020-05-28 Thread 王贇
Hi, Andrii Thanks for your comments :-) On 2020/5/28 下午2:36, Andrii Nakryiko wrote: [snip] >> --- > > I haven't looked through implementation thoroughly yet. But I have few > general remarks. > > This looks like a useful and generic tool. I think it will get most > attention and be most useful

Re: [RFC PATCH] samples:bpf: introduce task detector

2020-05-27 Thread Andrii Nakryiko
On Wed, May 27, 2020 at 7:53 PM 王贇 wrote: > > This is a tool to trace the related schedule events of a > specified task, eg the migration, sched in/out, wakeup and > sleep/block. > > The event was translated into sentence to be more readable, > by execute command 'task_detector -p 49870' we contin

[RFC PATCH] samples:bpf: introduce task detector

2020-05-27 Thread 王贇
This is a tool to trace the related schedule events of a specified task, eg the migration, sched in/out, wakeup and sleep/block. The event was translated into sentence to be more readable, by execute command 'task_detector -p 49870' we continually tracing the schedule events related to 'top' like: