* Re: [RFC PATCH v2 0/3] perf/tracefs: Container-aware tracing support
[not found] ` <146965470618.23765.7329786743211962695.stgit-2ivJzYymj6EA+286u2LMdEEOCMrvLtNR@public.gmane.org>
@ 2016-08-04 2:59 ` Eric W. Biederman
[not found] ` <87twf1ck95.fsf-JOvCrm2gF+uungPnsOpG7nhyD016LWXt@public.gmane.org>
[not found] ` <57A355C1.4090004@linux.vnet.ibm.com>
0 siblings, 2 replies; 4+ messages in thread
From: Eric W. Biederman @ 2016-08-04 2:59 UTC (permalink / raw)
To: Hari Bathini
Cc: ananth-xthvdsQ13ZrQT0dZR+AlfA, daniel-FeC+5ew28dpmcu3hnIyYJQ,
Linux Containers, linux-kernel-u79uwXL29TY76Z2rM5mHXA,
acme-DgEjT+Ai2ygdnm+yROfE0A,
alexander.shishkin-VuQAYsv1563Yd54FQh9/CA,
mingo-H+wXaHxf7aLQT0dZR+AlfA, paulus-eUNUBHrolfbYtjvyW6yDsg,
rostedt-nx8X9YLhiw1AfugRpC6u6w,
aravinda-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8, kernel-6AxghH7DbtA,
viro-RmSDqhL/yNMiFSDQTTA3OLVCufUGDwFn
Hari Bathini <hbathini-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> writes:
> This RFC patch set supports filtering container specific events
> when perf tool is executed inside a container. The patches apply
> cleanly on v4.7.0-rc7
>
> Changes from v1:
> 1/3. Revived earlier approach[1] with cgroup namespace instead
> of pid namespace
> 2/3. New patch that adds instance support for uprobe events in
> tracefs filesystem
> 3/3. New patch that adds "newinstance" mount option for tracefs
> filesystem
"newinstace" ick no.
I see no justification anywhere why the perf cgroup is not enough for
this.
Eric
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC PATCH v2 0/3] perf/tracefs: Container-aware tracing support
[not found] ` <87twf1ck95.fsf-JOvCrm2gF+uungPnsOpG7nhyD016LWXt@public.gmane.org>
@ 2016-08-04 14:48 ` Aravinda Prasad
0 siblings, 0 replies; 4+ messages in thread
From: Aravinda Prasad @ 2016-08-04 14:48 UTC (permalink / raw)
To: Eric W. Biederman, Hari Bathini
Cc: ananth-xthvdsQ13ZrQT0dZR+AlfA, daniel-FeC+5ew28dpmcu3hnIyYJQ,
Linux Containers, linux-kernel-u79uwXL29TY76Z2rM5mHXA,
acme-DgEjT+Ai2ygdnm+yROfE0A,
alexander.shishkin-VuQAYsv1563Yd54FQh9/CA,
mingo-H+wXaHxf7aLQT0dZR+AlfA, paulus-eUNUBHrolfbYtjvyW6yDsg,
rostedt-nx8X9YLhiw1AfugRpC6u6w, kernel-6AxghH7DbtA,
viro-RmSDqhL/yNMiFSDQTTA3OLVCufUGDwFn
On Thursday 04 August 2016 08:29 AM, Eric W. Biederman wrote:
> Hari Bathini <hbathini-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> writes:
>
>> This RFC patch set supports filtering container specific events
>> when perf tool is executed inside a container. The patches apply
>> cleanly on v4.7.0-rc7
>>
>> Changes from v1:
>> 1/3. Revived earlier approach[1] with cgroup namespace instead
>> of pid namespace
>> 2/3. New patch that adds instance support for uprobe events in
>> tracefs filesystem
>> 3/3. New patch that adds "newinstance" mount option for tracefs
>> filesystem
> "newinstace" ick no.
>
> I see no justification anywhere why the perf cgroup is not enough for
> this.
perf cgroup is not enough for uprobes, because even with perf cgroups a
user within a container can still list/delete uprobes registered in
other containers.
Regards,
Aravinda
>
> Eric
>
--
Regards,
Aravinda
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC PATCH v2 0/3] perf/tracefs: Container-aware tracing support
[not found] ` <57A355C1.4090004-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
@ 2016-08-04 18:27 ` Eric W. Biederman
0 siblings, 0 replies; 4+ messages in thread
From: Eric W. Biederman @ 2016-08-04 18:27 UTC (permalink / raw)
To: Aravinda Prasad
Cc: ananth-xthvdsQ13ZrQT0dZR+AlfA, daniel-FeC+5ew28dpmcu3hnIyYJQ,
Linux Containers, linux-kernel-u79uwXL29TY76Z2rM5mHXA,
acme-DgEjT+Ai2ygdnm+yROfE0A,
alexander.shishkin-VuQAYsv1563Yd54FQh9/CA,
mingo-H+wXaHxf7aLQT0dZR+AlfA, paulus-eUNUBHrolfbYtjvyW6yDsg,
rostedt-nx8X9YLhiw1AfugRpC6u6w, Hari Bathini, kernel-6AxghH7DbtA,
viro-RmSDqhL/yNMiFSDQTTA3OLVCufUGDwFn
Aravinda Prasad <aravinda-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> writes:
> On Thursday 04 August 2016 08:29 AM, Eric W. Biederman wrote:
>> Hari Bathini <hbathini-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> writes:
>>
>>> This RFC patch set supports filtering container specific events
>>> when perf tool is executed inside a container. The patches apply
>>> cleanly on v4.7.0-rc7
>>>
>>> Changes from v1:
>>> 1/3. Revived earlier approach[1] with cgroup namespace instead
>>> of pid namespace
>>> 2/3. New patch that adds instance support for uprobe events in
>>> tracefs filesystem
>>> 3/3. New patch that adds "newinstance" mount option for tracefs
>>> filesystem
>> "newinstace" ick no.
>>
>> I see no justification anywhere why the perf cgroup is not enough for
>> this.
>
> perf cgroup is not enough for uprobes, because even with perf cgroups a
> user within a container can still list/delete uprobes registered in
> other containers.
Just to be clear, even if there is one cgroup per container?
Eric
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC PATCH v2 0/3] perf/tracefs: Container-aware tracing support
[not found] ` <87h9b01ja2.fsf-JOvCrm2gF+uungPnsOpG7nhyD016LWXt@public.gmane.org>
@ 2016-08-04 19:11 ` Aravinda Prasad
0 siblings, 0 replies; 4+ messages in thread
From: Aravinda Prasad @ 2016-08-04 19:11 UTC (permalink / raw)
To: Eric W. Biederman
Cc: ananth-xthvdsQ13ZrQT0dZR+AlfA, daniel-FeC+5ew28dpmcu3hnIyYJQ,
Linux Containers, linux-kernel-u79uwXL29TY76Z2rM5mHXA,
acme-DgEjT+Ai2ygdnm+yROfE0A,
alexander.shishkin-VuQAYsv1563Yd54FQh9/CA,
mingo-H+wXaHxf7aLQT0dZR+AlfA, paulus-eUNUBHrolfbYtjvyW6yDsg,
rostedt-nx8X9YLhiw1AfugRpC6u6w, Hari Bathini, kernel-6AxghH7DbtA,
viro-RmSDqhL/yNMiFSDQTTA3OLVCufUGDwFn
On Thursday 04 August 2016 11:57 PM, Eric W. Biederman wrote:
> Aravinda Prasad <aravinda-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> writes:
>
>> On Thursday 04 August 2016 08:29 AM, Eric W. Biederman wrote:
>>> Hari Bathini <hbathini-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org> writes:
>>>
>>>> This RFC patch set supports filtering container specific events
>>>> when perf tool is executed inside a container. The patches apply
>>>> cleanly on v4.7.0-rc7
>>>>
>>>> Changes from v1:
>>>> 1/3. Revived earlier approach[1] with cgroup namespace instead
>>>> of pid namespace
>>>> 2/3. New patch that adds instance support for uprobe events in
>>>> tracefs filesystem
>>>> 3/3. New patch that adds "newinstance" mount option for tracefs
>>>> filesystem
>>> "newinstace" ick no.
>>>
>>> I see no justification anywhere why the perf cgroup is not enough for
>>> this.
>>
>> perf cgroup is not enough for uprobes, because even with perf cgroups a
>> user within a container can still list/delete uprobes registered in
>> other containers.
>
> Just to be clear, even if there is one cgroup per container?
Yes. Uprobes with perf is two steps. First step is to define/add the
probe (for example: "perf probe /bin/zsh zfree"), which does not require
cgroup argument. Adding a probe writes an entry in
/sys/kernel/debug/tracing/uprobe_events file. uprobes_events file is
shared and hence users in other container can list/delete these entries.
Once added, the second step is to record. We can record by specifying
the cgroup argument with perf record and the events are filtered out
based on the cgroup.
The problem with the first step is handled (in patch 2 and 3) by
creating a separate uprobes_events file per-container by exploiting
already existing "instances" functionality.
Regards,
Aravinda
>
> Eric
>
--
Regards,
Aravinda
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-08-04 19:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <146965470618.23765.7329786743211962695.stgit@hbathini.in.ibm.com>
[not found] ` <146965470618.23765.7329786743211962695.stgit-2ivJzYymj6EA+286u2LMdEEOCMrvLtNR@public.gmane.org>
2016-08-04 2:59 ` [RFC PATCH v2 0/3] perf/tracefs: Container-aware tracing support Eric W. Biederman
[not found] ` <87twf1ck95.fsf-JOvCrm2gF+uungPnsOpG7nhyD016LWXt@public.gmane.org>
2016-08-04 14:48 ` Aravinda Prasad
[not found] ` <57A355C1.4090004@linux.vnet.ibm.com>
[not found] ` <57A355C1.4090004-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2016-08-04 18:27 ` Eric W. Biederman
[not found] ` <87h9b01ja2.fsf@x220.int.ebiederm.org>
[not found] ` <87h9b01ja2.fsf-JOvCrm2gF+uungPnsOpG7nhyD016LWXt@public.gmane.org>
2016-08-04 19:11 ` Aravinda Prasad
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox