This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Getting environment variables
- From: Mark Wielaard <mjw at redhat dot com>
- To: fchirigati <nano dot seabra at gmail dot com>
- Cc: systemtap at sourceware dot org
- Date: Sun, 4 Nov 2012 16:30:07 +0100
- Subject: Re: Getting environment variables
- References: <1351996522048-211993.post@n7.nabble.com>
On Sat, Nov 03, 2012 at 07:35:22PM -0700, fchirigati wrote:
> How can get the environment variables accessed during a execve call?
> I could not find any information with respect to that.
>
> I would like to know which environment variables are used when executing a
> certain command line.
There is the env_var() function to access individual environment variables.
See http://sourceware.org/systemtap/tapsets/API-env-var.html
You might want to look at the code in the context-envvar.stp tapset to see
how to get at other information.
Cheers,
Mark