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 server/20557] It seems like that switching output file doesn't work.


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

--- Comment #18 from David Smith <dsmith at redhat dot com> ---
After looking at the strace files you attached, I'm quite confused:

====
# grep f.out strace.out.*
strace.out.29045:execve("/usr/bin/staprun", ["/usr/bin/staprun", "-o", "f.out",
"-R", "-S", "1,3", "renamemod.ko"], [/* 20 vars */]) = 0
strace.out.29045:execve("/usr/lib/systemtap/stapio",
["/usr/lib/systemtap/stapio", "-o", "f.out", "-R", "-S", "1,3", "ren_29045",
"-F3"], [/* 20 vars */]) = 0
strace.out.29045:open("/root/systemtap/examples/f.out.0",
O_WRONLY|O_CREAT|O_TRUNC, 0666) = 6
strace.out.29048:open("/root/systemtap/examples/f.out.1",
O_WRONLY|O_CREAT|O_TRUNC, 0666) = 6
strace.out.29048:open("/root/systemtap/examples/f.out.2",
O_WRONLY|O_CREAT|O_TRUNC, 0666) = 6
strace.out.29048:unlink("/root/systemtap/examples/f.out.0") = 0
strace.out.29048:open("/root/systemtap/examples/f.out.3",
O_WRONLY|O_CREAT|O_TRUNC, 0666) = 6
strace.out.29048:unlink("/root/systemtap/examples/f.out.1") = 0
strace.out.29048:open("/root/systemtap/examples/f.out.4",
O_WRONLY|O_CREAT|O_TRUNC, 0666) = 6
strace.out.29048:unlink("/root/systemtap/examples/f.out.2") = 0
strace.out.29048:open("/root/systemtap/examples/f.out.5",
O_WRONLY|O_CREAT|O_TRUNC, 0666) = 6
====

That strace output clearly shows systemtap creating f.out.0, f.out.1, f.out.2,
unlinking f.out.0, creating f.out.3, unlinking f.out.1, creating f.out.4,
unlinking f.out.2, and creating f.out.5. All the open() and unlink() syscalls
succeed.

At this point I'm not sure what is going on with your system. Perhaps you
should try running systemtap again in an empty directory?

-- 
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]