Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304959
b: refs/heads/master
c: d1cb9fc
h: refs/heads/master
i:
  304957: 09e3ff8
  304955: 435af93
  304951: b17808d
  304943: 28cd2c9
  304927: d6aa758
  304895: a375f8b
v: v3
  • Loading branch information
Namhyung Kim authored and Arnaldo Carvalho de Melo committed May 17, 2012
1 parent 33dfd8e commit 5ad6f8b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 879d77d0cbe20ad1d6099a1e16f03b72c0649828
refs/heads/master: d1cb9fce92c41454bd594fb0920575fc63301878
3 changes: 3 additions & 0 deletions trunk/tools/perf/builtin-record.c
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,9 @@ static struct perf_record record = {
.user_freq = UINT_MAX,
.user_interval = ULLONG_MAX,
.freq = 1000,
.target = {
.uses_mmap = true,
},
},
.write_mode = WRITE_FORCE,
.file_new = true,
Expand Down
1 change: 1 addition & 0 deletions trunk/tools/perf/builtin-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -1167,6 +1167,7 @@ static int test__PERF_RECORD(void)
struct perf_record_opts opts = {
.target = {
.uid = UINT_MAX,
.uses_mmap = true,
},
.no_delay = true,
.freq = 10,
Expand Down
3 changes: 3 additions & 0 deletions trunk/tools/perf/builtin-top.c
Original file line number Diff line number Diff line change
Expand Up @@ -1162,6 +1162,9 @@ int cmd_top(int argc, const char **argv, const char *prefix __used)
.freq = 1000, /* 1 KHz */
.mmap_pages = 128,
.sym_pcnt_filter = 5,
.target = {
.uses_mmap = true,
},
};
char callchain_default_opt[] = "fractal,0.5,callee";
const struct option options[] = {
Expand Down
2 changes: 2 additions & 0 deletions trunk/tools/perf/util/evlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,8 @@ int perf_evlist__create_maps(struct perf_evlist *evlist,

if (perf_target__has_task(target))
evlist->cpus = cpu_map__dummy_new();
else if (!perf_target__has_cpu(target) && !target->uses_mmap)
evlist->cpus = cpu_map__dummy_new();
else
evlist->cpus = cpu_map__new(target->cpu_list);

Expand Down
1 change: 1 addition & 0 deletions trunk/tools/perf/util/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ struct perf_target {
const char *uid_str;
uid_t uid;
bool system_wide;
bool uses_mmap;
};

enum perf_target_errno {
Expand Down

0 comments on commit 5ad6f8b

Please sign in to comment.