[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CA+-8EHRHTUPNJEwT_wb+O-CStvCoT2=U4h=0JqB6mXfzBArbvQ@mail.gmail.com>
Date: Wed, 18 Sep 2019 19:41:29 -0700
From: Jinshan Xiong <jinshan.xiong@...r.com>
To: Alexei Starovoitov <alexei.starovoitov@...il.com>
Cc: Yonghong Song <yhs@...com>,
"jinshan.xiong@...il.com" <jinshan.xiong@...il.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"rostedt@...dmis.org" <rostedt@...dmis.org>,
"mingo@...hat.com" <mingo@...hat.com>,
"bpf@...r.kernel.org" <bpf@...r.kernel.org>
Subject: Re: [PATCH] staging: tracing/kprobe: filter kprobe based perf event
That's bloody true. Thanks for your insights.
I will make an example program and commit into bcc repository.
Jinshan
On Wed, Sep 18, 2019 at 1:22 PM Alexei Starovoitov
<alexei.starovoitov@...il.com> wrote:
>
> On Wed, Sep 18, 2019 at 8:13 AM Jinshan Xiong <jinshan.xiong@...r.com> wrote:
> >
> > The problem with the current approach is that it would be difficult to filter cgroup, especially the cgroup in question has descendents, and also it would spawn new descendents after BPF program is installed. it's hard to filter it inside a BPF program.
>
> Why is that?
> bpf_current_task_under_cgroup() fits exactly that purpose.
Powered by blists - more mailing lists