diff options
Diffstat (limited to 'drivers/tty/sysrq.c')
-rw-r--r-- | drivers/tty/sysrq.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/tty/sysrq.c b/drivers/tty/sysrq.c index 959f9e121cc6..8f01cde61d20 100644 --- a/drivers/tty/sysrq.c +++ b/drivers/tty/sysrq.c | |||
@@ -55,6 +55,8 @@ | |||
55 | #include <asm/ptrace.h> | 55 | #include <asm/ptrace.h> |
56 | #include <asm/irq_regs.h> | 56 | #include <asm/irq_regs.h> |
57 | 57 | ||
58 | #include <trace/hooks/sysrqcrash.h> | ||
59 | |||
58 | /* Whether we react on sysrq keys or just ignore them */ | 60 | /* Whether we react on sysrq keys or just ignore them */ |
59 | static int __read_mostly sysrq_enabled = CONFIG_MAGIC_SYSRQ_DEFAULT_ENABLE; | 61 | static int __read_mostly sysrq_enabled = CONFIG_MAGIC_SYSRQ_DEFAULT_ENABLE; |
60 | static bool __read_mostly sysrq_always_enabled; | 62 | static bool __read_mostly sysrq_always_enabled; |
@@ -151,6 +153,8 @@ static void sysrq_handle_crash(int key) | |||
151 | /* release the RCU read lock before crashing */ | 153 | /* release the RCU read lock before crashing */ |
152 | rcu_read_unlock(); | 154 | rcu_read_unlock(); |
153 | 155 | ||
156 | trace_android_vh_sysrq_crash(current); | ||
157 | |||
154 | panic("sysrq triggered crash\n"); | 158 | panic("sysrq triggered crash\n"); |
155 | } | 159 | } |
156 | static const struct sysrq_key_op sysrq_crash_op = { | 160 | static const struct sysrq_key_op sysrq_crash_op = { |