Masami Hiramatsu
5a6cf77f5e
kprobes: Remove jprobe API implementation
...
Remove functionally empty jprobe API implementations and test cases.
Signed-off-by: Masami Hiramatsu <[email protected] >
Acked-by: Thomas Gleixner <[email protected] >
Cc: Ananth N Mavinakayanahalli <[email protected] >
Cc: Andrew Morton <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Steven Rostedt <[email protected] >
Cc: [email protected]
Link: https://lore.kernel.org/lkml/152942430705.15209.2307050500995264322.stgit@devbox
Signed-off-by: Ingo Molnar <[email protected] >
2018-06-21 12:33:05 +02:00
Masami Hiramatsu
2c7d662e26
kprobes: Disable the jprobes test code
...
Disable jprobes test code because jprobes are deprecated.
This code will be completely removed when the jprobe code
is removed.
Signed-off-by: Masami Hiramatsu <[email protected] >
Cc: Alexei Starovoitov <[email protected] >
Cc: Ananth N Mavinakayanahalli <[email protected] >
Cc: Anil S Keshavamurthy <[email protected] >
Cc: David S . Miller <[email protected] >
Cc: Ian McDonald <[email protected] >
Cc: Kees Cook <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Paul E . McKenney <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Stephen Hemminger <[email protected] >
Cc: Steven Rostedt <[email protected] >
Cc: Thomas Gleixner <[email protected] >
Cc: Vlad Yasevich <[email protected] >
Link: http://lkml.kernel.org/r/150724531730.5014.6377596890962355763.stgit@devbox
Signed-off-by: Ingo Molnar <[email protected] >
2017-10-20 11:02:54 +02:00
Masami Hiramatsu
3539d09154
kprobes: Improve smoke test to check preemptibility
...
Add preemptible check to each handler. Handlers are called with
non-preemtible, which is guaranteed by Documentation/kprobes.txt.
Signed-off-by: Masami Hiramatsu <[email protected] >
Cc: Alexei Starovoitov <[email protected] >
Cc: Alexei Starovoitov <[email protected] >
Cc: Ananth N Mavinakayanahalli <[email protected] >
Cc: Linus Torvalds <[email protected] >
Cc: Paul E . McKenney <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Steven Rostedt <[email protected] >
Cc: Thomas Gleixner <[email protected] >
Link: http://lkml.kernel.org/r/150581513991.32348.7956810394499654272.stgit@devbox
Signed-off-by: Ingo Molnar <[email protected] >
2017-09-28 09:23:03 +02:00
Fabian Frederick
4878b14b43
kernel/test_kprobes.c: use current logging functions
...
- Add pr_fmt
- Coalesce formats
- Use current pr_foo() functions instead of printk
- Remove unnecessary "failed" display (already in log level).
Signed-off-by: Fabian Frederick <[email protected] >
Cc: Ananth N Mavinakayanahalli <[email protected] >
Cc: Anil S Keshavamurthy <[email protected] >
Cc: "David S. Miller" <[email protected] >
Cc: Masami Hiramatsu <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2014-08-08 15:57:18 -07:00
Akinobu Mita
6d65df3325
kernel/: rename random32() to prandom_u32()
...
Use preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2013-04-29 18:28:42 -07:00
Masami Hiramatsu
fd02e6f7ae
kprobes: Fix selftest to clear flags field for reusing probes
...
Fix selftest to clear flags field for reusing probes
because the flags field can be modified by Kprobes.
This also set NULL to kprobe.addr instead of 0.
Signed-off-by: Masami Hiramatsu <[email protected] >
Cc: Rusty Russell <[email protected] >
Cc: Ananth N Mavinakayanahalli <[email protected] >
Cc: [email protected]
LKML-Reference: <[email protected] >
Signed-off-by: Ingo Molnar <[email protected] >
2010-10-14 08:55:27 +02:00
Masami Hiramatsu
12da3b888b
kprobes: add tests for register_kprobes
...
Add testcases for *probe batch registration (register_kprobes) to kprobes
sanity tests.
Signed-off-by: Masami Hiramatsu <[email protected] >
Acked-by: Ananth N Mavinakayanahalli <[email protected] >
Cc: Jim Keniston <[email protected] >
Cc: David Miller <[email protected] >
Cc: Anil S Keshavamurthy <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2009-01-06 15:59:20 -08:00
Masami Hiramatsu
8e1144050e
kprobes: indirectly call kprobe_target
...
Call kprobe_target indirectly. This prevents gcc to unroll a noinline
function in caller function.
I ported patches which had been discussed on
http://sources.redhat.com/bugzilla/show_bug.cgi?id=3542
Signed-off-by: Masami Hiramatsu <[email protected] >
Acked-by: Ananth N Mavinakayanahalli <[email protected] >
Cc: Jim Keniston <[email protected] >
Cc: David Miller <[email protected] >
Cc: Anil S Keshavamurthy <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2009-01-06 15:59:20 -08:00
Abhishek Sagar
f47cd9b553
kprobes: kretprobe user entry-handler
...
Provide support to add an optional user defined callback to be run at
function entry of a kretprobe'd function. Also modify the kprobe smoke
tests to include an entry-handler during the kretprobe sanity test.
Signed-off-by: Abhishek Sagar <[email protected] >
Cc: Prasanna S Panchamukhi <[email protected] >
Cc: Ananth N Mavinakayanahalli <[email protected] >
Cc: Anil S Keshavamurthy <[email protected] >
Acked-by: Jim Keniston <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2008-02-06 10:41:11 -08:00
Ananth N Mavinakayanahalli
8c1c935642
x86: kprobes: add kprobes smoke tests that run on boot
...
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.
This is a start; we intend to add more tests to this bucket over time.
Thanks to Jim Keniston and Masami Hiramatsu for comments and suggestions.
Tested on x86 (32/64) and powerpc.
Signed-off-by: Ananth N Mavinakayanahalli <[email protected] >
Acked-by: Masami Hiramatsu <[email protected] >
Signed-off-by: Thomas Gleixner <[email protected] >
Signed-off-by: Ingo Molnar <[email protected] >
2008-01-30 13:32:53 +01:00