Adrian Hunter
26f19c2eb7
perf intel-pt: Fix itrace defaults for perf script
...
Commit 4eb068157121 ("perf script: Make itrace script default to all
calls") does not work because 'use_browser' is being used to determine
whether to default to periodic sampling (i.e. better for perf report).
The result is that nothing but CBR events display for perf script when
no --itrace option is specified.
Fix by using 'default_no_sample' and 'inject' instead.
Example:
Before:
$ perf record -e intel_pt/cyc/u ls
$ perf script > cmp1.txt
$ perf script --itrace=cepwx > cmp2.txt
$ diff -sq cmp1.txt cmp2.txt
Files cmp1.txt and cmp2.txt differ
After:
$ perf script > cmp1.txt
$ perf script --itrace=cepwx > cmp2.txt
$ diff -sq cmp1.txt cmp2.txt
Files cmp1.txt and cmp2.txt are identical
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: stable@vger.kernel.org # v4.20+
Fixes: 90e457f7be08 ("perf tools: Add Intel PT support")
Link: http://lkml.kernel.org/r/20190520113728.14389-2-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2019-05-28 18:37:42 -03:00
..
2019-03-06 09:47:48 -03:00
2019-03-28 14:31:55 -03:00
2019-01-03 18:57:57 -08:00
2019-05-16 14:17:24 -03:00
2017-11-02 11:10:55 +01:00
2019-04-01 15:18:10 -03:00
2019-05-15 16:36:46 -03:00
2019-03-20 16:43:15 -03:00
2019-03-11 11:56:02 -03:00
2018-01-17 10:23:31 -03:00
2018-01-17 10:23:31 -03:00
2018-01-17 10:23:31 -03:00
2018-01-17 10:23:31 -03:00
2019-03-01 14:47:06 -03:00
2019-02-06 11:20:32 -03:00
2019-01-25 15:12:09 +01:00
2019-01-25 15:12:09 +01:00
2019-02-19 16:11:56 -03:00
2019-02-19 16:11:56 -03:00
2019-03-21 11:27:04 -03:00
2019-03-21 11:27:04 -03:00
2019-03-06 07:59:36 -08:00
2019-02-06 10:00:39 -03:00
2018-06-15 18:10:01 -03:00
2017-11-02 11:10:55 +01:00
2017-07-18 23:14:40 -03:00
2019-01-25 15:12:08 +01:00
2019-05-15 16:36:49 -03:00
2019-03-19 16:52:04 -03:00
2019-01-25 15:12:09 +01:00
2017-11-02 11:10:55 +01:00
2016-05-06 13:00:43 -03:00
2016-05-06 13:00:43 -03:00
2019-02-06 10:00:38 -03:00
2019-02-06 10:00:38 -03:00
2018-06-04 10:28:50 -03:00
2018-03-07 10:22:26 -03:00
2019-05-02 16:00:20 -04:00
2017-11-02 11:10:55 +01:00
2019-01-21 17:38:56 -03:00
2019-01-21 17:38:56 -03:00
2019-01-25 15:12:08 +01:00
2019-01-25 15:12:09 +01:00
2019-01-25 15:12:09 +01:00
2019-05-15 16:36:49 -03:00
2019-03-19 16:52:04 -03:00
2018-05-16 16:11:09 -03:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-02-06 10:00:39 -03:00
2019-02-20 17:08:39 -03:00
2019-02-06 10:00:39 -03:00
2019-02-19 12:21:10 -03:00
2019-02-19 12:21:06 -03:00
2019-05-02 16:00:20 -04:00
2019-02-14 15:18:06 -03:00
2017-11-02 11:10:55 +01:00
2019-05-28 09:49:03 -03:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-03-19 11:56:20 -03:00
2019-03-19 11:56:20 -03:00
2019-03-01 14:50:47 -03:00
2019-03-01 14:50:47 -03:00
2018-03-16 16:39:02 -03:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-03-19 16:52:07 -03:00
2019-03-19 16:52:07 -03:00
2018-12-28 16:33:02 -03:00
2018-12-28 16:33:02 -03:00
2018-04-02 13:50:24 -03:00
2016-09-29 11:17:08 -03:00
2017-11-02 11:10:55 +01:00
2019-05-02 16:00:19 -04:00
2019-05-15 16:36:49 -03:00
2019-05-15 16:36:49 -03:00
2019-05-15 16:36:49 -03:00
2019-05-15 16:36:49 -03:00
2019-05-15 16:36:49 -03:00
2018-12-17 14:57:07 -03:00
2019-05-16 14:17:24 -03:00
2019-05-16 14:17:24 -03:00
2017-11-02 11:10:55 +01:00
2017-08-22 12:19:08 -03:00
2019-01-08 13:28:13 -03:00
2017-06-19 15:27:07 -03:00
2018-04-30 12:02:03 -03:00
2018-10-18 11:16:38 -03:00
2018-04-12 10:33:31 -03:00
2018-11-19 12:12:17 -08:00
2017-11-02 11:10:55 +01:00
2019-05-15 16:36:49 -03:00
2019-05-15 16:36:49 -03:00
2017-11-02 11:10:55 +01:00
2015-12-14 12:30:37 -03:00
2019-03-19 16:52:04 -03:00
2019-03-11 16:33:19 -03:00
2019-03-06 17:55:35 -03:00
2015-08-21 11:34:10 -03:00
2019-05-28 18:37:42 -03:00
2016-09-29 11:17:05 -03:00
2013-10-14 10:28:48 -03:00
2019-01-25 15:12:10 +01:00
2017-11-07 10:30:18 +01:00
2019-01-25 15:12:09 +01:00
2016-10-24 11:07:39 -03:00
2019-02-06 10:00:39 -03:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-08-30 15:52:20 -03:00
2018-08-20 08:54:58 -03:00
2018-08-20 08:54:59 -03:00
2019-05-28 09:52:23 -03:00
2019-02-06 10:00:38 -03:00
2019-02-06 10:00:38 -03:00
2019-02-06 10:00:38 -03:00
2019-04-17 14:30:11 -03:00
2019-04-17 14:30:11 -03:00
2018-03-16 13:52:37 -03:00
2018-03-16 13:52:37 -03:00
2019-02-04 11:32:14 -03:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-02-14 15:18:09 -03:00
2019-02-14 15:18:09 -03:00
2019-05-15 16:36:49 -03:00
2019-05-15 16:36:49 -03:00
2018-11-19 12:12:26 -08:00
2018-11-19 12:12:26 -08:00
2019-03-19 16:52:05 -03:00
2018-12-17 15:02:17 -03:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-05-16 14:17:24 -03:00
2019-05-16 14:17:24 -03:00
2019-05-16 14:17:24 -03:00
2019-04-01 14:49:24 -03:00
2019-05-16 14:17:12 -03:00
2019-05-15 16:36:49 -03:00
2017-12-27 12:15:48 -03:00
2017-12-27 12:15:48 -03:00
2019-05-16 14:17:12 -03:00
2019-05-16 14:17:12 -03:00
2016-11-29 12:13:27 -03:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-03-28 15:53:27 -03:00
2019-03-06 18:18:17 -03:00
2012-03-16 14:29:35 -03:00
2013-02-14 16:12:34 -03:00
2017-11-07 10:30:18 +01:00
2017-11-07 10:30:18 +01:00
2019-03-11 11:56:03 -03:00
2019-01-25 15:12:09 +01:00
2019-01-25 15:12:09 +01:00
2018-09-24 04:44:54 -04:00
2018-03-19 13:51:53 -03:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-27 12:15:56 -03:00
2019-04-01 15:18:10 -03:00
2019-01-25 15:12:10 +01:00
2019-01-25 15:12:10 +01:00
2019-01-25 15:12:10 +01:00
2018-03-05 11:52:41 -03:00
2017-09-21 13:28:06 -03:00
2017-09-21 13:28:06 -03:00
2019-01-21 17:00:48 -03:00
2018-08-08 15:26:48 -03:00
2019-02-14 13:31:08 -03:00
2018-08-03 10:34:18 -03:00
2019-01-21 17:00:56 -03:00
2019-01-21 17:00:48 -03:00
2019-01-21 17:00:48 -03:00
2017-11-02 11:10:55 +01:00
2019-05-28 09:52:23 -03:00
2019-05-15 16:36:49 -03:00
2017-07-18 23:14:08 -03:00
2019-02-06 10:00:39 -03:00
2017-08-22 12:09:04 -03:00
2017-08-22 12:09:04 -03:00
2019-03-19 16:15:42 -03:00
2019-03-19 16:15:42 -03:00
2018-12-17 14:57:07 -03:00
2019-02-06 10:00:38 -03:00
2019-02-19 12:30:12 -03:00
2019-01-25 15:12:09 +01:00
2019-05-16 14:17:24 -03:00
2019-01-25 15:12:10 +01:00
2019-05-16 14:17:24 -03:00
2018-09-19 10:25:10 -03:00
2019-01-04 12:54:49 -03:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-27 12:15:55 -03:00
2017-12-27 12:15:55 -03:00
2017-04-24 13:43:33 -03:00
2019-01-25 15:12:10 +01:00
2018-12-17 14:59:20 -03:00
2017-11-02 11:10:55 +01:00
2019-03-11 16:33:19 -03:00
2019-01-25 15:12:10 +01:00
2019-02-09 13:16:01 +01:00
2019-01-25 15:12:09 +01:00
2019-03-19 16:52:07 -03:00
2019-02-06 10:00:38 -03:00
2018-07-24 14:53:01 -03:00
2017-11-02 11:10:55 +01:00
2016-07-29 11:54:35 -03:00
2017-12-27 12:15:47 -03:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-02-27 11:29:21 -03:00
2018-02-27 11:29:21 -03:00
2019-03-01 14:50:47 -03:00
2019-03-01 14:50:47 -03:00
2019-05-28 09:52:23 -03:00
2019-03-06 17:55:35 -03:00
2019-03-11 11:56:02 -03:00
2019-03-11 11:56:02 -03:00
2019-05-15 16:36:49 -03:00
2018-12-17 14:58:47 -03:00
2018-12-17 14:58:33 -03:00
2018-10-08 14:23:45 -03:00
2019-04-01 15:18:10 -03:00
2019-04-01 15:18:09 -03:00
2018-08-10 15:29:35 -03:00
2019-04-01 15:18:09 -03:00
2018-12-17 14:56:02 -03:00
2018-03-06 11:31:14 -03:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-02-06 10:00:38 -03:00
2017-11-02 11:10:55 +01:00
2019-05-15 16:36:46 -03:00
2019-05-15 16:36:46 -03:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-02-25 10:58:28 -03:00
2019-02-25 10:58:28 -03:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-02-06 10:00:38 -03:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-01-21 15:15:57 -03:00
2019-05-15 16:36:49 -03:00