Adrian Hunter
de19e5c3c5
perf tools: Fix trigger class trigger_on()
...
trigger_on() means that the trigger is available but not ready, however
trigger_on() was making it ready. That can segfault if the signal comes
before trigger_ready(). e.g. (USR2 signal delivery not shown)
$ perf record -e intel_pt//u -S sleep 1
perf: Segmentation fault
Obtained 16 stack frames.
/home/ahunter/bin/perf(sighandler_dump_stack+0x40) [0x4ec550]
/lib/x86_64-linux-gnu/libc.so.6(+0x36caf) [0x7fa76411acaf]
/home/ahunter/bin/perf(perf_evsel__disable+0x26) [0x4b9dd6]
/home/ahunter/bin/perf() [0x43a45b]
/lib/x86_64-linux-gnu/libc.so.6(+0x36caf) [0x7fa76411acaf]
/lib/x86_64-linux-gnu/libc.so.6(__xstat64+0x15) [0x7fa7641d2cc5]
/home/ahunter/bin/perf() [0x4ec6c9]
/home/ahunter/bin/perf() [0x4ec73b]
/home/ahunter/bin/perf() [0x4ec73b]
/home/ahunter/bin/perf() [0x4ec73b]
/home/ahunter/bin/perf() [0x4eca15]
/home/ahunter/bin/perf(machine__create_kernel_maps+0x257) [0x4f0b77]
/home/ahunter/bin/perf(perf_session__new+0xc0) [0x4f86f0]
/home/ahunter/bin/perf(cmd_record+0x722) [0x43c132]
/home/ahunter/bin/perf() [0x4a11ae]
/home/ahunter/bin/perf(main+0x5d4) [0x427fb4]
Note, for testing purposes, this is hard to hit unless you add some sleep()
in builtin-record.c before record__open().
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com >
Acked-by: Jiri Olsa <jolsa@kernel.org >
Cc: Wang Nan <wangnan0@huawei.com >
Cc: stable@vger.kernel.org
Fixes: 3dcc4436fa
("perf tools: Introduce trigger class")
Link: http://lkml.kernel.org/r/1519807144-30694-1-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com >
2018-03-06 11:31:14 -03:00
..
2017-11-02 11:10:55 +01:00
2018-01-25 06:37:26 -03:00
2017-11-02 11:10:55 +01:00
2017-12-18 06:26:07 +01:00
2017-11-02 11:10:55 +01:00
2018-01-12 11:06:57 -03:00
2018-01-08 11:11:57 -03:00
2017-12-27 12:15:51 -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
2018-03-06 11:05:47 -03:00
2018-01-17 10:23:31 -03:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-01-25 06:37:28 -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-07-18 23:14:40 -03:00
2017-07-25 22:46:35 -03:00
2018-01-25 06:37:25 -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
2016-05-06 13:00:43 -03:00
2016-05-06 13:00:43 -03:00
2018-01-17 10:23:32 -03:00
2018-01-17 10:23:32 -03:00
2018-01-25 06:37:30 -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
2017-11-07 10:30:18 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-07 10:30:18 +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
2017-11-02 11:10:55 +01:00
2018-01-25 06:37:27 -03:00
2018-01-25 06:37:24 -03:00
2017-11-02 11:10:55 +01:00
2017-10-30 13:37:37 -03:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-01-23 09:48:20 -03:00
2017-11-07 10:30:18 +01:00
2016-05-30 12:41:43 -03:00
2016-05-06 13:00:53 -03:00
2017-11-07 10:30:18 +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
2017-11-02 11:10:55 +01:00
2017-04-19 13:01:51 -03:00
2016-09-22 12:19:41 -03:00
2018-01-23 09:49:28 -03:00
2017-11-07 10:30:18 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-04-19 13:01:51 -03:00
2016-09-29 11:17:08 -03:00
2017-11-02 11:10:55 +01:00
2017-12-27 12:15:52 -03:00
2017-12-27 12:15:52 -03:00
2018-01-10 12:00:39 -03:00
2018-01-18 09:01:23 -03:00
2018-02-15 09:50:53 -03:00
2018-02-15 09:50:53 -03:00
2017-11-07 10:30:18 +01:00
2018-02-15 09:54:53 -03:00
2018-02-15 09:54:53 -03:00
2017-11-02 11:10:55 +01:00
2017-08-22 12:19:08 -03:00
2017-11-02 11:10:55 +01:00
2017-06-19 15:27:07 -03:00
2016-10-24 11:07:40 -03:00
2017-11-02 11:10:55 +01:00
2018-01-23 09:51:38 -03:00
2017-11-02 11:10:55 +01:00
2018-01-08 11:20:51 -03:00
2018-01-08 11:20:51 -03:00
2017-11-02 11:10:55 +01:00
2015-12-14 12:30:37 -03:00
2017-11-07 10:30:18 +01:00
2018-02-15 09:56:26 -03:00
2018-01-18 09:01:23 -03:00
2015-08-21 11:34:10 -03:00
2018-01-18 09:01:23 -03:00
2016-09-29 11:17:05 -03:00
2013-10-14 10:28:48 -03:00
2017-11-02 11:10:55 +01:00
2017-11-07 10:30:18 +01:00
2017-11-07 10:30:18 +01:00
2016-10-24 11:07:39 -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
2017-11-02 11:10:55 +01:00
2018-01-08 11:11:57 -03:00
2017-11-07 10:30:18 +01:00
2018-01-08 11:11:57 -03:00
2017-11-07 10:30:18 +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
2017-12-27 12:15:49 -03:00
2017-09-13 09:49:13 -03:00
2018-02-15 09:54:17 -03:00
2018-02-15 09:54:17 -03:00
2017-09-13 09:49:16 -03:00
2017-10-23 16:30:54 -03:00
2017-11-17 12:14:09 -03:00
2017-11-17 12:14:09 -03:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-01-25 06:37:30 -03:00
2017-11-28 14:19:39 -03:00
2017-11-13 13:05:08 -08:00
2017-08-17 16:39:15 -03:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-27 12:15:48 -03:00
2017-12-27 12:15:48 -03:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01: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
2017-12-05 15:43:55 -03:00
2017-12-05 10:24:33 -03:00
2017-11-07 10:30:18 +01:00
2017-11-07 10:30:18 +01:00
2017-12-27 12:15:55 -03:00
2017-11-02 11:10:55 +01:00
2017-09-13 09:49:16 -03:00
2017-11-02 11:10:55 +01:00
2017-04-19 13:01:52 -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
2017-12-05 15:43:53 -03:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-07 10:30:18 +01:00
2017-12-05 10:24:31 -03:00
2017-12-05 10:24:31 -03: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
2017-11-02 11:10:55 +01:00
2018-01-23 09:51:36 -03:00
2017-11-18 08:59:27 +01:00
2017-07-18 23:14:08 -03:00
2017-02-17 10:31:13 -03:00
2017-08-22 12:09:04 -03:00
2017-08-22 12:09:04 -03:00
2018-01-18 10:28:14 -03:00
2017-11-07 10:30:18 +01:00
2018-01-08 11:11:57 -03:00
2018-01-08 11:11:57 -03:00
2017-12-27 12:15:44 -03:00
2017-12-27 12:15:46 -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
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
2017-11-02 11:10:55 +01:00
2016-08-23 15:37:33 -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-12-27 12:15:54 -03:00
2017-12-27 12:15:54 -03:00
2017-12-27 12:15:50 -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
2017-12-27 12:15:46 -03:00
2017-12-27 12:15:46 -03:00
2017-04-19 13:01:51 -03:00
2016-06-23 17:04:26 -03:00
2017-11-07 10:30:18 +01:00
2017-11-07 10:30:18 +01:00
2018-01-17 10:23:36 -03:00
2018-01-17 10:23:36 -03:00
2018-01-10 12:00:55 -03:00
2013-12-19 14:43:45 -03:00
2017-11-07 10:30:18 +01:00
2017-09-21 13:28:06 -03:00
2017-06-27 11:08:14 -03:00
2017-09-21 13:28:06 -03:00
2016-10-28 11:29:44 -02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01: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
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-01-17 10:23:32 -03:00
2017-12-27 12:15:52 -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
2018-02-15 09:57:19 -03:00
2018-01-23 09:48:20 -03:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-07 10:30:18 +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-07 10:30:18 +01:00