-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuiltin-memory-overlap.h
36 lines (29 loc) · 1.36 KB
/
builtin-memory-overlap.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
/*
Copyright (C) 2013
Baptiste Lepers <[email protected]>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
version 2, as published by the Free Software Foundation.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef BUILTIN_MEMORY_OVERLAP
#define BUILTIN_MEMORY_OVERLAP 1
#define NB_STORED_FIELDS ((nb_overlapping_apps+nb_overlapping_tids+nb_overlapping_pids)*3 + 2)
#define LOAD_INDEX(app) ((nb_overlapping_apps+nb_overlapping_tids+nb_overlapping_pids) + app)
#define STORE_INDEX(app) ((nb_overlapping_apps+nb_overlapping_tids+nb_overlapping_pids)*2 + app)
#define IN_KERNEL ((nb_overlapping_apps+nb_overlapping_tids+nb_overlapping_pids)*3)
#define USERLAND (IN_KERNEL + 1)
void overlap_add_application(char *app);
void overlap_add_tid(int tid);
void overlap_add_pid(int pid);
void overlap_add_tid_unshared(int tid);
void overlap_init();
void overlap_parse(struct s* s);
void overlap_show();
#endif