lkml.org 
[lkml]   [2015]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH perf/core 6/8] perf-probe: Add --no-inlines option to avoid searching inline functions
On 2015/05/07 0:52, Arnaldo Carvalho de Melo wrote:
> Em Wed, May 06, 2015 at 09:46:51PM +0900, Masami Hiramatsu escreveu:
>> Add --no-inlines(--inlines) option to avoid searching inline
>> functions.
>> Searching all functions which matches glob pattern can take a
>> long time and find a lot of inline functions. With this option
>> perf-probe searches target on the non-inlined functions.
>>
>>
>> ret = add_perf_probe_events(params.events, params.nevents,
>> params.max_probe_points,
>> - params.force_add);
>> + params.force_add,
>> + params.no_inlines);
>
> So, there is just one call to this function, and all the parameters come
> from the 'param' struct, why not just pass it?

Hm, the reason why I don't do that is for readability in
util/probe-event.c side. Passing params to the callee involves
- export params struct (not be static)
- callee has to extract required parameters from params.
- it makes obscure that what parameters will be used in the method.

However, it seems that some of them would be better global configs
like symbol_conf. I'd like to suggest to introduce probe_conf global
config. Is it OK ?

Thank you,

--
Masami HIRAMATSU
Linux Technology Research Center, System Productivity Research Dept.
Center for Technology Innovation - Systems Engineering
Hitachi, Ltd., Research & Development Group
E-mail: masami.hiramatsu.pt@hitachi.com


\
 
 \ /
  Last update: 2015-05-07 02:01    [W:0.055 / U:0.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site