Steven Rostedt (VMware)
b6399cc789
tracing/kprobe: Do not run kprobe boot tests if kprobe_event is on cmdline
When having kprobe trace event start up tests enabled and adding a
kprobe_event on the kernel command line, it produced the following:
trace_kprobe: Testing kprobe tracing:
WARNING: CPU: 5 PID: 1 at kernel/trace/trace_kprobe.c:1724 kprobe_trace_self_tests_init+0x32d/0x36b
Modules linked in:
CPU: 5 PID: 1 Comm: swapper/0 Not tainted 5.2.0-rc1-test+ #249
Hardware name: Hewlett-Packard HP Compaq Pro 6300 SFF/339A, BIOS K01 v03.03 07/14/2016
RIP: 0010:kprobe_trace_self_tests_init+0x32d/0x36b
Code: b7 e8 4f 8d a2 fe 85 c0 74 10 0f 0b 48 c7 c7 c8 1b 0d b7 ff c3 e8 19 af 99 fe 48 c7 c7 40 93 27 b7 e8 7f 1a a5 fe 85 c0 74 10 <0f> 0b 48 c7 c7 f8 1b 0d b7 ff c3 e8 f9 ae
9 a0 fe 85
RSP: 0018:ffffb36e40653e08 EFLAGS: 00010286
RAX: 00000000fffffff0 RBX: 0000000000000000 RCX: ffffb36e40653d5c
RDX: 0000000000000000 RSI: ffffffffb72776e0 RDI: 0000000000000246
RBP: ffff98414fe58ff8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: ffff98415d8aa940 R12: 0000000000000000
R13: ffffffffb737c1b0 R14: 0000000000000000 R15: 0000000000000000
FS: 0000000000000000(0000) GS:ffff98415ea80000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f959ce741b8 CR3: 000000011a210002 CR4: 00000000001606e0
Call Trace:
? init_kprobe_trace+0x19e/0x19e
? do_early_param+0x8e/0x8e
do_one_initcall+0x6f/0x2b4
? do_early_param+0x8e/0x8e
kernel_init_freeable+0x21d/0x2c6
? rest_init+0x146/0x146
kernel_init+0xa/0x10a
ret_from_fork+0x3a/0x50
---[ end trace 488430c083a4c956 ]---
As with the trace events, if a trace event is set on the kernel command
line, the trace events start up tests are suspended. The kprobe start up
tests should do the same when a kprobe is enabled on the kernel command
line.
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
2019-05-25 23:04:43 -04:00
..
2019-05-13 02:05:50 +02:00
2019-05-14 19:52:48 -07:00
2019-05-14 13:44:24 +01:00
2019-05-09 08:40:55 -07:00
2019-05-14 09:47:49 -07:00
2019-05-14 19:52:51 -07:00
2019-05-19 10:58:45 -07:00
2019-05-15 16:05:47 -07:00
2019-05-07 08:46:46 +02:00
2019-05-06 19:40:31 -07:00
2019-05-18 15:52:26 -07:00
2019-05-15 16:05:47 -07:00
2019-05-14 19:52:48 -07:00
2019-05-16 11:00:20 -07:00
2019-05-25 23:04:43 -04:00
2019-04-29 16:48:03 +02:00
2019-04-04 21:04:13 -04:00
2019-04-09 14:19:06 +02:00
2019-04-28 20:33:43 -04:00
2019-04-26 13:51:03 -04:00
2019-04-28 20:33:43 -04:00
2019-03-20 20:57:48 -04:00
2019-04-28 20:33:43 -04:00
2019-05-07 20:03:32 -07:00
2019-05-07 20:03:32 -07:00
2019-04-29 12:37:47 +02:00
2018-10-31 08:54:14 -07:00
2019-01-25 11:22:43 -08:00
2019-05-15 08:16:14 -07:00
2019-03-07 18:32:02 -08:00
2019-05-06 14:50:46 -07:00
2019-03-05 21:07:14 -08:00
2019-01-08 13:18:44 -08:00
2019-05-14 19:52:47 -07:00
2019-04-09 14:19:06 +02:00
2019-05-14 19:52:49 -07:00
2019-05-14 09:47:46 -07:00
2019-04-29 16:48:03 +02:00
2019-03-07 18:31:59 -08:00
2019-04-19 12:59:36 +02:00
2019-04-18 14:07:52 +02:00
2019-04-29 08:29:21 +02:00
2019-01-21 17:38:56 -03:00
2019-05-06 16:57:52 -07:00
2018-12-15 17:44:35 +09:00
2019-03-07 18:32:02 -08:00
2019-05-03 19:42:41 +02:00
2019-05-14 09:47:50 -07:00
2019-04-29 16:48:03 +02:00
2019-05-25 23:04:43 -04:00
2019-05-14 19:52:48 -07:00
2019-05-14 19:52:49 -07:00
2019-05-14 19:52:47 -07:00
2019-05-14 09:47:51 -07:00
2018-11-07 14:41:41 +01:00
2019-03-28 15:00:37 +01:00
2019-05-14 10:55:54 -07:00
2019-05-14 19:52:49 -07:00
2019-04-25 22:06:11 +02:00
2019-05-18 15:52:26 -07:00
2019-05-14 19:52:51 -07:00
2018-10-31 08:54:16 -07:00
2019-03-29 10:01:37 -07:00
2019-05-14 19:52:51 -07:00
2019-03-12 13:27:20 -07:00
2019-04-19 12:59:36 +02:00
2019-04-19 12:39:32 +02:00
2019-05-07 19:06:04 -07:00
2019-05-16 10:43:58 -07:00
2019-01-30 19:27:00 +01:00
2019-03-22 14:36:02 +01:00
2018-12-05 19:31:44 -08:00
2019-04-29 12:37:57 +02:00
2019-04-09 14:19:06 +02:00
2019-05-07 14:31:03 +02:00
2019-05-14 09:47:44 -07:00
2019-01-04 13:13:47 -08:00
2019-05-14 19:52:51 -07:00
2019-04-27 17:07:22 -04:00
2019-03-26 14:42:53 -07:00
2018-11-27 09:21:41 -08:00
2019-01-11 18:05:40 -08:00
2018-11-07 23:51:16 -06:00
2019-05-14 19:52:49 -07:00
2019-04-19 09:46:05 -07:00
2019-04-18 14:05:51 +02:00
2019-04-16 16:55:15 +02:00
2019-05-09 13:48:52 -07:00