lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4F878F61.4020105@hitachi.com>
Date:	Fri, 13 Apr 2012 11:28:49 +0900
From:	Masami Hiramatsu <masami.hiramatsu.pt@...achi.com>
To:	Srikar Dronamraju <srikar@...ux.vnet.ibm.com>
Cc:	Peter Zijlstra <peterz@...radead.org>, Ingo Molnar <mingo@...e.hu>,
	Andrew Morton <akpm@...ux-foundation.org>,
	Linus Torvalds <torvalds@...ux-foundation.org>,
	Ananth N Mavinakayanahalli <ananth@...ibm.com>,
	Jim Keniston <jkenisto@...ux.vnet.ibm.com>,
	LKML <linux-kernel@...r.kernel.org>,
	Linux-mm <linux-mm@...ck.org>, Oleg Nesterov <oleg@...hat.com>,
	Andi Kleen <andi@...stfloor.org>,
	Christoph Hellwig <hch@...radead.org>,
	Steven Rostedt <rostedt@...dmis.org>,
	Arnaldo Carvalho de Melo <acme@...radead.org>,
	Thomas Gleixner <tglx@...utronix.de>,
	Anton Arapov <anton@...hat.com>
Subject: Re: Re: [PATCH UPDATED 3/3] tracing: Provide trace events interface
 for uprobes

(2012/04/12 23:49), Srikar Dronamraju wrote:
>>> +
>>> +    # 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@...kvm tracing]#  cat uprobe_events 
> [root@...kvm tracing]# echo 'p /bin/zsh:0x46420 %ip %ax' > uprobe_events 
> [root@...kvm tracing]#  cat uprobe_events 
> p:uprobes/p_zsh_0x46420 /bin/zsh:0x00046420 arg1=%ip arg2=%ax
> [root@...kvm 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@...kvm 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?

Yes, I want, please :)

Thank you!


-- 
Masami HIRAMATSU
Software Platform Research Dept. Linux Technology Center
Hitachi, Ltd., Yokohama Research Laboratory
E-mail: masami.hiramatsu.pt@...achi.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ