gator: Version 5.20
[firefly-linux-kernel-4.4.55.git] / tools / gator / daemon / KMod.h
1 /**
2  * Copyright (C) ARM Limited 2013-2014. 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 KMOD_H
10 #define KMOD_H
11
12 #include "Driver.h"
13
14 // Driver for the gator kernel module
15 class KMod : public Driver {
16 public:
17         KMod() : mIsMaliCapture(false) {}
18         ~KMod() {}
19
20         bool claimCounter(const Counter &counter) const;
21         void resetCounters();
22         void setupCounter(Counter &counter);
23
24         int writeCounters(mxml_node_t *root) const;
25
26         bool isMaliCapture() const { return mIsMaliCapture; }
27
28 private:
29         bool mIsMaliCapture;
30 };
31
32 #endif // KMOD_H