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 quit [Quit: Konversation terminated!]
lijunlong has quit [Read error: Connection reset by peer]
lijunlong has joined #systemtap
derek088_ has joined #systemtap
derek0883 has quit [Ping timeout: 272 seconds]
hpt has joined #systemtap
derek088_ has quit [Remote host closed the connection]
irker318 has quit [Quit: transmission timeout]
derek0883 has joined #systemtap
derek088_ has joined #systemtap
derek0883 has quit [Ping timeout: 260 seconds]
derek088_ has quit [Ping timeout: 256 seconds]
derek0883 has joined #systemtap
orivej has quit [Ping timeout: 260 seconds]
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
derek0883 has quit [Ping timeout: 264 seconds]
derek0883 has joined #systemtap
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
orivej has joined #systemtap
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
derek0883 has quit [Remote host closed the connection]
khaled has joined #systemtap
mjw has joined #systemtap
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #systemtap
hpt has quit [Ping timeout: 265 seconds]
derek0883 has joined #systemtap
derek0883 has quit [Read error: Connection reset by peer]
<fche>
I would bet that is exactly the intent of them
<fche>
if we have tasklets do we still need work gadgets too?
<kerneltoast>
yeah
<kerneltoast>
well
<kerneltoast>
i thought about that
<kerneltoast>
i dunno if we can do super heavy work inside a tasklet without causing stalls elsewhere
tromey has quit [Quit: ERC (IRC client for Emacs 27.1.50)]
<kerneltoast>
the print buffers are bigly so i need to check
<fche>
aha, so the tasklet just schedules the work
<fche>
what a funny indirect way of doing it
<fche>
(are there precedents for doing this elsewhere in the kernel)?
<kerneltoast>
lemme check, i've never used a tasklet before
<kerneltoast>
softirq stuff is mainly for networking braindamage
<kerneltoast>
of which i have no experience :)
<fche>
next q: did you have a chance to test this on rhel6 2.6.32 era kernels?
<kerneltoast>
not yet but i checked the api on 2.6.32
<kerneltoast>
the api hasn't changed
<kerneltoast>
so it has a chance of working
<fche>
ok, yeah plausible overall
<fche>
Ship It To The Testsuites
derek0883 has joined #systemtap
<kerneltoast>
fche, it seems fine to punt this on the tasklet
<kerneltoast>
fche, okay i have another problem
<kerneltoast>
_stp_stack_kernel_sprint and _stp_stack_user_sprint depend on instantly flushing the print buffer
<kerneltoast>
which would be a valid assumption if they were never called with IRQs disabled, but i see no such guarantee
<kerneltoast>
i guess i can just convert them to use a normal print?
<fche>
sprint is there to return the string , not to print it
<fche>
but that doesn't mean they have to go through the whole buffering game junk
<fche>
there is a string allocated in the stap context object where they could print their thing directly via vscnprintf or whatever
<fche>
they just don't
<kerneltoast>
why do they clear the print buffer though
<kerneltoast>
log->len = 0;
<fche>
not sure
<fche>
maybe to pretend it was empty to start with, so when they print incremental line content etc., it doesn't have some other prior data there to start with
<fche>
it all seems like an unfortunate shortcut
<kerneltoast>
can we nuke the shortcut?
<fche>
the longer way would require passing that output-buffer gadget along throughout the process
<fche>
so that's painful tooo
<fche>
a little bit
<kerneltoast>
oh wait i see what it's doing
<kerneltoast>
ok i can fixor it
<irker157>
systemtap: fche systemtap.git:master * release-4.4-10-g532eb9a15 / buildrun.cxx runtime/linux/autoconf-lockdown-kernel.c runtime/transport/transport.c session.cxx: PR26665 detect rhel8 (4.18) era kernel_is_locked_down() as procfs trigger
orivej has joined #systemtap
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
derek0883 has quit [Remote host closed the connection]
derek0883 has joined #systemtap
derek0883 has quit [Remote host closed the connection]