From 5d348713cfca41914dfd127f705ba9deb589c785 Mon Sep 17 00:00:00 2001 From: schendel Date: Thu, 23 Aug 2001 14:43:32 +0000 Subject: [PATCH] removed passing of node weight and internal node indicator when passing sample data from daemon to front-end; cleaned up function names and implementation of daemon's sending the time it started to the front-end; changed so initial actual value is sent in addition to the change in sampling value data, which allows actual value at any point to be reconstructed by integrating across change in sample value and adding initial actual value --- paradyn/h/dyninstRPC.I | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/paradyn/h/dyninstRPC.I b/paradyn/h/dyninstRPC.I index 6d17d16..ae0ab63 100644 --- a/paradyn/h/dyninstRPC.I +++ b/paradyn/h/dyninstRPC.I @@ -39,14 +39,13 @@ * incur to third parties resulting from your use of Paradyn. */ -/* $Id: dyninstRPC.I,v 1.88 2001/06/20 20:33:34 schendel Exp $ +/* $Id: dyninstRPC.I,v 1.89 2001/08/23 14:43:32 schendel Exp $ */ #define MetStyleEventCounter 0 #define MetStyleSampledFunction 1 #include "common/h/Types.h" -#include "pdutil/h/aggregation.h" #include "paradyn/src/met/mdl.h" $remote @@ -55,17 +54,12 @@ struct batch_buffer_entry { double startTimeStamp; double endTimeStamp; double value; - u_int weight; - bool internal_met; - $ignore batch_buffer_entry &operator=(const batch_buffer_entry &src) { mid = src.mid; startTimeStamp = src.startTimeStamp; endTimeStamp = src.endTimeStamp; value = src.value; - weight = src.weight; - internal_met = src.internal_met; return *this; } $ignore @@ -530,11 +524,22 @@ $remote dynRPC { double share); // - // Handler that reports the initial time for which a daemon reports a sample + // Handler that reports the initial time that the daemon started the + // the first process. Called after DYNINSTinit completed. // The earliest (absolute) initial time will become the base time (0) // - $virtual $upcall $async void firstSampleCallback(int program, - double time); + $virtual $upcall $async void setDaemonStartTime(int program, + double startTime); + + // + // Handler that reports the initial actual value the metric with id mid. + // Used to reconstruct the actual value of mid at any point. Done + // by integrating across the change in sample values and then adding + // the initial actual value. + // + $virtual $upcall $async void setInitialActualValueFE(int mid, + double initActualVal); + // // Handler that gets called when a new resource is defined. -- 1.8.3.1