summaryrefslogtreecommitdiff
path: root/arch/s390/include/asm/debug.h
diff options
context:
space:
mode:
authorNiklas Schnelle <schnelle@linux.ibm.com>2024-12-13 14:47:32 +0100
committerAlexander Gordeev <agordeev@linux.ibm.com>2024-12-16 16:14:26 +0100
commitdc18c81a57e75c2abfd826164600b5b4f96f5fd9 (patch)
tree18340f4acf232a9227075804a5041f579f397271 /arch/s390/include/asm/debug.h
parent5f952dae48d034b0736593ba98b5aef84038522b (diff)
s390/debug: Add a reverse mode for debug_dump()
In this mode debug_dump() writes the debug log starting at the newest entry followed by earlier entries. To this end add a debug_prev_entry() helper analogous to debug_next_entry() a helper to get the latest entry which is one before the active entry and a helper to iterate either forward or backward. Reviewed-by: Halil Pasic <pasic@linux.ibm.com> Co-developed-by: Halil Pasic <pasic@linux.ibm.com> Signed-off-by: Halil Pasic <pasic@linux.ibm.com> Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/debug.h')
-rw-r--r--arch/s390/include/asm/debug.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/include/asm/debug.h b/arch/s390/include/asm/debug.h
index ec30f6f421a7..aa0995780c10 100644
--- a/arch/s390/include/asm/debug.h
+++ b/arch/s390/include/asm/debug.h
@@ -115,7 +115,7 @@ debug_info_t *debug_register_mode(const char *name, int pages, int nr_areas,
gid_t gid);
ssize_t debug_dump(debug_info_t *id, struct debug_view *view,
- char *buf, size_t buf_size);
+ char *buf, size_t buf_size, bool reverse);
void debug_unregister(debug_info_t *id);