-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathconfig
More file actions
71 lines (60 loc) · 1.98 KB
/
config
File metadata and controls
71 lines (60 loc) · 1.98 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
# config
# https://github.com/kaiwan/procmap
#
# Configuration file for the procmap project.
set -a # export all
# Still, shellcheck likes them all explicitly 'export'ed
export LC_ALL=C # locale
#------------- One-time install of kernel-detail file, vars
export KMOD=procmap
export DBGFS_LOC=$(mount |grep debugfs |awk '{print $3}')
export DBGFS_FILENAME=disp_kernelseg_details
export REPORT_DIR=/etc/procmap
export KSEGFILE=${REPORT_DIR}/kseg_dtl
#------------
export name=procmap
export gDELIM=","
export VERBOSE=0
export DEBUG=0
export WRITELOG=0
export LOCATE_SPEC=""
export LIMIT_SCALE_SZ=20
export LARGE_SPACE=12
# userspace VAS display configs
export SHOW_USERSPACE=1
export EMB=0 # set to 1 for 'embedded' systems; simpler [no float point, etc]
export SPARSE_SHOW=1
export SHOW_VSYSCALL_PAGE=0
export SHOW_STATS=1
# kernel seg display configs
export SHOW_KERNELSEG=1
#export KSEGFILE=/tmp/${name}/kseg_dtl
#NAME=procmap_kernel_setup.sh
#export KSEGFILE=/tmp/${NAME}/kseg_dtl
export ARCHFILE=/tmp/${name}/arch_dtl
export KERNELDIR=${PFX}/procmap_kernel
export KMOD=procmap
#export DBGFS_LOC=$(mount |grep debugfs |awk '{print $3}')
#export DBGFS_FILENAME=disp_kernelseg_details
export KSPARSE_SHOW=1
export SHOW_KSTATS=1
# Common sizes
export GB_1=$(bc <<< "scale=6; 1.0*1024.0*1024.0*1024.0")
export GB_2=$(bc <<< "scale=6; 2.0*1024.0*1024.0*1024.0")
export GB_3=$(bc <<< "scale=6; 3.0*1024.0*1024.0*1024.0")
export GB_4=$(bc <<< "scale=6; 4.0*1024.0*1024.0*1024.0")
export TB_1=$(bc <<< "scale=0; 1*1024*1024*1024*1024")
export TB_128=$(bc <<< "scale=6; 128.0*1024.0*1024.0*1024.0*1024.0")
export 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
export IS_X86_64=0
export IS_Aarch32=0
export IS_Aarch64=0
export IS_X86_32=0
# Colors
# Find the curr encoded color functions (fg_xxx, bg_yyy) in the color.sh script
# FG = foreground color
export FG_MAPNAME=fg_navyblue
export FG_KVAR=fg_darkgreen
export FG_LOC=fg_red