Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155705
b: refs/heads/master
c: 4bba828
h: refs/heads/master
i:
  155703: 684e426
v: v3
  • Loading branch information
Anton Blanchard authored and Ingo Molnar committed Jul 18, 2009
1 parent e6892f0 commit 7fae2f3
Show file tree
Hide file tree
Showing 2 changed files with 7 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: ed900c054b541254f0ce5cedaf75206e29bd614e
refs/heads/master: 4bba828dd9bb950ad1fe340ef148a5436a10f131
6 changes: 6 additions & 0 deletions trunk/tools/perf/builtin-record.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ static int call_graph = 0;
static int verbose = 0;
static int inherit_stat = 0;
static int no_samples = 0;
static int sample_address = 0;

static long samples;
static struct timeval last_read;
Expand Down Expand Up @@ -405,6 +406,9 @@ static void create_counter(int counter, int cpu, pid_t pid)
if (inherit_stat)
attr->inherit_stat = 1;

if (sample_address)
attr->sample_type |= PERF_SAMPLE_ADDR;

if (call_graph)
attr->sample_type |= PERF_SAMPLE_CALLCHAIN;

Expand Down Expand Up @@ -649,6 +653,8 @@ static const struct option options[] = {
"be more verbose (show counter open errors, etc)"),
OPT_BOOLEAN('s', "stat", &inherit_stat,
"per thread counts"),
OPT_BOOLEAN('d', "data", &sample_address,
"Sample addresses"),
OPT_BOOLEAN('n', "no-samples", &no_samples,
"don't sample"),
OPT_END()
Expand Down

0 comments on commit 7fae2f3

Please sign in to comment.