This repository has been archived by the owner on Oct 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
tracker_debugfs.h
50 lines (41 loc) · 1.73 KB
/
tracker_debugfs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#if !defined(LATENCY_DEBUGFS_H)
#define LATENCY_DEBUGFS_H
/*
* Copyright (C) 2014 Julien Desfossez <jdesfossez@efficios.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; only
* version 2.1 of the License.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "latency_tracker.h"
/*
* debugfs structure:
* root: /sys/kernel/debug/latency
* each tracker create its own directory below that.
*/
int latency_tracker_debugfs_setup(void);
void latency_tracker_debugfs_cleanup(void);
int latency_tracker_debugfs_add_tracker(
struct latency_tracker *tracker);
int latency_tracker_debugfs_default_entries(struct latency_tracker *tracker);
struct dentry *latency_tracker_debugfs_add_subfolder(
struct latency_tracker *tracker,
const char *name);
void latency_tracker_debugfs_remove_tracker(struct latency_tracker
*tracker);
void latency_tracker_debugfs_wakeup_pipe(struct latency_tracker *tracker);
int latency_tracker_debugfs_setup_wakeup_pipe(struct latency_tracker *tracker);
int latency_open_generic(struct inode *inode, struct file *filp);
struct dentry *debugfs_create_int(const char *name, umode_t mode,
struct dentry *parent, int *value);
#endif /* LATENCY_DEBUGFS_H */