Skip to content

Commit fa73892

Browse files
committed
examples: add cmdline-string.patch as a compatible example
This is a test example currently preferable to proc-version.patch as crash utility has difficulty parsing /proc/version content after being altered. Signed-off-by: Linqing Lu <[email protected]>
1 parent 059467d commit fa73892

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Diff for: examples/cmdline-string.patch

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff -Nupr src.orig/fs/proc/cmdline.c src/fs/proc/cmdline.c
2+
--- src.orig/fs/proc/cmdline.c 2022-10-24 15:41:08.858760066 -0400
3+
+++ src/fs/proc/cmdline.c 2022-10-24 15:41:11.698715352 -0400
4+
@@ -6,8 +6,7 @@
5+
6+
static int cmdline_proc_show(struct seq_file *m, void *v)
7+
{
8+
- seq_puts(m, saved_command_line);
9+
- seq_putc(m, '\n');
10+
+ seq_printf(m, "%s kpatch=1\n", saved_command_line);
11+
return 0;
12+
}
13+

0 commit comments

Comments
 (0)