]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
dtrace: additional action support (and bug fixes)
authorKris Van Hees <kris.van.hees@oracle.com>
Sun, 9 Sep 2012 21:34:48 +0000 (17:34 -0400)
committerNick Alcock <nick.alcock@oracle.com>
Mon, 29 Jun 2015 21:40:33 +0000 (22:40 +0100)
Removed ASSIST_* definitions because they are no longer necessary (though they
may come back in the future).

Changed the behaviour of DTrace in interrupt context to base it on in_irq()
rather than in_interrupt().

On Linux it is always safe to dereference current, so there is no need to do
special casing on various process-based DIF functions.  There is no need to
fake values coming from the 0-pid process.

Added curcpu variables.

Added d_path() function.  This takes a struct path and turns it into a string.

Renumbered the register IDs to match the xlator support at userspace, and to
also match the on-stack order of registers.

Have dtrace_getreg() operate on the task rather than just a set of registers,
because (in 64-bit mode) segment registers have their value stored in fields
in the process-specific task info.

Implemented the raise() action.

Changed the deadman interal to 10s, and timeout/user to 120s.

Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
include/linux/dtrace_os.h

index 4076a7bdde835fdcd6328688825e6444b0fad6ef..3b2dcb28660484946bfa8c00063606f98f739cca 100644 (file)
@@ -5,11 +5,6 @@
 
 #include <asm/unistd.h>
 
-#define ASSIST_PR_PSARGS       0
-#define ASSIST_PR_ARGC         1
-#define ASSIST_PR_ARGV         2
-#define ASSIST_PR_ENVP         3
-
 #define PR_PSARGS_SZ           80
 
 typedef struct dtrace_psinfo {