blob: b79dc9149d6aec1f88806bba369325af4be60efc [file] [log] [blame]
Jon Medhurst96b56152014-10-30 18:01:15 +00001/**
Jon Medhurstb1d07442015-05-08 12:04:18 +01002 * Copyright (C) ARM Limited 2014-2015. All rights reserved.
Jon Medhurst96b56152014-10-30 18:01:15 +00003 *
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
14class FtraceDriver : public SimpleDriver {
15public:
16 FtraceDriver();
17 ~FtraceDriver();
18
19 void readEvents(mxml_node_t *const xml);
20
Jon Medhurstb1d07442015-05-08 12:04:18 +010021 void prepare();
Jon Medhurst96b56152014-10-30 18:01:15 +000022 int read(const char *line, int64_t **buf);
Jon Medhurstb1d07442015-05-08 12:04:18 +010023 void stop();
Jon Medhurst96b56152014-10-30 18:01:15 +000024
25private:
26 int64_t *mValues;
27
28 // Intentionally unimplemented
29 FtraceDriver(const FtraceDriver &);
30 FtraceDriver &operator=(const FtraceDriver &);
31};
32
33#endif // FTRACEDRIVER_H