2 * Copyright (C) ARM Limited 2010-2013. 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 #define MAX_PERFORMANCE_COUNTERS 50
19 #define PROTOCOL_VERSION 17
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);
38 char mCoreName[MAX_STRING_LEN];
39 struct ImageLinkList *mImages;
40 char* mConfigurationXMLPath;
41 char* mSessionXMLPath;
46 bool mWaitingOnCommand;
47 bool mSessionIsActive;
49 bool mOneShot; // halt processing of the driver data until profiling is complete or the buffer is filled
52 int mTotalBufferSize; // number of MB to use for the entire collection buffer
61 Counter mCounters[MAX_PERFORMANCE_COUNTERS];
66 // Intentionally unimplemented
67 SessionData(const SessionData &);
68 SessionData &operator=(const SessionData &);
71 extern SessionData* gSessionData;
75 #endif // SESSION_DATA_H