Re: [PATCH] Kprobes: Add kprobes smoke tests that run on boot

From: Ingo Molnar
Date: Tue Jan 08 2008 - 04:16:59 EST



* Ananth N Mavinakayanahalli <ananth@xxxxxxxxxx> wrote:

> From: Ananth N Mavinakayanahalli <ananth@xxxxxxxxxx>
>
> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/