aboutsummaryrefslogtreecommitdiff
path: root/tools/gator/daemon/PerfDriver.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gator/daemon/PerfDriver.h')
-rw-r--r--tools/gator/daemon/PerfDriver.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/gator/daemon/PerfDriver.h b/tools/gator/daemon/PerfDriver.h
index 846203a9e18b..95b42bfa30c0 100644
--- a/tools/gator/daemon/PerfDriver.h
+++ b/tools/gator/daemon/PerfDriver.h
@@ -1,5 +1,5 @@
/**
- * Copyright (C) ARM Limited 2013-2014. All rights reserved.
+ * Copyright (C) ARM Limited 2013-2015. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
@@ -19,6 +19,7 @@
#define SCHED_SWITCH "sched/sched_switch"
#define CPU_IDLE "power/cpu_idle"
+#define CPU_FREQUENCY "power/cpu_frequency"
class Buffer;
class DynBuf;
@@ -33,18 +34,19 @@ public:
bool setup();
bool summary(Buffer *const buffer);
- void coreName(const uint32_t startTime, Buffer *const buffer, const int cpu);
+ void coreName(const uint64_t currTime, Buffer *const buffer, const int cpu);
bool isSetup() const { return mIsSetup; }
void setupCounter(Counter &counter);
bool enable(const uint64_t currTime, PerfGroup *const group, Buffer *const buffer) const;
+ void read(Buffer *const buffer, const int cpu);
static long long getTracepointId(const char *const name, DynBuf *const printb);
private:
void addCpuCounters(const char *const counterName, const int type, const int numCounters);
- void addUncoreCounters(const char *const counterName, const int type, const int numCounters);
+ void addUncoreCounters(const char *const counterName, const int type, const int numCounters, const bool hasCyclesCounter);
bool mIsSetup;
bool mLegacySupport;