fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
hpt has joined #systemtap
sscox has joined #systemtap
slowfranklin has joined #systemtap
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #systemtap
slowfranklin has quit [Quit: slowfranklin]
orivej has quit [Ping timeout: 268 seconds]
orivej_ has joined #systemtap
gila has joined #systemtap
slowfranklin has joined #systemtap
slowfranklin has quit [Quit: slowfranklin]
hpt has quit [Quit: Lost terminal]
mjw has joined #systemtap
tromey has joined #systemtap
slowfranklin has joined #systemtap
slowfranklin has quit [Quit: slowfranklin]
orivej_ has quit [Ping timeout: 246 seconds]
<ggherdov>
Hello, is there a way to call a kernel function from a systemtap probe? There are a few functions that read static data, and sometimes I want to see their output.
<ggherdov>
Example: pm_qos_request() from kernel/power/qos.c which gives the current QoS value for power management, or acpi_evaluate_object() from drivers/acpi/acpica/nsxfeval.c which reads ACPI tables
<ggherdov>
I could write a module to call them, but can I do that with a quick systemtap script?
<fche>
ggherdov, embedded-c
<fche>
see the /usr/share/systemtap/tapset/linux *.stp files for many examples of doing the same
<fche>
note: the EMBEDDED C section in the [man stap] discusses security/safety implications. These are profound -- embedded-C code runs with zero stap-side protection, so that burden is on your own shoulders.
<ggherdov>
fche: amazing! thanks for the pointer. Yeah sure I understand I can mess things up, that's why I precised that I'm just going to run some "getter" kind of functions
<fche>
see also the tapset/*GUIDE* doc files, it covers constraints a little more