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: Can SystemTap change system call's arguments?


Hi -

> Hi, I'm a newbie to systemtap. I just want to ask a simple
> question. Can I use systemtap to change the arguments of a system
> call before entering it? Thanks.

Sometimes.  If you invoke systemtap in guru mode (-g), then dwarf-based
probes such as syscall.* or kernel.function("...") or process(*).*
will have assignable $variables, including function parameters.

Of course, changing arguments like this can be very dangerous.  OTOH
some security bugs can be temporarily patched this way.

- FChE


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