Re: [PATCH] perf record: Let user have timestamps with per-thread recording

2015-07-07 Thread Adrian Hunter
On 06/07/15 18:31, David Ahern wrote: > On 7/6/15 5:51 AM, Adrian Hunter wrote: >> diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c >> index 6be3c01ff6f8..ec98e5b4e14e 100644 >> --- a/tools/perf/util/evsel.c >> +++ b/tools/perf/util/evsel.c >> @@ -707,7 +707,8 @@ void

Re: [PATCH] perf record: Let user have timestamps with per-thread recording

2015-07-07 Thread Adrian Hunter
On 06/07/15 18:31, David Ahern wrote: On 7/6/15 5:51 AM, Adrian Hunter wrote: diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index 6be3c01ff6f8..ec98e5b4e14e 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c @@ -707,7 +707,8 @@ void perf_evsel__config(struct

Re: [PATCH] perf record: Let user have timestamps with per-thread recording

2015-07-06 Thread David Ahern
On 7/6/15 5:51 AM, Adrian Hunter wrote: diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index 6be3c01ff6f8..ec98e5b4e14e 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c @@ -707,7 +707,8 @@ void perf_evsel__config(struct perf_evsel *evsel, struct record_opts

[PATCH] perf record: Let user have timestamps with per-thread recording

2015-07-06 Thread Adrian Hunter
If the option -T is used with option --per-thread, then time is still not sampled. Fix that by using OPT_BOOLEAN_SET to distinguish when the user used the -T option as opposed to the default case when timestamps are enabled but only for per-cpu recording. Signed-off-by: Adrian Hunter ---

[PATCH] perf record: Let user have timestamps with per-thread recording

2015-07-06 Thread Adrian Hunter
If the option -T is used with option --per-thread, then time is still not sampled. Fix that by using OPT_BOOLEAN_SET to distinguish when the user used the -T option as opposed to the default case when timestamps are enabled but only for per-cpu recording. Signed-off-by: Adrian Hunter

Re: [PATCH] perf record: Let user have timestamps with per-thread recording

2015-07-06 Thread David Ahern
On 7/6/15 5:51 AM, Adrian Hunter wrote: diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index 6be3c01ff6f8..ec98e5b4e14e 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c @@ -707,7 +707,8 @@ void perf_evsel__config(struct perf_evsel *evsel, struct record_opts