blob: 7f06b4b34b5d9b1072dc6c8bb95e9f5470e3210d [file] [log] [blame]
Jon Medhurstaaf37a32013-06-11 12:10:56 +01001/**
Jon Medhurstb1d07442015-05-08 12:04:18 +01002 * Copyright (C) ARM Limited 2013-2015. All rights reserved.
Jon Medhurstaaf37a32013-06-11 12:10:56 +01003 *
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
15class KMod : public Driver {
16public:
Jon Medhurst96b56152014-10-30 18:01:15 +000017 KMod() : mIsMaliCapture(false) {}
Jon Medhurstaaf37a32013-06-11 12:10:56 +010018 ~KMod() {}
19
20 bool claimCounter(const Counter &counter) const;
21 void resetCounters();
22 void setupCounter(Counter &counter);
23
Jon Medhurst15ce78d2014-04-10 09:02:02 +010024 int writeCounters(mxml_node_t *root) const;
Jon Medhurst96b56152014-10-30 18:01:15 +000025
26 bool isMaliCapture() const { return mIsMaliCapture; }
27
28private:
29 bool mIsMaliCapture;
Jon Medhurstaaf37a32013-06-11 12:10:56 +010030};
31
32#endif // KMOD_H