diff options
author | Russell King <rmk@arm.linux.org.uk> | 2016-01-18 14:30:42 +0000 |
---|---|---|
committer | Russell King <rmk@arm.linux.org.uk> | 2016-01-18 14:30:42 +0000 |
commit | d782ea474e5222d3ee1bee008c68a999a565be96 (patch) | |
tree | c7269a4acaf5ed5cdb813e3ef90f0cb4c172115f /udev |
Initial commit
Add sources for etna-gpu-tools
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
Diffstat (limited to 'udev')
-rw-r--r-- | udev/99-local-devcoredump.rules.in | 1 | ||||
-rwxr-xr-x | udev/devcoredump.in | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/udev/99-local-devcoredump.rules.in b/udev/99-local-devcoredump.rules.in new file mode 100644 index 0000000..47e3690 --- /dev/null +++ b/udev/99-local-devcoredump.rules.in @@ -0,0 +1 @@ +ACTION=="add", SUBSYSTEM=="devcoredump", RUN+="@sbindir@/devcoredump /sys/%p" diff --git a/udev/devcoredump.in b/udev/devcoredump.in new file mode 100755 index 0000000..70a1573 --- /dev/null +++ b/udev/devcoredump.in @@ -0,0 +1,14 @@ +#!/bin/sh -e +D=`date '+%Y%m%d%H%M%S'` +CRASHDIR="@crashdir@" +UNPACKDIR="@unpackdir@" + +CRASH_BIN="$CRASHDIR/etnaviv-$D.bin" +CRASH_DIR="$UNPACKDIR/etnaviv-$D" + +# Copy the crash dump +cat "$1/data" > "$CRASH_BIN" + +# Unpack it into @unpackdir@ +mkdir "$CRASH_DIR" +exec "@sbindir@/viv-unpack" "$CRASH_BIN" "$CRASH_DIR" > "$CRASH_DIR/log.txt" |