gator: Merge gator version 5.23.1
[profile/mobile/platform/kernel/linux-3.10-sc7730.git] / tools / gator / daemon / AtraceDriver.h
1 /**
2  * Copyright (C) ARM Limited 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 ATRACEDRIVER_H
10 #define ATRACEDRIVER_H
11
12 #include "mxml/mxml.h"
13
14 #include "Driver.h"
15
16 class AtraceDriver : public SimpleDriver {
17 public:
18         AtraceDriver();
19         ~AtraceDriver();
20
21         void readEvents(mxml_node_t *const xml);
22
23         void start();
24         void stop();
25
26         bool isSupported() const { return mSupported; }
27
28 private:
29         void setAtrace(const int flags);
30
31         bool mSupported;
32         char mNotifyPath[256];
33
34         // Intentionally unimplemented
35         AtraceDriver(const AtraceDriver &);
36         AtraceDriver &operator=(const AtraceDriver &);
37 };
38
39 #endif // ATRACEDRIVER_H