pmu.hh (12973:78a7bbc23c29) pmu.hh (13104:4a0713e11ef7)
1/*
2 * Copyright (c) 2011-2014, 2017-2018 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 205 unchanged lines hidden (view full) ---

214 void resetEventCounts();
215
216 /**
217 * Deliver a PMU interrupt to the GIC
218 */
219 void raiseInterrupt();
220
221 /**
1/*
2 * Copyright (c) 2011-2014, 2017-2018 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 205 unchanged lines hidden (view full) ---

214 void resetEventCounts();
215
216 /**
217 * Deliver a PMU interrupt to the GIC
218 */
219 void raiseInterrupt();
220
221 /**
222 * Clear a PMU interrupt.
223 */
224 void clearInterrupt();
225
226 /**
222 * Get the value of a performance counter.
223 *
224 * This method returns the value of a general purpose performance
225 * counter or the fixed-function cycle counter. Non-existing
226 * counters are treated as constant '0'.
227 *
228 * @return Value of the performance counter, 0 if the counter does
229 * not exist.

--- 34 unchanged lines hidden (view full) ---

264 * non-existing counters are ignored. The method automatically
265 * updates the probes used by the counter if it is enabled.
266 *
267 * @param id Counter ID within the PMU.
268 * @param type Performance counter type and filter configuration..
269 */
270 void setCounterTypeRegister(CounterId id, PMEVTYPER_t type);
271
227 * Get the value of a performance counter.
228 *
229 * This method returns the value of a general purpose performance
230 * counter or the fixed-function cycle counter. Non-existing
231 * counters are treated as constant '0'.
232 *
233 * @return Value of the performance counter, 0 if the counter does
234 * not exist.

--- 34 unchanged lines hidden (view full) ---

269 * non-existing counters are ignored. The method automatically
270 * updates the probes used by the counter if it is enabled.
271 *
272 * @param id Counter ID within the PMU.
273 * @param type Performance counter type and filter configuration..
274 */
275 void setCounterTypeRegister(CounterId id, PMEVTYPER_t type);
276
277 /**
278 * Used for writing the Overflow Flag Status Register (SET/CLR)
279 *
280 * This method implements a write to the PMOVSSET/PMOVSCLR registers.
281 * It is capturing change of state in the register bits so that
282 * the overflow interrupt can be raised/cleared as a side effect
283 * of the write.
284 *
285 * @param new_val New value of the Overflow Status Register
286 */
287 void setOverflowStatus(MiscReg new_val);
288
272 protected: /* Probe handling and counter state */
273 struct CounterState;
274
275 /**
276 * Event definition base class
277 */
278 struct PMUEvent {
279

--- 335 unchanged lines hidden ---
289 protected: /* Probe handling and counter state */
290 struct CounterState;
291
292 /**
293 * Event definition base class
294 */
295 struct PMUEvent {
296

--- 335 unchanged lines hidden ---