Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277283
b: refs/heads/master
c: 01c2d99
h: refs/heads/master
i:
  277281: 397f977
  277279: 43b0f57
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed Nov 28, 2011
1 parent 4397f68 commit 89b5b69
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 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: 50a682ce875f91e04c81ae5680535aba5a770bad
refs/heads/master: 01c2d99bcf6fc7f6ce3fe3d0fb38b124e1f127fc
9 changes: 5 additions & 4 deletions trunk/tools/perf/builtin-record.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ enum write_mode_t {
WRITE_APPEND
};

static struct perf_record_opts record_opts = {
struct perf_record_opts record_opts = {
.target_pid = -1,
.target_tid = -1,
.mmap_pages = UINT_MAX,
.user_freq = UINT_MAX,
.user_interval = ULLONG_MAX,
.freq = 1000,
.sample_id_all_avail = true,
};

static unsigned int page_size;
static unsigned int mmap_pages = UINT_MAX;
static int output;
static const char *output_name = NULL;
static bool group = false;
Expand Down Expand Up @@ -272,7 +272,7 @@ static void open_counters(struct perf_evlist *evlist)
exit(-1);
}

if (perf_evlist__mmap(evlist, mmap_pages, false) < 0)
if (perf_evlist__mmap(evlist, record_opts.mmap_pages, false) < 0)
die("failed to mmap with %d (%s)\n", errno, strerror(errno));

if (file_new)
Expand Down Expand Up @@ -647,7 +647,8 @@ const struct option record_options[] = {
OPT_BOOLEAN('i', "no-inherit", &record_opts.no_inherit,
"child tasks do not inherit counters"),
OPT_UINTEGER('F', "freq", &record_opts.user_freq, "profile at this frequency"),
OPT_UINTEGER('m', "mmap-pages", &mmap_pages, "number of mmap data pages"),
OPT_UINTEGER('m', "mmap-pages", &record_opts.mmap_pages,
"number of mmap data pages"),
OPT_BOOLEAN(0, "group", &group,
"put the counters into a counter group"),
OPT_BOOLEAN('g', "call-graph", &record_opts.call_graph,
Expand Down
1 change: 1 addition & 0 deletions trunk/tools/perf/perf.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ struct perf_record_opts {
bool sample_id_all_avail;
bool system_wide;
unsigned int freq;
unsigned int mmap_pages;
unsigned int user_freq;
u64 default_interval;
u64 user_interval;
Expand Down

0 comments on commit 89b5b69

Please sign in to comment.