Skip to content

Latest commit

 

History

History
54 lines (44 loc) · 2.2 KB

memnotify.h

File metadata and controls

54 lines (44 loc) · 2.2 KB
 
May 17, 2019
May 17, 2019
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_
Mar 31, 2016
Mar 31, 2016
25
26
27
/* ========================================================================= *
* Settings
* ========================================================================= */
Mar 31, 2016
Mar 31, 2016
29
/** Prefix for memnotify setting keys */
Mar 31, 2016
Mar 31, 2016
30
# define MCE_SETTING_MEMNOTIFY_PATH "/system/osso/dsm/memnotify"
31
32
/** Memnotify warning level configuration */
Mar 31, 2016
Mar 31, 2016
33
# define MCE_SETTING_MEMNOTIFY_WARNING_PATH MCE_SETTING_MEMNOTIFY_PATH"/warning"
Mar 31, 2016
Mar 31, 2016
35
/** Warning threshold for used memory [pages] */
Mar 31, 2016
Mar 31, 2016
36
37
38
# define MCE_SETTING_MEMNOTIFY_WARNING_USED MCE_SETTING_MEMNOTIFY_PATH"/warning/used"
# define MCE_DEFAULT_MEMNOTIFY_WARNING_USED 0 // = disabled
Mar 31, 2016
Mar 31, 2016
39
/** Warning threshold for active memory [pages] */
Mar 31, 2016
Mar 31, 2016
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 */
Mar 31, 2016
Mar 31, 2016
44
45
# define MCE_SETTING_MEMNOTIFY_CRITICAL_PATH MCE_SETTING_MEMNOTIFY_PATH"/critical"
Mar 31, 2016
Mar 31, 2016
46
/** Critical threshold for used memory [pages] */
Mar 31, 2016
Mar 31, 2016
47
48
# define MCE_SETTING_MEMNOTIFY_CRITICAL_USED MCE_SETTING_MEMNOTIFY_PATH"/critical/used"
# define MCE_DEFAULT_MEMNOTIFY_CRITICAL_USED 0 // = disabled
Mar 31, 2016
Mar 31, 2016
50
/** Critical threshold for active memory [pages] */
Mar 31, 2016
Mar 31, 2016
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_ */