fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
khaled has joined #systemtap
sscox has joined #systemtap
hpt has joined #systemtap
Amy2 has quit [Ping timeout: 240 seconds]
Amy2 has joined #systemtap
_whitelogger has joined #systemtap
orivej has joined #systemtap
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #systemtap
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #systemtap
Amy2 has quit [Ping timeout: 256 seconds]
Amy2 has joined #systemtap
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #systemtap
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
<ema>
problem: I've got a unix timestamp represented as a double in a C program, and I'd like to print it with a systemtap userspace probe
<ema>
any way to do that?
orivej has quit [Ping timeout: 265 seconds]
orivej has joined #systemtap
orivej_ has joined #systemtap
orivej has quit [Ping timeout: 272 seconds]
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
orivej has quit [Ping timeout: 265 seconds]
orivej has joined #systemtap
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #systemtap
hpt has quit [Ping timeout: 240 seconds]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #systemtap
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #systemtap
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #systemtap
<fche>
hi ema
mjw has joined #systemtap
<fche>
hm I think at the moment you'd be stuck with doing some bitwise operations to extract the mantissa part
<fche>
to get at the integer seconds part
<fche>
(shouldn't be more than a shift and a mask)
<fche>
and then you can print it via ctime()
orivej has quit [Ping timeout: 264 seconds]
orivej_ has joined #systemtap
orivej_ has quit [Ping timeout: 256 seconds]
orivej has joined #systemtap
orivej_ has joined #systemtap
tromey has joined #systemtap
amerey has joined #systemtap
<lindi->
I'm sure you can write a floating point library in the systemtap language :)
irker760 has joined #systemtap
<irker760>
systemtap: smakarov systemtap.git:master * release-4.2-80-g173d3fdb2 / testsuite/systemtap.base/beginenderror.exp translate.cxx: PR10280 fix prev commit: UTS_RELEASE is vacuous, UTS_VERSION is not
<fche>
lindi-, yes indeed - there is a long standing PR for that
<lindi->
oh, cool
<fche>
but I'd be happy to start really small, like ... extract ieee844 parts
<fche>
(noting we can't do actual FP arithmetic in kernel space)
<fche>
make that ieee754 :)
<lindi->
just make your stap script output python3 and then pipe that to a python3 interpreter in userland
<lindi->
maybe json could work too
<lindi->
if it is just for printing then it doesn't need to be done in the kernel at all
<fche>
doesn't help if you want to operate on the values in situ