Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163763
b: refs/heads/master
c: d130252
h: refs/heads/master
i:
  163761: d00751e
  163759: 05f2e27
v: v3
  • Loading branch information
Frederic Weisbecker authored and Ingo Molnar committed Sep 14, 2009
1 parent 9c38da9 commit 4352471
Show file tree
Hide file tree
Showing 3 changed files with 9 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: f977bb4937857994312fff4f9c2cad336a36a932
refs/heads/master: d13025222cdb0043e2239b3b819389358bb31bc0
6 changes: 6 additions & 0 deletions trunk/tools/perf/builtin-record.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ static int call_graph = 0;
static int inherit_stat = 0;
static int no_samples = 0;
static int sample_address = 0;
static int multiplex = 0;

static long samples;
static struct timeval last_read;
Expand Down Expand Up @@ -485,6 +486,9 @@ static void create_counter(int counter, int cpu, pid_t pid)
exit(-1);
}

if (multiplex && fd[nr_cpu][counter] != group_fd)
ioctl(fd[nr_cpu][counter], PERF_COUNTER_IOC_SET_OUTPUT, group_fd);

ioctl(fd[nr_cpu][counter], PERF_COUNTER_IOC_ENABLE);
}

Expand Down Expand Up @@ -681,6 +685,8 @@ static const struct option options[] = {
"Sample addresses"),
OPT_BOOLEAN('n', "no-samples", &no_samples,
"don't sample"),
OPT_BOOLEAN('M', "multiplex", &multiplex,
"multiplex counter output in a single channel"),
OPT_END()
};

Expand Down
2 changes: 2 additions & 0 deletions trunk/tools/perf/builtin-sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -1660,6 +1660,8 @@ static const char *record_args[] = {
"record",
"-a",
"-R",
"-M",
"-g",
"-c", "1",
"-e", "sched:sched_switch:r",
"-e", "sched:sched_stat_wait:r",
Expand Down

0 comments on commit 4352471

Please sign in to comment.