Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182346
b: refs/heads/master
c: b9a63b9
h: refs/heads/master
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo authored and Ingo Molnar committed Jan 13, 2010
1 parent 3128e41 commit ff679be
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: de1764892a61a3ed212973cc028c80dd083179dd
refs/heads/master: b9a63b9b56d6910a25e3d4905525aef150420a9b
14 changes: 12 additions & 2 deletions trunk/tools/perf/builtin-report.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ static char const *input_name = "perf.data";

static int force;
static bool hide_unresolved;
static bool dont_use_callchains;

static int show_threads;
static struct perf_read_values show_threads_values;
Expand Down Expand Up @@ -172,7 +173,8 @@ static int perf_session__setup_sample_type(struct perf_session *self)
" -g?\n");
return -1;
}
} else if (callchain_param.mode != CHAIN_NONE && !symbol_conf.use_callchain) {
} else if (!dont_use_callchains && callchain_param.mode != CHAIN_NONE &&
!symbol_conf.use_callchain) {
symbol_conf.use_callchain = true;
if (register_callchain_param(&callchain_param) < 0) {
fprintf(stderr, "Can't register callchain"
Expand Down Expand Up @@ -246,11 +248,19 @@ static int __cmd_report(void)

static int
parse_callchain_opt(const struct option *opt __used, const char *arg,
int unset __used)
int unset)
{
char *tok;
char *endptr;

/*
* --no-call-graph
*/
if (unset) {
dont_use_callchains = true;
return 0;
}

symbol_conf.use_callchain = true;

if (!arg)
Expand Down

0 comments on commit ff679be

Please sign in to comment.