02 Oct, 2015
1 commit
-
Commit 3033f14ab78c ("clone: support passing tls argument via C rather
than pt_regs magic") introduced _do_fork() that allowed to pass @tls
parameter.The old do_fork() is defined only for architectures that are not ready
to use this way and do not define HAVE_COPY_THREAD_TLS.Let's use _do_fork() in the kprobe examples to make them work again on
all architectures.Signed-off-by: Petr Mladek
Cc: Ingo Molnar
Cc: Masami Hiramatsu
Cc: Andy Lutomirski
Cc: Peter Zijlstra
Cc: "H. Peter Anvin"
Cc: Thomas Gleixner
Cc: Thiago Macieira
Cc: Jiri Kosina
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
26 Sep, 2014
1 commit
-
In commit e80d666 "flagday: kill pt_regs argument of do_fork()", the
arguments to do_fork() changed.The example code in jprobe_example.c was not updated to match, so the
arguments inside the jprobe handler do not match reality.Fix it by updating the arguments to match do_fork(). While we're at it
use pr_info() for brevity, and print stack_start as well for interest.Signed-off-by: Michael Ellerman
Acked-by: Masami Hiramatsu
Signed-off-by: Jiri Kosina
30 Aug, 2013
1 commit
-
This change includes support for Kprobes, Jprobes and Return Probes.
Reviewed-by: Masami Hiramatsu
Signed-off-by: Tony Lu
Signed-off-by: Chris Metcalf
05 Aug, 2010
1 commit
-
This KProbes example is a little useless if it doesn't print anything.
For MIPS print similar messages to those produced on x86 and PPC.Signed-off-by: David Daney
To: linux-mips@linux-mips.org
To: ananth@in.ibm.com
To: anil.s.keshavamurthy@intel.com
To: davem@davemloft.net
To: masami.hiramatsu.pt@hitachi.com
Cc: linux-kernel@vger.kernel.org
Cc: hschauhan@nulltrace.org
Patchwork: https://patchwork.linux-mips.org/patch/1528/
Signed-off-by: Ralf Baechle
17 Aug, 2009
1 commit
-
sched.h inclusion is definitely not needed like in 32-bit version,
remove it, fixup compilation.Signed-off-by: Alexey Dobriyan
Signed-off-by: David S. Miller
05 Mar, 2008
1 commit
-
Move kprobes examples from Documentation/kprobes.txt to under samples/.
Patch originally by Randy Dunlap.o Updated the patch to apply on 2.6.25-rc3
o Modified examples code to build on multiple architectures. Currently,
the kprobe and jprobe examples code works for x86 and powerpc
o Cleaned up unneeded #includes
o Cleaned up Kconfig per Sam Ravnborg's suggestions to fix build break
on archs that don't have kretprobes
o Implemented suggestions by Mathieu Desnoyers on CONFIG_KRETPROBES
o Included Andrew Morton's cleanup based on x86-git
o Modified kretprobe_example to act as a arch-agnostic module to
determine routine execution times:
Use 'modprobe kretprobe_example func=' to determine
execution time of func_name in nanoseconds.Signed-off-by: Randy Dunlap
Signed-off-by: Ananth N Mavinakayanahalli
Acked-by: Mathieu Desnoyers
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds