diff options
author | fche <fche> | 2005-09-07 17:09:11 +0000 |
---|---|---|
committer | fche <fche> | 2005-09-07 17:09:11 +0000 |
commit | ae24723e81327eb3b1e9e586f9be0093152aa66a (patch) | |
tree | 66348bd13903ab6f8b565217846c2aca37dff91c /tapsets.cxx | |
parent | 57f26971a680c747bc6ac09a2785dc7038724fa7 (diff) | |
download | systemtap-steved-ae24723e81327eb3b1e9e586f9be0093152aa66a.tar.gz systemtap-steved-ae24723e81327eb3b1e9e586f9be0093152aa66a.tar.xz systemtap-steved-ae24723e81327eb3b1e9e586f9be0093152aa66a.zip |
2005-09-07 Frank Ch. Eigler <fche@redhat.com>
* main.cxx (main): Choose getpid()-based module names.
* tapsets.cxx: Make timer.jiffies' use of task_pt_regs __i386__-only.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r-- | tapsets.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tapsets.cxx b/tapsets.cxx index 4b5edd18..3ab070b0 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -2238,11 +2238,13 @@ timer_derived_probe::emit_probe_entries (translator_output* o, unsigned j) o->newline() << "c->probe_point = probe_point;"; o->newline() << "c->last_error = 0;"; o->newline() << "c->nesting = 0;"; - o->newline() << "if (in_interrupt())"; - o->newline(1) << "c->regs = 0;"; - o->newline(-1) << "else"; + o->newline() << "c->regs = 0;"; + + o->newline() << "#ifdef __i386__"; // task_pt_regs is i386-only + o->newline() << "if (! in_interrupt())"; o->newline(1) << "c->regs = task_pt_regs (current);"; - o->indent(-1); + o->newline(-1) << "#endif"; + o->newline() << "c->actioncount = 0;"; // NB: locals are initialized by probe function itself |