Re: [PATCH v2 bpf-next 2/4] bpf: introduce helper bpf_get_task_stak()

2020-06-26 Thread Andrii Nakryiko
On Fri, Jun 26, 2020 at 4:47 PM Song Liu wrote: > > > > > On Jun 26, 2020, at 3:51 PM, Andrii Nakryiko > > wrote: > > > > On Fri, Jun 26, 2020 at 3:45 PM Song Liu wrote: > >> > >> > >> > >>> On Jun 26, 2020, at 1:17 PM, Andrii Nakryiko > >>> wrote: > >>> > >>> On Thu, Jun 25, 2020 at 5:14 PM

Re: [PATCH v2 bpf-next 2/4] bpf: introduce helper bpf_get_task_stak()

2020-06-26 Thread Song Liu
> On Jun 26, 2020, at 3:51 PM, Andrii Nakryiko > wrote: > > On Fri, Jun 26, 2020 at 3:45 PM Song Liu wrote: >> >> >> >>> On Jun 26, 2020, at 1:17 PM, Andrii Nakryiko >>> wrote: >>> >>> On Thu, Jun 25, 2020 at 5:14 PM Song Liu wrote: Introduce helper bpf_get_task_stack(), wh

Re: [PATCH v2 bpf-next 2/4] bpf: introduce helper bpf_get_task_stak()

2020-06-26 Thread Andrii Nakryiko
On Fri, Jun 26, 2020 at 3:45 PM Song Liu wrote: > > > > > On Jun 26, 2020, at 1:17 PM, Andrii Nakryiko > > wrote: > > > > On Thu, Jun 25, 2020 at 5:14 PM Song Liu wrote: > >> > >> Introduce helper bpf_get_task_stack(), which dumps stack trace of given > >> task. This is different to bpf_get_sta

Re: [PATCH v2 bpf-next 2/4] bpf: introduce helper bpf_get_task_stak()

2020-06-26 Thread Song Liu
> On Jun 26, 2020, at 1:17 PM, Andrii Nakryiko > wrote: > > On Thu, Jun 25, 2020 at 5:14 PM Song Liu wrote: >> >> Introduce helper bpf_get_task_stack(), which dumps stack trace of given >> task. This is different to bpf_get_stack(), which gets stack track of >> current task. One potential u

Re: [PATCH v2 bpf-next 2/4] bpf: introduce helper bpf_get_task_stak()

2020-06-26 Thread Song Liu
> On Jun 26, 2020, at 8:40 AM, Yonghong Song wrote: > > > > On 6/25/20 5:13 PM, Song Liu wrote: >> Introduce helper bpf_get_task_stack(), which dumps stack trace of given >> task. This is different to bpf_get_stack(), which gets stack track of >> current task. One potential use case of bpf_g

Re: [PATCH v2 bpf-next 2/4] bpf: introduce helper bpf_get_task_stak()

2020-06-26 Thread Andrii Nakryiko
On Fri, Jun 26, 2020 at 1:17 PM Andrii Nakryiko wrote: > > On Thu, Jun 25, 2020 at 5:14 PM Song Liu wrote: > > > > Introduce helper bpf_get_task_stack(), which dumps stack trace of given > > task. This is different to bpf_get_stack(), which gets stack track of > > current task. One potential use

Re: [PATCH v2 bpf-next 2/4] bpf: introduce helper bpf_get_task_stak()

2020-06-26 Thread Andrii Nakryiko
On Thu, Jun 25, 2020 at 5:14 PM Song Liu wrote: > > Introduce helper bpf_get_task_stack(), which dumps stack trace of given > task. This is different to bpf_get_stack(), which gets stack track of > current task. One potential use case of bpf_get_task_stack() is to call > it from bpf_iter__task and

Re: [PATCH v2 bpf-next 2/4] bpf: introduce helper bpf_get_task_stak()

2020-06-26 Thread Yonghong Song
On 6/25/20 5:13 PM, Song Liu wrote: Introduce helper bpf_get_task_stack(), which dumps stack trace of given task. This is different to bpf_get_stack(), which gets stack track of current task. One potential use case of bpf_get_task_stack() is to call it from bpf_iter__task and dump all /proc//s

[PATCH v2 bpf-next 2/4] bpf: introduce helper bpf_get_task_stak()

2020-06-25 Thread Song Liu
Introduce helper bpf_get_task_stack(), which dumps stack trace of given task. This is different to bpf_get_stack(), which gets stack track of current task. One potential use case of bpf_get_task_stack() is to call it from bpf_iter__task and dump all /proc//stack to a seq_file. bpf_get_task_stack()