This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Eliding side-effect-free expression?


Dave Nomura <dcnltc@us.ibm.com> writes:

> [...]
> so I think it found the cpuinit.stp script in that defines
> qtrace_cpu_init() but I get the following message:
>   Eliding side-effect-free expression identifier 'qtrace_cpu_init' at
> qtrace/qtrace.stp:1502:2
> [...]
> So, my question is, why did STAP decide that this function
> qtrace_cpu_init() is side-effect free?

That would be a bug, unless the embedded-C function contained the
magic string /* pure */.

- FChE


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]