linux_dsm_epyc7002/arch
Ananth N Mavinakayanahalli bf8f6e5b3e Kprobes: The ON/OFF knob thru debugfs
This patch provides a debugfs knob to turn kprobes on/off

o A new file /debug/kprobes/enabled indicates if kprobes is enabled or
  not (default enabled)
o Echoing 0 to this file will disarm all installed probes
o Any new probe registration when disabled will register the probe but
  not arm it. A message will be printed out in such a case.
o When a value 1 is echoed to the file, all probes (including ones
  registered in the intervening period) will be enabled
o Unregistration will happen irrespective of whether probes are globally
  enabled or not.
o Update Documentation/kprobes.txt to reflect these changes. While there
  also update the doc to make it current.

We are also looking at providing sysrq key support to tie to the disabling
feature provided by this patch.

[akpm@linux-foundation.org: Use bool like a bool!]
[akpm@linux-foundation.org: add printk facility levels]
[cornelia.huck@de.ibm.com: Add the missing arch_trampoline_kprobe() for s390]
Signed-off-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Signed-off-by: Srinivasa DS <srinivasa@in.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-08 11:15:19 -07:00
..
alpha utimensat implementation 2007-05-08 11:15:18 -07:00
arm header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
arm26 header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
avr32 header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
blackfin blackfin architecture 2007-05-07 12:12:58 -07:00
cris dma_declare_coherent_memory wrong allocation 2007-05-08 11:15:14 -07:00
frv header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
h8300 header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
i386 Kprobes: The ON/OFF knob thru debugfs 2007-05-08 11:15:19 -07:00
ia64 Kprobes: The ON/OFF knob thru debugfs 2007-05-08 11:15:19 -07:00
m32r header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
m68k header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
m68knommu header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
mips Replace deprecated SA_xxx interrupt flags 2007-05-08 11:15:08 -07:00
parisc Simplify kallsyms_lookup() 2007-05-08 11:15:08 -07:00
powerpc Kprobes: The ON/OFF knob thru debugfs 2007-05-08 11:15:19 -07:00
ppc header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
s390 Kprobes: The ON/OFF knob thru debugfs 2007-05-08 11:15:19 -07:00
sh header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
sh64 Simplify kallsyms_lookup() 2007-05-08 11:15:08 -07:00
sparc header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
sparc64 utimensat implementation 2007-05-08 11:15:18 -07:00
um uml: an idle system should have zero load average 2007-05-08 11:14:57 -07:00
v850 header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
x86_64 Kprobes: The ON/OFF knob thru debugfs 2007-05-08 11:15:19 -07:00
xtensa header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00