+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:
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;
}
}
// 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;
}
}