Messages in this thread Patch in this message | | | Date | Tue, 8 Jan 2008 10:15:50 +0100 | From | Ingo Molnar <> | Subject | Re: [PATCH] Kprobes: Add kprobes smoke tests that run on boot |
| |
* Ananth N Mavinakayanahalli <ananth@in.ibm.com> wrote:
> From: Ananth N Mavinakayanahalli <ananth@in.ibm.com> > > Here is a quick and naive smoke test for kprobes. This is intended to > just verify if some unrelated change broke the *probes subsystem. It > is self contained, architecture agnostic and isn't of any great use by > itself. > > This needs to be built in the kernel and runs a basic set of tests to > verify if kprobes, jprobes and kretprobes run fine on the kernel. In > case of an error, it'll print out a message with a "BUG" prefix.
yay! Picked this up into x86.git for testing.
small detail: i moved the kernel/Makefile change to another spot (see below), this way it integrates without rejects with rcu-preempt and with the kgdb changes.
Ingo
Index: linux-x86.q/kernel/Makefile =================================================================== --- linux-x86.q.orig/kernel/Makefile +++ linux-x86.q/kernel/Makefile @@ -43,6 +43,7 @@ obj-$(CONFIG_CPUSETS) += cpuset.o obj-$(CONFIG_CGROUP_NS) += ns_cgroup.o obj-$(CONFIG_IKCONFIG) += configs.o obj-$(CONFIG_STOP_MACHINE) += stop_machine.o +obj-$(CONFIG_KPROBES_SANITY_TEST) += test_kprobes.o obj-$(CONFIG_AUDIT) += audit.o auditfilter.o obj-$(CONFIG_AUDITSYSCALL) += auditsc.o obj-$(CONFIG_AUDIT_TREE) += audit_tree.o
| |