-
Notifications
You must be signed in to change notification settings - Fork 23
/
config
57 lines (50 loc) · 1.35 KB
/
config
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
# config
# https://github.com/kaiwan/procmap
#
# Configuration file for the procmap project.
set -a # export all
export LC_ALL=C # locale
export name=procmap
gDELIM=","
VERBOSE=0
DEBUG=0
WRITELOG=0
LOCATE_SPEC=""
LIMIT_SCALE_SZ=20
LARGE_SPACE=12
# userspace VAS display configs
SHOW_USERSPACE=1
EMB=0 # set to 1 for 'embedded' systems; simpler [no float point, etc]
SPARSE_SHOW=1
SHOW_VSYSCALL_PAGE=0
SHOW_STATS=1
# kernel seg display configs
SHOW_KERNELSEG=1
KSEGFILE=/tmp/${name}/kseg_dtl
ARCHFILE=/tmp/${name}/arch_dtl
KERNELDIR=${PFX}/procmap_kernel
KMOD=procmap
DBGFS_LOC=$(mount |grep debugfs |awk '{print $3}')
DBGFS_FILENAME=disp_kernelseg_details
KSPARSE_SHOW=1
SHOW_KSTATS=1
# Common sizes
GB_1=$(bc <<< "scale=6; 1.0*1024.0*1024.0*1024.0")
GB_2=$(bc <<< "scale=6; 2.0*1024.0*1024.0*1024.0")
GB_3=$(bc <<< "scale=6; 3.0*1024.0*1024.0*1024.0")
GB_4=$(bc <<< "scale=6; 4.0*1024.0*1024.0*1024.0")
TB_1=$(bc <<< "scale=0; 1*1024*1024*1024*1024")
TB_128=$(bc <<< "scale=6; 128.0*1024.0*1024.0*1024.0*1024.0")
TB_256=$(bc <<< "scale=6; 256.0*1024.0*1024.0*1024.0*1024.0")
# Arch-specific config setup is in the 'lib_procmap.sh' file
IS_X86_64=0
IS_Aarch32=0
IS_Aarch64=0
IS_X86_32=0
# Colors
# Find the curr encoded color functions (fg_xxx, bg_yyy) in the color.sh script
# FG = foreground color
FG_MAPNAME=fg_navyblue
FG_KVAR=fg_darkgreen
FG_LOC=fg_red