Merge branch 'linux-3.10.y' of git://git.kernel.org/pub/scm/linux/kernel/git/stable...
[firefly-linux-kernel-4.4.55.git] / tools / gator / daemon / FtraceDriver.h
1 /**
2  * Copyright (C) ARM Limited 2014-2015. All rights reserved.
3  *
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.
7  */
8
9 #ifndef FTRACEDRIVER_H
10 #define FTRACEDRIVER_H
11
12 #include "Driver.h"
13
14 class FtraceDriver : public SimpleDriver {
15 public:
16         FtraceDriver();
17         ~FtraceDriver();
18
19         void readEvents(mxml_node_t *const xml);
20
21         void prepare();
22         int read(const char *line, int64_t **buf);
23         void stop();
24
25 private:
26         int64_t *mValues;
27
28         // Intentionally unimplemented
29         FtraceDriver(const FtraceDriver &);
30         FtraceDriver &operator=(const FtraceDriver &);
31 };
32
33 #endif // FTRACEDRIVER_H