From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757881AbcHCTbL (ORCPT ); Wed, 3 Aug 2016 15:31:11 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:30707 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754482AbcHCTbJ (ORCPT ); Wed, 3 Aug 2016 15:31:09 -0400 X-IBM-Helo: d03dlp03.boulder.ibm.com X-IBM-MailFrom: aravinda@linux.vnet.ibm.com Subject: Re: [RFC PATCH v2 2/3] tracefs: add instances support for uprobe events To: Steven Rostedt , Hari Bathini References: <146965470618.23765.7329786743211962695.stgit@hbathini.in.ibm.com> <146965485827.23765.14920656474693831799.stgit@hbathini.in.ibm.com> <20160801174546.0453ab85@gandalf.local.home> <17cdf475-e663-2ade-d69f-91440d654e98@linux.vnet.ibm.com> <20160802134935.2be2a06a@gandalf.local.home> Cc: daniel@iogearbox.net, peterz@infradead.org, linux-kernel@vger.kernel.org, acme@kernel.org, alexander.shishkin@linux.intel.com, mingo@redhat.com, paulus@samba.org, ebiederm@xmission.com, kernel@kyup.com, viro@zeniv.linux.org.uk, ananth@in.ibm.com From: Aravinda Prasad Date: Thu, 4 Aug 2016 01:00:51 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: <20160802134935.2be2a06a@gandalf.local.home> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16080319-0016-0000-0000-00000456C40E X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00005547; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000177; SDB=6.00739534; UDB=6.00347712; IPR=6.00512135; BA=6.00004642; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00012141; XFM=3.00000011; UTC=2016-08-03 19:31:06 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16080319-0017-0000-0000-000031B4EE50 Message-Id: <57A2466B.1080200@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-08-03_14:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1604210000 definitions=main-1608030191 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 02 August 2016 11:19 PM, Steven Rostedt wrote: > On Tue, 2 Aug 2016 22:57:30 +0530 > Hari Bathini wrote: > >> where a mountable instance is more than a trace array. >> This may need addition of new flags for trace array saying >> whether it is a global trace or directory instance or mountable instance. >> Also, the helper functions that add/remove events need to be tweaked >> accordingly. > > BTW, I'm curious to how you handle the rest of the trace files in a > container? The tracing system really looks at the Linux kernel as a > whole, and for the most part ignores things like name spaces. We started by trying to support perf inside a container and currently we are exploring approaches to support function tracing inside a container. One approach that we are thinking/working is on the lines of patch 1/3. For example, filtering events based on the namespace in which the trace file is read. We are trying to understand the ftrace implementation and hence not sure if this is feasible. We would be happy to explore if you have any suggestions/feedback on supporting function tracing inside a container. > > Can a container have its own function tracing? Sorry, I didn't understand that. Do you mean to have a separate per-container trace files? Regards, Aravinda > > -- Steve > -- Regards, Aravinda