type defaults to 'int' in declaration of 'md_align_offset'.
[-Werror=implicit-int].
97 | static md_align_offset;.
Change-Id: I909ad4aaa4a20e9c6291798777ebf197beb61160
Signed-off-by: Shudan Liu <quic_shudan@quicinc.com>
Protect md_dump_slabinfo call only if SLUB_DEBUG is enabled.
Change-Id: I1f703e039517dd24fad303f830a6a30a3f32c3f7
Signed-off-by: Rohit Agarwal <quic_rohiagar@quicinc.com>
Don't print thread info for arm arch as it is not supported
for 32 bit architecture.
Change-Id: I9327675d85670fed78e1778c993ab6fa574c972a
Signed-off-by: Rohit Agarwal <quic_rohiagar@quicinc.com>
__per_cpu variables are only applicable for the systems with multiple cpu
Minidump code without any check for same was causing the kernel compilation
to fail for the single core cpu where __per_cpu symbols are not applicable
so added conditional compilation to the __per_cpu code based on CONFIG_SMP.
Change-Id: I626fc3c47fd9600608ea721ef6f8811110e1ee1d
Signed-off-by: Deepak Dimri <ddimri@codeaurora.org>
Because of KIMAGE_VADDR is not defined by ARM32, so in order to
support minidump function on ARM32, so use MODULES_END instead
of KIMAGE_VADDR, because MODULES_END are defined by ARM64 and
ARM32.
Change-Id: Ie0d990baa17a207ceb7ed56faa9b5256f31a3e17
Signed-off-by: Tengfei Fan <tengfeif@codeaurora.org>
Since ro_after_init section content is changed during init, dump
this section also in minidump to provide more debug info.
Change-Id: I7fba1271ac4b6930bfde7bc3aafd43936d81c5ae
Signed-off-by: Huang Yiwei <hyiwei@codeaurora.org>
Use the exported function instead of kallsyms_lookup to get
log_buf location, this can save a lot of time during boot up.
Change-Id: I9ec242ad6edfc3ba101198a5c1ed15bb5ad085a0
Signed-off-by: Huang Yiwei <hyiwei@codeaurora.org>
Put page owner and slub debug entries under conditional
flag, to avoid compilation issues.
Change-Id: I2a0c20f7bc9158e7a52e58c6a28a8f0859e83983
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Correct the idle task check, to be done on 'next'
task, instead of current task, while registering
current task's stack.
Change-Id: I8c4fde434b3eca0543c5748234ebabbd40da8672
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Use kzalloc() to create a zero filled initial buffer for
ftrace minidump and boot logs.
Change-Id: I1655ad4bafea35335256c0f5eb9d7bf432c675f7
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
To give sufficient time to die notifier to complete
their work, add a watchdog die notifier, to reset the
watchdog. Also, increase priority of watchdog panic
notifier and make minidump oops notifiers run after
watchdog oops notifiers.
Change-Id: Ifc53cc5c3b1ecc1554a971b9f2334319cad62bfd
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Check for accessible pages, before capturing the
page context, while dumping pointer data, for
CPU registers.
Change-Id: If7f38f0e3cb12e5c0ad85f8ed3140ce098108f62
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Add support for dumping active modules information,
in minidump registered region.
Change-Id: Id8e81ea7beae425a1a0f68f91a8cf9aa093b8011
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Add minidump entry and dump memory around addresses
contained in registers in panic.
Change-Id: Id4857e3b08838838d8aa3a51cb9d6961be37b579
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Add minidump collection for cpu runqueues, on panic.
Change-Id: Ib9d313c25cb53547fff075587b3fdd9297a74756
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Register and dump ftrace buffer on kernel panic, to minidump
table. The dumps are collected in parsed format.
Change-Id: I10605467d2b566425cc2cb4fd67dbc59fcd592e7
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Add support for registering (and updating) suspend context in
minidump. This is helpful for cases, where suspend/resume
path is stuck.
Change-Id: I7ea9d4bcba85a4a0a2336279a3ffade918d1bd77
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Currently cpu's current stack are being dumped only in
panic path, which is not always helpful. So extend it to
be always dumped for any type of reset reasons.
For every task switch of cpu, update the minidump table with
latest stack. so that we can reconstruct callstack of cpu
for any type of resets.
Change-Id: Ia57a8e0473d3706efc9a88c91fb1dd60523648ad
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Add support to update client's entry physical/virtual addresses,
which is useful for DLKM, dynamic address changing clients.
Currently, msm_minidump_add_region() returns 0 on success, instead
of that, return 'region number' of the entry in the minidump table.
So clients who wants to update their address in future, needs to
book keep their entry in minidump table.
Change-Id: I03abbbd87bf6d2e11cf637525412d352772821cf
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Register irq stacks, so that irq context is correctly
captured in minidumps.
Change-Id: Iabafe0464961a0c25164d66a186846290fbfcafb
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Add snapshot of minidump as of commit <f94ba33e3b90> ("Merge "usb:
dwc3-msm: Fix GDSC collapse in host mode bus suspend"").
Change-Id: Ie322154aefa3b5d482549188096dc613bde1badf
[eberman@codeaurora.org: minidump Kconfig to tristate]
Signed-off-by: Elliot Berman <eberman@codeaurora.org>