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]

[Bug runtime/17413] New: missing timer_create syscall in 32-on-64 mode


https://sourceware.org/bugzilla/show_bug.cgi?id=17413

            Bug ID: 17413
           Summary: missing timer_create syscall in 32-on-64 mode
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
          Assignee: systemtap at sourceware dot org
          Reporter: mcermak at redhat dot com

Systemtap is missing timer_create syscall in 32-on-64 mode:

 7.0 S x86_64 # cat test.c
#include <sys/time.h>
#include <string.h>
#include <signal.h>
#include <time.h>
#include <sys/syscall.h>
#include <stdio.h>

int main()
{
    timer_t tid=0;
    syscall(__NR_timer_create, CLOCK_REALTIME, -1, &tid);
    return 0;
}

 7.0 S x86_64 # gcc -m32  -g test.c 
 7.0 S x86_64 # strace ./a.out |& grep timer
timer_create(CLOCK_REALTIME, {...}, 0xfffbb4fc) = -1 EFAULT (Bad address)
 7.0 S x86_64 # stap -e 'probe syscall.* { println(name) } ' -c ./a.out |& grep
timer
 7.0 S x86_64 # 
 7.0 S x86_64 # gcc -m64  -g test.c
 7.0 S x86_64 # strace ./a.out |& grep timer
timer_create(CLOCK_REALTIME, {...}, 0x7fff24a03ab8) = -1 EFAULT (Bad address)
 7.0 S x86_64 # stap -e 'probe syscall.* { println(name) } ' -c ./a.out |& grep
timer
timer_create
 7.0 S x86_64 #

-- 
You are receiving this mail because:
You are the assignee for the bug.


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