2 * Copyright (C) ARM Limited 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.
12 #include "mxml/mxml.h"
18 static Driver *getHead() { return head; }
22 // Returns true if this driver can manage the counter
23 virtual bool claimCounter(const Counter &counter) const = 0;
24 // Clears and disables all counters
25 virtual void resetCounters() = 0;
26 // Enables and prepares the counter for capture
27 virtual void setupCounter(Counter &counter) = 0;
29 // Emits available counters
30 virtual void writeCounters(mxml_node_t *root) const = 0;
31 // Emits possible dynamically generated events/counters
32 virtual void writeEvents(mxml_node_t *) const {}
34 Driver *getNext() const { return next; }
43 // Intentionally unimplemented
44 Driver(const Driver &);
45 Driver &operator=(const Driver &);