fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
pwithnall has quit [Quit: pwithnall]
White_Light has quit [Quit: Leaving]
scox has joined #systemtap
White_Light has joined #systemtap
irker406 has quit [Quit: transmission timeout]
ravi_ has joined #systemtap
hkshaw has joined #systemtap
nkambo has joined #systemtap
Humble has quit [Ping timeout: 255 seconds]
Humble has joined #systemtap
groleo has joined #systemtap
Humble has quit [Ping timeout: 240 seconds]
gila has joined #systemtap
pwithnall has joined #systemtap
mjw has joined #systemtap
Humble has joined #systemtap
gila has quit [Quit: Textual IRC Client: www.textualapp.com]
hkshaw has quit [Quit: Leaving.]
bendlas has quit [Remote host closed the connection]
bendlas has joined #systemtap
ravi_ has quit [Quit: Leaving]
hkshaw has joined #systemtap
wcohen has quit [Remote host closed the connection]
tromey has joined #systemtap
groleo has quit [Ping timeout: 264 seconds]
nkambo has quit [Ping timeout: 248 seconds]
drsmith has joined #systemtap
wcohen has joined #systemtap
wcohen has quit [Ping timeout: 252 seconds]
wcohen has joined #systemtap
bsingh has joined #systemtap
bsingh has quit [Client Quit]
bsingh has joined #systemtap
bsingh has quit [Client Quit]
nkambo has joined #systemtap
hkshaw has quit [Ping timeout: 256 seconds]
brolley has joined #systemtap
pwithnall has quit [Ping timeout: 255 seconds]
pwithnall has joined #systemtap
Humble has quit [Ping timeout: 256 seconds]
tonyj has joined #systemtap
Humble has joined #systemtap
pwithnall has quit [Quit: pwithnall]
mjw has quit [Quit: Leaving]
<jistone> modem, try @cast(obj, "drm_gem_object", "kernel<drm/drm_gem.h>")
<jistone> the default is to treat them as userspace headers
<jistone> so the @cast probably didn't find the header at all
<jistone> (if that's the case, the error message should be improved)
<modem> semantic error: type definition 'drm_gem_object' not found in 'kernel<drm/drm_gem.h>': operator '@cast' at a.stp:32:10
<modem> not working :-( thanks jistone
<jistone> hmm
<jistone> Running gcc -shared -g -fno-eliminate-unused-debug-types -xc /dev/null -o /tmp/stapvZ4FFT/typequery_umod_1.so -include drm/drm_gem.h
<jistone> Spawn waitpid result (0x100): 1
<jistone> WARNING: gcc exited with status: 1
<jistone> that header probably needs some prerequisite #include
<jistone> oh nevermind, that's the userspace attempt
<jistone> In file included from <command-line>:0:0:
<jistone> ^~~~~~~~
<jistone> struct kref refcount;
<jistone> ./include/drm/drm_gem.h:55:14: error: field ‘refcount’ has incomplete type
<jistone> and many more errors
<jistone> so yeah, still probably needs a prerequisite #include or two
<jistone> modem, the manpage shows you can write a sequence like "kernel<linux/sched.h><linux/fs_struct.h>"
<jistone> so you'll need to figure out what drm_gem.h expects
nkambo has quit [Read error: Connection reset by peer]
drsmith has left #systemtap [#systemtap]
<modem> i might aswell extract the structure and include my own .h
scox has quit [Ping timeout: 255 seconds]
wcohen has quit [Ping timeout: 256 seconds]
<jistone> modem, or if you have debuginfo, just pull it from drm.ko
<jistone> @cast(obj, "drm_gem_object", "drm")
<jistone> when using headers, stap just compiles it to a debug object anyway
<jistone> (i.e. it's not hiding some c/c++ compiler inside)
pwithnall_ has joined #systemtap
pwithnall_ has quit [Quit: pwithnall_]
tromey has quit [Quit: ERC (IRC client for Emacs 25.1.91.3)]
jhg_ has joined #systemtap
brolley has left #systemtap [#systemtap]
wcohen has joined #systemtap
pwithnall_ has joined #systemtap