OSDN Git Service

2005-08-23 Dave Brolley <brolley@redhat.com>
authorbrolley <brolley>
Tue, 23 Aug 2005 21:08:35 +0000 (21:08 +0000)
committerbrolley <brolley>
Tue, 23 Aug 2005 21:08:35 +0000 (21:08 +0000)
        * gprof.cxx (configure): Don't reset the N-regular attribute of the
        scheduler. Call accumulate when configuring for cycles=N.

sid/component/profiling/ChangeLog
sid/component/profiling/gprof.cxx

index 8012b84..3a23007 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-23  Dave Brolley  <brolley@redhat.com>
+
+       * gprof.cxx (configure): Don't reset the N-regular attribute of the
+       scheduler. Call accumulate when configuring for cycles=N.
+
 2005-08-19  Dave Brolley  <brolley@redhat.com>
 
        * Contribute the following changes:
index 0c85370..e6e46d2 100644 (file)
@@ -514,8 +514,10 @@ namespace profiling_components
                    if (s == component::ok)
                      {
                        sim_sched->connect_pin (sim_sched_event + "-event", & accumulate_pin);
-                       sim_sched->set_attribute_value (sim_sched_event + "-regular", "true");
                        sim_sched->set_attribute_value (sim_sched_event + "-time", make_attribute (cycles));
+                       // Take a sample now to make up for the one which just got cancelled when
+                       // N-time was set.
+                       accumulate (1);
                        return;
                      }
                  }
@@ -523,10 +525,7 @@ namespace profiling_components
            // No gprof config or cycles was not specified. We will not be triggered by the
            // target scheduler.
            if (sim_sched)
-             {
-               sim_sched->disconnect_pin (sim_sched_event + "-event", & accumulate_pin);
-               sim_sched->set_attribute_value (sim_sched_event + "-regular", "false");
-             }
+             sim_sched->disconnect_pin (sim_sched_event + "-event", & accumulate_pin);
            return;
          }
       }