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]

[Bug runtime/17362] no script-level local variables available in F20's kernel.function("do_execve")


https://sourceware.org/bugzilla/show_bug.cgi?id=17362

--- Comment #3 from Martin Cermak <mcermak at redhat dot com> ---
Very similar issue affecting at_var.exp. Old kernel:

=====
# rpm -q systemtap; uname -r
systemtap-2.7-1.mcermak.e454243.fc20.x86_64
3.13.9-200.fc20.x86_64
# cat systemtap.base/at_var.c
#include <sys/time.h>

struct foo
{
  int bar;
};

static struct foo foo;

void sub(const char *file)
{
  struct timeval times[2];
  times[0].tv_sec = 1;
  times[0].tv_usec = 2;
  times[1].tv_sec = 3;
  times[1].tv_usec = 4;
  utimes (file, times);
  foo.bar -= 2; /* 40 */
}

int
main (int argc, char **argv)
{
  foo.bar = 41 + argc; /* 42 */
  sub(argv[0]);
  return 0;
}
# gcc -g systemtap.base/at_var.c
# stap -e 'probe kernel.function("SYSC_utimes") {println($utimes$$,
$utimes[1]$$, @var("utimes")$$, @var("utimes")[1]$$)}' -c ./a.out 
{.tv_sec=1, .tv_usec=2}{.tv_sec=3, .tv_usec=4}{.tv_sec=1,
.tv_usec=2}{.tv_sec=3, .tv_usec=4}
#
=====

new kernel:

=====
# rpm -q systemtap; uname -r
systemtap-2.7-1.mcermak.e454243.fc20.x86_64
3.15.10-201.fc20.x86_64
# gcc -g systemtap.base/at_var.c
# stap -e 'probe kernel.function("SYSC_utimes") {println($utimes$$,
$utimes[1]$$, @var("utimes")$$, @var("utimes")[1]$$)}' -c ./a.out
{.tv_sec=?, .tv_usec=?}{.tv_sec=?, .tv_usec=?}{.tv_sec=?,
.tv_usec=?}{.tv_sec=?, .tv_usec=?}
#
=====

-- 
You are receiving this mail because:
You are the assignee for the bug.


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