diff options
Diffstat (limited to 'daemon/PerfDriver.h')
-rw-r--r-- | daemon/PerfDriver.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/daemon/PerfDriver.h b/daemon/PerfDriver.h index 3181b74..2cae575 100644 --- a/daemon/PerfDriver.h +++ b/daemon/PerfDriver.h | |||
@@ -27,6 +27,8 @@ public: | |||
27 | PerfDriver(); | 27 | PerfDriver(); |
28 | ~PerfDriver(); | 28 | ~PerfDriver(); |
29 | 29 | ||
30 | bool getLegacySupport() const { return mLegacySupport; } | ||
31 | |||
30 | bool setup(); | 32 | bool setup(); |
31 | bool summary(Buffer *const buffer); | 33 | bool summary(Buffer *const buffer); |
32 | bool isSetup() const { return mIsSetup; } | 34 | bool isSetup() const { return mIsSetup; } |
@@ -37,16 +39,18 @@ public: | |||
37 | 39 | ||
38 | int writeCounters(mxml_node_t *root) const; | 40 | int writeCounters(mxml_node_t *root) const; |
39 | 41 | ||
40 | bool enable(PerfGroup *group, Buffer *const buffer) const; | 42 | bool enable(PerfGroup *const group, Buffer *const buffer) const; |
41 | 43 | ||
42 | static long long getTracepointId(const char *const name, DynBuf *const printb); | 44 | static long long getTracepointId(const char *const name, DynBuf *const printb); |
43 | 45 | ||
44 | private: | 46 | private: |
45 | PerfCounter *findCounter(const Counter &counter) const; | 47 | PerfCounter *findCounter(const Counter &counter) const; |
46 | void addCpuCounters(const char *const counterName, const int type, const int numCounters); | 48 | void addCpuCounters(const char *const counterName, const int type, const int numCounters); |
49 | void addUncoreCounters(const char *const counterName, const int type, const int numCounters); | ||
47 | 50 | ||
48 | PerfCounter *mCounters; | 51 | PerfCounter *mCounters; |
49 | bool mIsSetup; | 52 | bool mIsSetup; |
53 | bool mLegacySupport; | ||
50 | 54 | ||
51 | // Intentionally undefined | 55 | // Intentionally undefined |
52 | PerfDriver(const PerfDriver &); | 56 | PerfDriver(const PerfDriver &); |