summaryrefslogtreecommitdiff
path: root/include/linux/delayacct.h
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2021-05-10 15:01:00 +0300
committerPeter Zijlstra <peterz@infradead.org>2021-05-12 12:43:25 +0300
commit0cd7c741f01de13dc1eecf22557593b3514639bb (patch)
tree9d1031e2a5e08dc9d45a6670f4d8e6171be8864c /include/linux/delayacct.h
parente4042ad492357fa995921376462b04a025dd53b6 (diff)
downloadlinux-0cd7c741f01de13dc1eecf22557593b3514639bb.tar.xz
delayacct: Add sysctl to enable at runtime
Just like sched_schedstats, allow runtime enabling (and disabling) of delayacct. This is useful if one forgot to add the delayacct boot time option. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/YJkhebGJAywaZowX@hirez.programming.kicks-ass.net
Diffstat (limited to 'include/linux/delayacct.h')
-rw-r--r--include/linux/delayacct.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/delayacct.h b/include/linux/delayacct.h
index 225c8e01a111..af7e6eb50283 100644
--- a/include/linux/delayacct.h
+++ b/include/linux/delayacct.h
@@ -65,6 +65,10 @@ DECLARE_STATIC_KEY_FALSE(delayacct_key);
extern int delayacct_on; /* Delay accounting turned on/off */
extern struct kmem_cache *delayacct_cache;
extern void delayacct_init(void);
+
+extern int sysctl_delayacct(struct ctl_table *table, int write, void *buffer,
+ size_t *lenp, loff_t *ppos);
+
extern void __delayacct_tsk_init(struct task_struct *);
extern void __delayacct_tsk_exit(struct task_struct *);
extern void __delayacct_blkio_start(void);