2 * Copyright (C) ARM Limited 2010-2014. All rights reserved.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
10 #define SESSION_DATA_H
17 #include "PerfDriver.h"
19 #define PROTOCOL_VERSION 18
20 #define PROTOCOL_DEV 1000 // Differentiates development versions (timestamp) from release versions
22 struct ImageLinkList {
24 struct ImageLinkList *next;
29 static const size_t MAX_STRING_LEN = 80;
34 void parseSessionXML(char* xmlString);
39 char mCoreName[MAX_STRING_LEN];
40 struct ImageLinkList *mImages;
41 char* mConfigurationXMLPath;
42 char* mSessionXMLPath;
47 bool mWaitingOnCommand;
48 bool mSessionIsActive;
50 bool mOneShot; // halt processing of the driver data until profiling is complete or the buffer is filled
54 int mTotalBufferSize; // number of MB to use for the entire collection buffer
65 Counter mCounters[MAX_PERFORMANCE_COUNTERS];
70 // Intentionally unimplemented
71 SessionData(const SessionData &);
72 SessionData &operator=(const SessionData &);
75 extern SessionData* gSessionData;
79 #endif // SESSION_DATA_H