Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305509
b: refs/heads/master
c: e40ee74
h: refs/heads/master
i:
  305507: 7d07346
v: v3
  • Loading branch information
Namhyung Kim authored and Arnaldo Carvalho de Melo committed May 22, 2012
1 parent 01422b7 commit 02d778c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 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: e33387fc2748ac78fd577dee2c914fc3ea0ba0cd
refs/heads/master: e40ee742d4542b4c046ac5426654b1494d87ad73
3 changes: 3 additions & 0 deletions trunk/tools/perf/builtin-top.c
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,9 @@ static void perf_top__start_counters(struct perf_top *top)
attr->read_format |= PERF_FORMAT_ID;
}

if (perf_target__has_cpu(&top->target))
attr->sample_type |= PERF_SAMPLE_CPU;

if (symbol_conf.use_callchain)
attr->sample_type |= PERF_SAMPLE_CALLCHAIN;

Expand Down
2 changes: 1 addition & 1 deletion trunk/tools/perf/util/evsel.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void perf_evsel__config(struct perf_evsel *evsel, struct perf_record_opts *opts,
if (opts->call_graph)
attr->sample_type |= PERF_SAMPLE_CALLCHAIN;

if (opts->target.system_wide)
if (perf_target__has_cpu(&opts->target))
attr->sample_type |= PERF_SAMPLE_CPU;

if (opts->period)
Expand Down

0 comments on commit 02d778c

Please sign in to comment.