All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <553EF74D.8020706@redhat.com>

diff --git a/a/1.txt b/N1/1.txt
index 4deb006..cdeadaa 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -72,11 +72,3 @@ If single_step_handler doesn't find a handler, is re-enabling the
 single step with set_regs_spsr_ss in single_step_handler the right thing to do?
 
 -Will
-
--------------- next part --------------
-A non-text attachment was scrubbed...
-Name: debug_diag.patch
-Type: text/x-patch
-Size: 915 bytes
-Desc: not available
-URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150427/2a3d266f/attachment.bin>
diff --git a/N1/2.hdr b/N1/2.hdr
new file mode 100644
index 0000000..80131b5
--- /dev/null
+++ b/N1/2.hdr
@@ -0,0 +1,5 @@
+Content-Type: text/x-patch;
+ name="debug_diag.patch"
+Content-Transfer-Encoding: 7bit
+Content-Disposition: attachment;
+ filename="debug_diag.patch"
diff --git a/N1/2.txt b/N1/2.txt
new file mode 100644
index 0000000..9c40c53
--- /dev/null
+++ b/N1/2.txt
@@ -0,0 +1,24 @@
+diff --git a/arch/arm64/kernel/debug-monitors.c b/arch/arm64/kernel/debug-monitors.c
+index dae7bb4..ec5a1b2 100644
+--- a/arch/arm64/kernel/debug-monitors.c
++++ b/arch/arm64/kernel/debug-monitors.c
+@@ -262,6 +262,19 @@ static int single_step_handler(unsigned long addr, unsigned int esr,
+ 
+ 		if (!handler_found) {
+ 			pr_warning("Unexpected kernel single-step exception at EL1\n");
++			{
++		  	struct kprobe_ctlblk *kcb = get_kprobe_ctlblk();
++			pr_warning("kcb->ss_ctx.ss_status = %ld\n",
++				   kcb->ss_ctx.ss_status);
++			printk("kcb->ss_ctx.match_addr = %lx ",
++				     kcb->ss_ctx.match_addr);
++			print_symbol("%s\n", kcb->ss_ctx.match_addr);
++			printk("instruction_pointer(regs) = %lx ",
++				   instruction_pointer(regs));
++			print_symbol("%s\n", instruction_pointer(regs));
++			show_regs(regs);
++			BUG();
++			}
+ 			/*
+ 			 * Re-enable stepping since we know that we will be
+ 			 * returning to regs.
diff --git a/a/content_digest b/N1/content_digest
index 85acff4..92b8328 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,11 +1,23 @@
  "ref\01429561187-3661-1-git-send-email-dave.long@linaro.org\0"
  "ref\055363791.4070706@hitachi.com\0"
  "ref\0553AB222.50609@redhat.com\0"
- "From\0wcohen@redhat.com (William Cohen)\0"
- "Subject\0[PATCH v6 0/6] arm64: Add kernel probes (kprobes) support\0"
+ "From\0William Cohen <wcohen@redhat.com>\0"
+ "Subject\0Re: [PATCH v6 0/6] arm64: Add kernel probes (kprobes) support\0"
  "Date\0Mon, 27 Apr 2015 22:58:21 -0400\0"
- "To\0linux-arm-kernel@lists.infradead.org\0"
- "\00:1\0"
+ "To\0Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>"
+  David Long <dave.long@linaro.org>
+ " Will Deacon <will.deacon@arm.com>\0"
+ "Cc\0linux-arm-kernel@lists.infradead.org"
+  Russell King <linux@arm.linux.org.uk>
+  sandeepa.s.prabhu@gmail.com
+  Steve Capper <steve.capper@linaro.org>
+  Catalin Marinas <catalin.marinas@arm.com>
+  Jon Medhurst (Tixy) <tixy@linaro.org>
+  Ananth N Mavinakayanahalli <ananth@in.ibm.com>
+  Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
+  davem@davemloft.net
+ " linux-kernel@vger.kernel.org\0"
+ "\01:1\0"
  "b\0"
  "\n"
  "Hi All,\n"
@@ -80,14 +92,33 @@
  "If single_step_handler doesn't find a handler, is re-enabling the\n"
  "single step with set_regs_spsr_ss in single_step_handler the right thing to do?\n"
  "\n"
- "-Will\n"
- "\n"
- "-------------- next part --------------\n"
- "A non-text attachment was scrubbed...\n"
- "Name: debug_diag.patch\n"
- "Type: text/x-patch\n"
- "Size: 915 bytes\n"
- "Desc: not available\n"
- URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150427/2a3d266f/attachment.bin>
+ -Will
+ "\01:2\0"
+ "fn\0debug_diag.patch\0"
+ "b\0"
+ "diff --git a/arch/arm64/kernel/debug-monitors.c b/arch/arm64/kernel/debug-monitors.c\n"
+ "index dae7bb4..ec5a1b2 100644\n"
+ "--- a/arch/arm64/kernel/debug-monitors.c\n"
+ "+++ b/arch/arm64/kernel/debug-monitors.c\n"
+ "@@ -262,6 +262,19 @@ static int single_step_handler(unsigned long addr, unsigned int esr,\n"
+ " \n"
+ " \t\tif (!handler_found) {\n"
+ " \t\t\tpr_warning(\"Unexpected kernel single-step exception at EL1\\n\");\n"
+ "+\t\t\t{\n"
+ "+\t\t  \tstruct kprobe_ctlblk *kcb = get_kprobe_ctlblk();\n"
+ "+\t\t\tpr_warning(\"kcb->ss_ctx.ss_status = %ld\\n\",\n"
+ "+\t\t\t\t   kcb->ss_ctx.ss_status);\n"
+ "+\t\t\tprintk(\"kcb->ss_ctx.match_addr = %lx \",\n"
+ "+\t\t\t\t     kcb->ss_ctx.match_addr);\n"
+ "+\t\t\tprint_symbol(\"%s\\n\", kcb->ss_ctx.match_addr);\n"
+ "+\t\t\tprintk(\"instruction_pointer(regs) = %lx \",\n"
+ "+\t\t\t\t   instruction_pointer(regs));\n"
+ "+\t\t\tprint_symbol(\"%s\\n\", instruction_pointer(regs));\n"
+ "+\t\t\tshow_regs(regs);\n"
+ "+\t\t\tBUG();\n"
+ "+\t\t\t}\n"
+ " \t\t\t/*\n"
+ " \t\t\t * Re-enable stepping since we know that we will be\n"
+ " \t\t\t * returning to regs."
 
-d20ad3e71b340ff16054ee6b7a2b74fa36949e71076b62e7e8b63593502dcbd2
+d2098b637ac38e425dbf523c8799b3b0a932ebb67063eede094194c04c5b4555

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.