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: <4F103975.8070505@hitachi.com>
Date:	Fri, 13 Jan 2012 23:02:29 +0900
From:	Masami Hiramatsu <masami.hiramatsu.pt@...achi.com>
To:	Srikar Dronamraju <srikar@...ux.vnet.ibm.com>
Cc:	Peter Zijlstra <peterz@...radead.org>,
	Linus Torvalds <torvalds@...ux-foundation.org>,
	Oleg Nesterov <oleg@...hat.com>, Ingo Molnar <mingo@...e.hu>,
	Andrew Morton <akpm@...ux-foundation.org>,
	LKML <linux-kernel@...r.kernel.org>,
	Linux-mm <linux-mm@...ck.org>, Andi Kleen <andi@...stfloor.org>,
	Christoph Hellwig <hch@...radead.org>,
	Steven Rostedt <rostedt@...dmis.org>,
	Roland McGrath <roland@...k.frob.com>,
	Thomas Gleixner <tglx@...utronix.de>,
	Arnaldo Carvalho de Melo <acme@...radead.org>,
	Anton Arapov <anton@...hat.com>,
	Ananth N Mavinakayanahalli <ananth@...ibm.com>,
	Jim Keniston <jkenisto@...ux.vnet.ibm.com>,
	Stephen Rothwell <sfr@...b.auug.org.au>,
	yrl.pp-manager.tt@...achi.com
Subject: Re: [PATCH v8 3.2.0-rc5 9/9] perf: perf interface for uprobes

(2012/01/13 14:14), Srikar Dronamraju wrote:
>>>>> +#define DEFAULT_FUNC_FILTER "!_*"
>>>>
>>>> This is a hidden rule for users ... please remove it.
>>>> (or, is there any reason why we need to have it?)
>>>>
>>>
>>> This is to be in sync with your commit
>>> 3c42258c9a4db70133fa6946a275b62a16792bb5
>>
>> I see, but that commit also provides filter option for changing
>> the function filter. Here, user can not change the filter rule.
>>
>> I think, currently, we don't need to filter any function by name
>> here, since the user obviously intends to probe given function :)
> 
> Actually this was discussed in LKML here
> https://lkml.org/lkml/2010/7/20/5, please refer the sub-thread.
> 
> Basically without this filter, the list of functions is too large
> including labels, weak, and local binding function which arent traced.

If you mean that this function is used for listing
function (perf probe -F), that's true. But it seems
this convert_name_to_addr() is used just for converting
given function.

As far as I can understand, this means that the user
specifies an actual and single function for the probe point.

If so, there is no need to list up all functions - just
find a function which has the given symbol. I guess, it
is enough to set given function name to
available_func_filter as below. :)

available_func_filter = function

then, map__load() loads only the function which has the
given function name, doesn't it? :)

>>>
>>> If the user provides a symbolic link, convert_name_to_addr would get the
>>> target executable for the given executable. This would handy if we were
>>> to compare existing probes registered on the same application using a
>>> different name (symbolic links). Since you seem to like that we register
>>> with the name the user has provided, I will just feed address here.
>>
>> Hmm, why do we need to compare the probe points? Of course, event-name
>> conflict should be solved, but I think it is acceptable that user puts
>> several probes on the same exec:vaddr. Since different users may want
>> to use it concurrently bit different ways.
>>
> 
> The event-names themselves are generated from the probe points. There is
> no problem as such if two or more people use a different symlinks to
> create probes. I was just trying to see if we could solve the
> inconsitency where we warn a person if he is trying to place a probe on
> a existing probe but allow the same if he is trying to place a probe on
> a existing probe using a different symlink.
> 
> This again I have changed as you suggested in the latest patches that I
> sent this week.

Yeah, I've checked out it. Thanks:)


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