diff options
Diffstat (limited to 'tools/gator/daemon/FtraceDriver.h')
-rw-r--r-- | tools/gator/daemon/FtraceDriver.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tools/gator/daemon/FtraceDriver.h b/tools/gator/daemon/FtraceDriver.h new file mode 100644 index 000000000000..6e592d786617 --- /dev/null +++ b/tools/gator/daemon/FtraceDriver.h @@ -0,0 +1,36 @@ +/** + * Copyright (C) ARM Limited 2014-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 + * published by the Free Software Foundation. + */ + +#ifndef FTRACEDRIVER_H +#define FTRACEDRIVER_H + +#include "Driver.h" + +class FtraceDriver : public SimpleDriver { +public: + FtraceDriver(); + ~FtraceDriver(); + + void readEvents(mxml_node_t *const xml); + + void prepare(); + void stop(); + + bool isSupported() const { return mSupported; } + +private: + int64_t *mValues; + bool mSupported; + int mTracingOn; + + // Intentionally unimplemented + FtraceDriver(const FtraceDriver &); + FtraceDriver &operator=(const FtraceDriver &); +}; + +#endif // FTRACEDRIVER_H |