Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1402589

[RFC PATCH 3/3] arch/powerpc : Enable optprobes support in powerpc

From Anju T <anju@linux.vnet.ibm.com>
Newsgroups linux.kernel
Subject [RFC PATCH 3/3] arch/powerpc : Enable optprobes support in powerpc
Date 2016-05-17 22:50 +0200
Message-ID <rzU6d-W9-5@gated-at.bofh.it> (permalink)
References <rzTWy-T4-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Signed-off-by: Anju T <anju@linux.vnet.ibm.com>
---
 Documentation/features/debug/optprobes/arch-support.txt | 2 +-
 arch/powerpc/Kconfig                                    | 1 +
 arch/powerpc/kernel/Makefile                            | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/features/debug/optprobes/arch-support.txt b/Documentation/features/debug/optprobes/arch-support.txt
index b8999d8..45bc99d 100644
--- a/Documentation/features/debug/optprobes/arch-support.txt
+++ b/Documentation/features/debug/optprobes/arch-support.txt
@@ -27,7 +27,7 @@
     |       nios2: | TODO |
     |    openrisc: | TODO |
     |      parisc: | TODO |
-    |     powerpc: | TODO |
+    |     powerpc: |  ok  |
     |        s390: | TODO |
     |       score: | TODO |
     |          sh: | TODO |
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 7cd32c0..a87c9b1 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -104,6 +104,7 @@ config PPC
 	select HAVE_IOREMAP_PROT
 	select HAVE_EFFICIENT_UNALIGNED_ACCESS if !CPU_LITTLE_ENDIAN
 	select HAVE_KPROBES
+	select HAVE_OPTPROBES
 	select HAVE_ARCH_KGDB
 	select HAVE_KRETPROBES
 	select HAVE_ARCH_TRACEHOOK
diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile
index 2da380f..7994e22 100644
--- a/arch/powerpc/kernel/Makefile
+++ b/arch/powerpc/kernel/Makefile
@@ -99,6 +99,7 @@ endif
 obj-$(CONFIG_BOOTX_TEXT)	+= btext.o
 obj-$(CONFIG_SMP)		+= smp.o
 obj-$(CONFIG_KPROBES)		+= kprobes.o
+obj-$(CONFIG_OPTPROBES)		+= optprobes.o optprobes_head.o
 obj-$(CONFIG_UPROBES)		+= uprobes.o
 obj-$(CONFIG_PPC_UDBG_16550)	+= legacy_serial.o udbg_16550.o
 obj-$(CONFIG_STACKTRACE)	+= stacktrace.o
-- 
2.1.0

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC PATCH 0/3] OPTPROBES for powerpc Anju T <anju@linux.vnet.ibm.com> - 2016-05-17 22:40 +0200
  [RFC PATCH 3/3] arch/powerpc : Enable optprobes support in powerpc Anju T <anju@linux.vnet.ibm.com> - 2016-05-17 22:50 +0200
  [RFC PATCH 2/3] arch/powerpc : optprobes for powerpc core Anju T <anju@linux.vnet.ibm.com> - 2016-05-17 22:50 +0200
    Re: [RFC PATCH 2/3] arch/powerpc : optprobes for powerpc core Masami Hiramatsu <mhiramat@kernel.org> - 2016-05-18 17:20 +0200
      Re: [RFC PATCH 2/3] arch/powerpc : optprobes for powerpc core Anju T <anju@linux.vnet.ibm.com> - 2016-05-19 10:00 +0200
        Re: [RFC PATCH 2/3] arch/powerpc : optprobes for powerpc core Masami Hiramatsu <mhiramat@kernel.org> - 2016-05-20 13:40 +0200
  [RFC PATCH 1/3] arch/powerpc : Add detour buffer support for optprobes Anju T <anju@linux.vnet.ibm.com> - 2016-05-17 22:50 +0200

csiph-web