From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx171.postini.com [74.125.245.171]) by kanga.kvack.org (Postfix) with SMTP id 849C96B0044 for ; Thu, 12 Apr 2012 10:57:22 -0400 (EDT) Received: from /spool/local by e35.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 12 Apr 2012 08:57:21 -0600 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by d03dlp03.boulder.ibm.com (Postfix) with ESMTP id DE35319D8050 for ; Thu, 12 Apr 2012 08:57:08 -0600 (MDT) Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q3CEvDoh147324 for ; Thu, 12 Apr 2012 08:57:16 -0600 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q3CEvBqk022253 for ; Thu, 12 Apr 2012 08:57:12 -0600 Date: Thu, 12 Apr 2012 20:19:27 +0530 From: Srikar Dronamraju Subject: Re: [PATCH UPDATED 3/3] tracing: Provide trace events interface for uprobes Message-ID: <20120412144927.GB21587@linux.vnet.ibm.com> Reply-To: Srikar Dronamraju References: <20120409091133.8343.65289.sendpatchset@srdronam.in.ibm.com> <20120409091154.8343.50489.sendpatchset@srdronam.in.ibm.com> <20120411103043.GB29437@linux.vnet.ibm.com> <4F86D264.9020004@hitachi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <4F86D264.9020004@hitachi.com> Sender: owner-linux-mm@kvack.org List-ID: To: Masami Hiramatsu Cc: Peter Zijlstra , Ingo Molnar , Andrew Morton , Linus Torvalds , Ananth N Mavinakayanahalli , Jim Keniston , LKML , Linux-mm , Oleg Nesterov , Andi Kleen , Christoph Hellwig , Steven Rostedt , Arnaldo Carvalho de Melo , Thomas Gleixner , Anton Arapov > > + > > + # echo 'p /bin/zsh:0x46420 %ip %ax' > uprobe_events > > + > > +Please note: User has to explicitly calculate the offset of the probepoint > > +in the object. We can see the events that are registered by looking at the > > +uprobe_events file. > > + > > + # cat uprobe_events > > + p:uprobes/p_zsh_0x46420 /bin/zsh:0x0000000000046420 > > Doesn't uprobe_events show the arguments of existing events? > And also, could you add an event format of above event here? > [root@f14kvm tracing]# cat uprobe_events [root@f14kvm tracing]# echo 'p /bin/zsh:0x46420 %ip %ax' > uprobe_events [root@f14kvm tracing]# cat uprobe_events p:uprobes/p_zsh_0x46420 /bin/zsh:0x00046420 arg1=%ip arg2=%ax [root@f14kvm tracing]# cat events/uprobes/p_zsh_0x46420/format name: p_zsh_0x46420 ID: 922 format: field:unsigned short common_type; offset:0; size:2; signed:0; field:unsigned char common_flags; offset:2; size:1; signed:0; field:unsigned char common_preempt_count; offset:3; size:1; signed:0; field:int common_pid; offset:4; size:4; signed:1; field:int common_padding; offset:8; size:4; signed:1; field:unsigned long __probe_ip; offset:12; size:4; signed:0; field:u32 arg1; offset:16; size:4; signed:0; field:u32 arg2; offset:20; size:4; signed:0; print fmt: "(%lx) arg1=%lx arg2=%lx", REC->__probe_ip, REC->arg1, REC->arg2 [root@f14kvm tracing]# Will update the Documentation file with correct output of "cat uprobe_events". Do you want the format file to be added to the Documentation? -- Thanks and Regards Srikar -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org