fche changed the topic of #systemtap to: http://sourceware.org/systemtap; email systemtap@sourceware.org if answers here not timely, conversations may be logged
gromero has quit [Quit: Leaving]
gromero has joined #systemtap
orivej has quit [Ping timeout: 245 seconds]
hpt has joined #systemtap
hpt has quit [Ping timeout: 245 seconds]
hpt has joined #systemtap
hpt has quit [Ping timeout: 258 seconds]
hpt has joined #systemtap
hpt has quit [Ping timeout: 246 seconds]
hpt has joined #systemtap
hpt has quit [Ping timeout: 268 seconds]
hpt has joined #systemtap
_whitelogger has joined #systemtap
yogananth has joined #systemtap
hpt has quit [Ping timeout: 245 seconds]
hpt has joined #systemtap
hpt has quit [Ping timeout: 268 seconds]
hpt has joined #systemtap
lindi- has quit [Ping timeout: 250 seconds]
lindi- has joined #systemtap
orivej has joined #systemtap
higgins has quit [Quit: Leaving]
higgins has joined #systemtap
orivej has quit [Ping timeout: 248 seconds]
hpt has quit [Ping timeout: 258 seconds]
gromero has quit [Ping timeout: 252 seconds]
G_SabinoMullane has quit [Remote host closed the connection]
<rmilkowski>
semantic error: 'struct {...}' (include/linux/uidgid.h:22) is being accessed instead of a member such as '->val': operator '->' at ./put_rpccred.stp:19:33
<rmilkowski>
printing other fields work fine (for example: printf("cr_flags: %lu ", $cred->cr_flags)
<rmilkowski>
any idea why it fails for $cred->cr_uid?
<fche>
rmilkowski, cr_uid must be a struct
<fche>
the error message advises trying $cred->cr_uid->val
<rmilkowski>
ahh, as . is not allowed there is ->a->val workwround, ok got it
<rmilkowski>
thank you!
<rmilkowski>
although now on older linux (centos 6.9) I get:
<rmilkowski>
semantic error: invalid access '->val' vs. unsigned int: operator '->' at /tmp/put_rpccred.stp:19:41
<rmilkowski>
while it works on centos 7.5
<rmilkowski>
if I remove ->val then it works there... any way to get it working on both?
orivej has quit [Ping timeout: 245 seconds]
<fche>
yeah, different versions of linux have unfortunately changed the declaration
<fche>
you could do somethign like @defined($cred->cr_uid->val) ? $cred->cr_uid->val : $cred->cr_uid