This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to track the functions in self-written module using SystemTap?


Hi David,

I do "insmod kex.ko" and "rmmod kex" repeatedly, but It seems the
related probes can't be triggered:

# stap -l 'module("/root/kernel/105.ops/kex.ko").function("*")'
module("/root/kernel/105.ops/kex.ko").function("_open@/root/kernel/105.ops/kex.c:21")
module("/root/kernel/105.ops/kex.ko").function("_read@/root/kernel/105.ops/kex.c:45")
module("/root/kernel/105.ops/kex.ko").function("_release@/root/kernel/105.ops/kex.c:33")
module("/root/kernel/105.ops/kex.ko").function("copy_to_user@/usr/src/kernels/3.10.0-123.el7.x86_64.debug/arch/x86/include/asm/uaccess_64.h:72")
module("/root/kernel/105.ops/kex.ko").function("kex_cleanup@/root/kernel/105.ops/kex.c:90")
module("/root/kernel/105.ops/kex.ko").function("kex_init@/root/kernel/105.ops/kex.c:61")
# stap -e 'probe
module("/root/kernel/105.ops/kex.ko").function("kex_init"),
module("/root/kernel/105.ops/kex.ko").function("kex_cleanup")
{print_backtrace()}'

Could you help to check it? Thanks in advance!
Best Regards
Nan Xiao


On Thu, Nov 19, 2015 at 10:57 PM, David Smith <dsmith@redhat.com> wrote:
> On 11/19/2015 02:33 AM, Nan Xiao wrote:
>> Hi David,
>>
>> Another interesting thing: if there is a "-" in path, the SystemTap
>> also fail to parse:
>
> That's odd. I've added that information to the bug.
>
> --
> David Smith
> dsmith@redhat.com
> Red Hat
> http://www.redhat.com
> 256.217.0141 (direct)
> 256.837.0057 (fax)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]