systemtap support arm?
Torsten Polle
Torsten.Polle@gmx.de
Sat Jul 28 18:43:00 GMT 2012
Hi Jovi,
Jovi Zhang writes:
> Hi,
> This is my first contact systemtap@sourceware.org, I have a question
> about uprobe support in systemtap of ARM architecture.
> I got this from NEWS:
> - arm now have a uprobes port which enables user probes. This still
> requires some kernel patches (user_regsets and tracehook support for arm).
> But there don't have arm uprobe porting in Linux kernel mainline right
> now(only x86), so where is this arm uprobes kernel part? Thanks.
> .jovi
I've finished a first version of uprobes for ARM. It's more like a proof
of concept and shows that SystemTap works also for ARM. I tested the
patches on an i.MX 6 based board under 3.4. The patches basically differ
only in syscalls.h. The emulator code of kprobes and uprobes is nearly
identical. I wonder whether it's possible to merge both into one
implementation in the future.
You need patch 137e82c544b2e831be6908b1aa7385af1d85d830 to compile your
SystemTap script.
I also needed the option -DSTAPCONF_ASM_SYSCALL_H to be added to the
invokation of stap. Has anybody an idea why the automatic detection
fails?
Kind Regards,
Torsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-uprobes-core-Pass-address-to-arch_uprobe_analyze_ins.patch
Type: text/x-patch
Size: 2631 bytes
Desc: 0001-uprobes-core-Pass-address-to-arch_uprobe_analyze_ins.patch
URL: <http://sourceware.org/pipermail/systemtap/attachments/20120728/c1389fb0/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-uprobes-core-Add-an-architecture-dependent-initialis.patch
Type: text/x-patch
Size: 2228 bytes
Desc: 0002-uprobes-core-Add-an-architecture-dependent-initialis.patch
URL: <http://sourceware.org/pipermail/systemtap/attachments/20120728/c1389fb0/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-uprobes-arm-Add-the-ability-to-install-and-remove-up.patch
Type: text/x-patch
Size: 75017 bytes
Desc: 0003-uprobes-arm-Add-the-ability-to-install-and-remove-up.patch
URL: <http://sourceware.org/pipermail/systemtap/attachments/20120728/c1389fb0/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-ARM-ftrace-Implement-raw-syscall-tracepoints-on-ARM.patch
Type: text/x-patch
Size: 4261 bytes
Desc: 0004-ARM-ftrace-Implement-raw-syscall-tracepoints-on-ARM.patch
URL: <http://sourceware.org/pipermail/systemtap/attachments/20120728/c1389fb0/attachment-0003.bin>
More information about the Systemtap
mailing list