fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
wmealing has joined #systemtap
<wmealing>
fche: you in bro ?
<wmealing>
6 hours idle.. must be snoozing
<wmealing>
dont blame him
hpt has joined #systemtap
<fche>
hey wmealing
<fche>
what's up?
<wmealing>
hey man
<wmealing>
can i hit you up on internals
<fche>
sure, briefly
<wmealing>
ok
<fche>
(sunday 9pm her :)
<wmealing>
yeah, i'll just give you a quick overview
wmealing has quit [Quit: Leaving.]
wakatana2 has joined #systemtap
wakatana2 has quit [Max SendQ exceeded]
ananth has joined #systemtap
ego has joined #systemtap
naveen has joined #systemtap
wakatana2 has joined #systemtap
wakatana2 has quit [Max SendQ exceeded]
wakatana2 has joined #systemtap
wakatana2 has quit [Read error: Connection reset by peer]
srikar_away is now known as srikar
nkambo has quit [Ping timeout: 256 seconds]
wmealing has joined #systemtap
nkambo has joined #systemtap
srikar is now known as srikar_away
srikar_away is now known as srikar
nkambo has quit [Ping timeout: 245 seconds]
josch_ has joined #systemtap
<josch_>
hi, i have a simple probe like this: syscall.write {print(argstr);print("\n")}
<josch_>
i would expect that this would give me part of the buffer that was written with octal encoding where it is not ascii
<josch_>
but when it's supposed to print a NULL or \000 i get this printed:
<josch_>
1, "", 2
<josch_>
instead i expected this:
<josch_>
1, "\000\n", 2
<josch_>
bug or feature?
nkambo has joined #systemtap
naveen has quit [Ping timeout: 240 seconds]
naveen has joined #systemtap
wmealing has quit [Quit: Leaving.]
<josch_>
user_string_n seems to suffer from the same problem: if the buffer starts with a null byte it will return an empty string
naveen has quit [Ping timeout: 264 seconds]
<josch_>
aha, user_string_n says it handles null terminated C strings
naveen has joined #systemtap
<josch_>
then the problem is, that user_string_n2_quoted in syscall.write tapset is using user_string_n
<josch_>
is there a function which can also quote zero bytes for me?
nkambo has quit [Quit: Good day !]
nkambo has joined #systemtap
wmealing has joined #systemtap
hpt has quit [Ping timeout: 256 seconds]
mjw has joined #systemtap
naveen1 has joined #systemtap
naveen has quit [Ping timeout: 272 seconds]
nkambo has quit [Read error: No route to host]
scox has quit [Ping timeout: 272 seconds]
naveen1 has quit [Quit: Leaving.]
nkambo has joined #systemtap
ananth has quit [Quit: Leaving]
wcohen has quit [Ping timeout: 276 seconds]
<fche>
josch_, user_string_quoted may be what you're after
<fche>
or its kind
<fche>
and there is also printf("%*M", length, byte_addr) for a hexdump
<fche>
er, you found _quoted already
<fche>
hm, I think we tweaked this part of the tapset recently; pls compare to git systemtap
<fche>
I think we've been moving to the _quoted forms of the various strings in argstr, and might be missing some
<fche>
(patches to fix them would be great!)
ego has quit [Ping timeout: 276 seconds]
scox has joined #systemtap
ego has joined #systemtap
srikar is now known as srikar_away
<josch_>
fche: unfortunately I don't have time right now to build systemtap myself, so I recorded it as bug #19489 in your tracker
<fche>
thanks
<fche>
should be easy to fix, sorry for your inconvenience