lkml.org 
[lkml]   [2008]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [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

\
 
 \ /
  Last update: 2008-01-08 10:19    [W:0.062 / U:15.668 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site