]> sourceware.org Git - systemtap.git/commitdiff
2005-09-07 Frank Ch. Eigler <fche@redhat.com>
authorfche <fche>
Wed, 7 Sep 2005 17:09:11 +0000 (17:09 +0000)
committerfche <fche>
Wed, 7 Sep 2005 17:09:11 +0000 (17:09 +0000)
* main.cxx (main): Choose getpid()-based module names.
* tapsets.cxx: Make timer.jiffies' use of task_pt_regs __i386__-only.

ChangeLog
main.cxx
tapsets.cxx

index dacb581a7c8ba1fe45c8a43b57e73a75fe6aaaa0..1c344a2aed6a622c603f9c477bd20e91ad62f76e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
 2005-09-07  Frank Ch. Eigler  <fche@redhat.com>
 
        * stap.1.in: Oops, && and || do short-circuit.
index c66636550150f6969e7729d2e46d232e252e891f..dcdf67f501a1aa24b7af3b04e76cbf0f66862e19 100644 (file)
--- a/main.cxx
+++ b/main.cxx
@@ -116,7 +116,7 @@ main (int argc, char * const argv [])
   s.test_mode = false;
   s.guru_mode = false;
   s.last_pass = 5;
-  s.module_name = "stap_" + stringify(getuid()) + "_" + stringify(time(0));
+  s.module_name = "stap_" + stringify(getpid());
   s.keep_tmpdir = false;
   s.cmd = "";
   s.target_pid = 0;
index 4b5edd188d39b0c23e159cd7a8e7f244e36b07a5..3ab070b0d110f58ae0c45ef7073126b9d2a15b72 100644 (file)
@@ -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
This page took 0.053627 seconds and 5 git commands to generate.