mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
perf symbols: Make symbol_conf global
This simplifies a lot of functions, less stuff to be done by tool writers. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> LKML-Reference: <1260914682-29652-1-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
7ef17aafc9
commit
75be6cf487
15 changed files with 54 additions and 80 deletions
|
@ -21,8 +21,6 @@ static char const *input_old = "perf.data.old",
|
|||
static int force;
|
||||
static bool show_percent;
|
||||
|
||||
struct symbol_conf symbol_conf;
|
||||
|
||||
static int perf_session__add_hist_entry(struct perf_session *self,
|
||||
struct addr_location *al, u64 count)
|
||||
{
|
||||
|
@ -226,8 +224,8 @@ static int __cmd_diff(void)
|
|||
int ret, i;
|
||||
struct perf_session *session[2];
|
||||
|
||||
session[0] = perf_session__new(input_old, O_RDONLY, force, &symbol_conf);
|
||||
session[1] = perf_session__new(input_new, O_RDONLY, force, &symbol_conf);
|
||||
session[0] = perf_session__new(input_old, O_RDONLY, force);
|
||||
session[1] = perf_session__new(input_new, O_RDONLY, force);
|
||||
if (session[0] == NULL || session[1] == NULL)
|
||||
return -ENOMEM;
|
||||
|
||||
|
@ -267,7 +265,7 @@ static const struct option options[] = {
|
|||
|
||||
int cmd_diff(int argc, const char **argv, const char *prefix __used)
|
||||
{
|
||||
if (symbol__init(&symbol_conf) < 0)
|
||||
if (symbol__init() < 0)
|
||||
return -1;
|
||||
|
||||
setup_sorting(diff_usage, options);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue