diff options
Diffstat (limited to 'tools/gator/daemon/SessionData.h')
-rw-r--r-- | tools/gator/daemon/SessionData.h | 44 |
1 files changed, 30 insertions, 14 deletions
diff --git a/tools/gator/daemon/SessionData.h b/tools/gator/daemon/SessionData.h index 835082d86c4b..ed282af4a869 100644 --- a/tools/gator/daemon/SessionData.h +++ b/tools/gator/daemon/SessionData.h @@ -11,17 +11,21 @@ #include <stdint.h> +#include "AnnotateListener.h" #include "Config.h" #include "Counter.h" -#include "FSDriver.h" -#include "Hwmon.h" +#include "FtraceDriver.h" +#include "KMod.h" #include "MaliVideoDriver.h" #include "PerfDriver.h" -#define PROTOCOL_VERSION 19 -#define PROTOCOL_DEV 1000 // Differentiates development versions (timestamp) from release versions +#define PROTOCOL_VERSION 20 +// Differentiates development versions (timestamp) from release versions +#define PROTOCOL_DEV 1000 -#define NS_PER_S ((uint64_t)1000000000) +#define NS_PER_S 1000000000LL +#define NS_PER_MS 1000000LL +#define NS_PER_US 1000LL struct ImageLinkList { char* path; @@ -36,30 +40,40 @@ public: ~SessionData(); void initialize(); void parseSessionXML(char* xmlString); + void readModel(); void readCpuInfo(); - Hwmon hwmon; - FSDriver fsDriver; + PolledDriver *usDrivers[6]; + KMod kmod; PerfDriver perf; MaliVideoDriver maliVideo; + FtraceDriver ftraceDriver; + AnnotateListener annotateListener; char mCoreName[MAX_STRING_LEN]; struct ImageLinkList *mImages; - char* mConfigurationXMLPath; - char* mSessionXMLPath; - char* mEventsXMLPath; - char* mTargetPath; - char* mAPCDir; + char *mConfigurationXMLPath; + char *mSessionXMLPath; + char *mEventsXMLPath; + char *mTargetPath; + char *mAPCDir; + char *mCaptureWorkingDir; + char *mCaptureCommand; + char *mCaptureUser; bool mWaitingOnCommand; bool mSessionIsActive; bool mLocalCapture; - bool mOneShot; // halt processing of the driver data until profiling is complete or the buffer is filled + // halt processing of the driver data until profiling is complete or the buffer is filled + bool mOneShot; bool mIsEBS; bool mSentSummary; + bool mAllowCommands; + int64_t mMonotonicStarted; int mBacktraceDepth; - int mTotalBufferSize; // number of MB to use for the entire collection buffer + // number of MB to use for the entire collection buffer + int mTotalBufferSize; int mSampleRate; int64_t mLiveRate; int mDuration; @@ -82,5 +96,7 @@ extern SessionData* gSessionData; uint64_t getTime(); int getEventKey(); +int pipe_cloexec(int pipefd[2]); +FILE *fopen_cloexec(const char *path, const char *mode); #endif // SESSION_DATA_H |