/
memnotify.h
54 lines (44 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
* @file memnotify.h
* Memory use tracking and notification plugin for the Mode Control Entity
* <p>
* Copyright (C) 2014-2019 Jolla Ltd.
* <p>
* @author Simo Piiroinen <simo.piiroinen@jollamobile.com>
*
* mce is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation.
*
* mce 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 mce. If not, see <http://www.gnu.org/licenses/>.
*/
22
23
24
#ifndef MEMNOTIFY_H_
# define MEMNOTIFY_H_
25
26
27
/* ========================================================================= *
* Settings
* ========================================================================= */
28
29
/** Prefix for memnotify setting keys */
30
# define MCE_SETTING_MEMNOTIFY_PATH "/system/osso/dsm/memnotify"
31
32
/** Memnotify warning level configuration */
33
# define MCE_SETTING_MEMNOTIFY_WARNING_PATH MCE_SETTING_MEMNOTIFY_PATH"/warning"
34
35
/** Warning threshold for used memory [pages] */
36
37
38
# define MCE_SETTING_MEMNOTIFY_WARNING_USED MCE_SETTING_MEMNOTIFY_PATH"/warning/used"
# define MCE_DEFAULT_MEMNOTIFY_WARNING_USED 0 // = disabled
39
/** Warning threshold for active memory [pages] */
40
41
# define MCE_SETTING_MEMNOTIFY_WARNING_ACTIVE MCE_SETTING_MEMNOTIFY_PATH"/warning/active"
# define MCE_DEFAULT_MEMNOTIFY_WARNING_ACTIVE 0 // = disabled
42
43
/** Memnotify critical level configuration */
44
45
# define MCE_SETTING_MEMNOTIFY_CRITICAL_PATH MCE_SETTING_MEMNOTIFY_PATH"/critical"
46
/** Critical threshold for used memory [pages] */
47
48
# define MCE_SETTING_MEMNOTIFY_CRITICAL_USED MCE_SETTING_MEMNOTIFY_PATH"/critical/used"
# define MCE_DEFAULT_MEMNOTIFY_CRITICAL_USED 0 // = disabled
49
50
/** Critical threshold for active memory [pages] */
51
52
53
# define MCE_SETTING_MEMNOTIFY_CRITICAL_ACTIVE MCE_SETTING_MEMNOTIFY_PATH"/critical/active"
# define MCE_DEFAULT_MEMNOTIFY_CRITICAL_ACTIVE 0 // = disabled
54
#endif /* MEMNOTIFY_H_ */