b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 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() {} |
| 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 | |
| 27 | #endif // KMOD_H |