From 0133daad6426cc8b50000d79c27de8ebffe34fc9 Mon Sep 17 00:00:00 2001 From: Drahflow Date: Sun, 11 Aug 2013 17:18:09 +0200 Subject: A minimal performance tracing tool --- elymas/ptracePerf/perf.ey | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 elymas/ptracePerf/perf.ey diff --git a/elymas/ptracePerf/perf.ey b/elymas/ptracePerf/perf.ey new file mode 100644 index 0000000..a1c6078 --- /dev/null +++ b/elymas/ptracePerf/perf.ey @@ -0,0 +1,13 @@ +22948 ==:pid + +{ 1 } { + pid sys .linux .ptrace .attach -- + pid 0 sys .linux .waitpid -- + pid sys .linux .ptrace .peekUser .rip -- ==rip + # pid rip sys .linux .ptrace .peek -- ==instr + pid sys .linux .ptrace .detach -- + + rip dump +} loop + +# vim: syn=elymas -- cgit v1.2.3