1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _LINUX_SYS_INFO_H
3#define _LINUX_SYS_INFO_H
4
5#include <linux/sysctl.h>
6
7/*
8 * SYS_INFO_PANIC_CONSOLE_REPLAY is for panic case only, as it needs special
9 * handling which only fits panic case.
10 */
11#define SYS_INFO_TASKS 0x00000001
12#define SYS_INFO_MEM 0x00000002
13#define SYS_INFO_TIMERS 0x00000004
14#define SYS_INFO_LOCKS 0x00000008
15#define SYS_INFO_FTRACE 0x00000010
16#define SYS_INFO_PANIC_CONSOLE_REPLAY 0x00000020
17#define SYS_INFO_ALL_CPU_BT 0x00000040
18#define SYS_INFO_BLOCKED_TASKS 0x00000080
19
20void sys_info(unsigned long si_mask);
21unsigned long sys_info_parse_param(char *str);
22
23#ifdef CONFIG_SYSCTL
24int sysctl_sys_info_handler(const struct ctl_table *ro_table, int write,
25 void *buffer, size_t *lenp,
26 loff_t *ppos);
27#endif
28#endif /* _LINUX_SYS_INFO_H */
29