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: How to get correct filename in probe.execve


Hi -

> I am trying to ensure that I keep an integer in the EXEC_FILENAME.
> If I do EXEC_FILENAME=filename
> 
> SystemTap assumes a (zero terminated) string. After that I want to do
> something like
> 
> user_string_quoted(EXEC_FILENAME[pid(), tid()])

Aha - you want to save the pointer only and dereference it later?  OK,
as long as you do so very soon afterwards (in another probe, hit
before the target task gets a chance to resume or context-switch).

- FChE


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