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;
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);
}
"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()
};