Project

General

Profile

Diag mdlog » History » Version 2

laforge, 12/17/2016 10:20 AM

1 1 laforge
h1. diag_mdlog
2
3
This is a small proprietary Qualcomm program which can store DIAG logs on the filesystem.
4
5
It features the following @--help@ output:
6
7
<pre>
8
 Usage for diag_mdlog:
9
10
-f, --filemsm:   mask file name for MSM
11
-m, --filemdm:   mask file name for MDM
12
-l, --filelist:  name of file containing list of mask files
13
-o, --output:    output directory name
14
-p, --peripheral:        bit mask for the peripherals interested
15
-s, --size:      maximum file size in MB
16
-w, --wait:      waiting for directory
17
-n, --number:    maximum file number
18
-k, --kill:      kill existing instance of diag_mdlog
19
-c  --cleanmask:         Send mask cleanup to modem at exit
20
-d  --disablecon:        Disable console messages
21
-e  --enablelock:        Run using wake lock to keep APPS processor on
22
-b  --nonrealtime:       Have peripherals buffer data and send data in non-real-time
23
-r  --renamefiles:       Rename dir/file names to time when closed
24
-a  --hdlcdisable:       Disbale hdlc encoding
25
-h, --help:      usage help
26
27
e.g. diag_mdlog -f <mask_file name> -o <output dir> -s <size in bytes> -c
28
</pre>
29
30 2 laforge
h2. mask files (--filemsm, --filemdm)
31 1 laforge
32
It works using so-called _mask files_ which contain the raw byte sequences to be sent to @/dev/diag@ to enable certain log masks.  The defailed format is TBD.
33
34
35 2 laforge
The default mask file name (if none is specified) depends on the processor that you want to diag:
36
<pre>
37
/sdcard/diag_logs/Diag.cfg
38
/sdcard/diag_logs/mdm/Diag.cfg
39
/sdcard/diag_logs/mdm2/Diag.cfg
40
/sdcard/diag_logs/mdm3/Diag.cfg
41
/sdcard/diag_logs/mdm4/Diag.cfg
42
/sdcard/diag_logs/qsc/Diag.cfg
43
/sdcard/diag_logs/Diag.cfg
44
/sdcard/diag_logs/Diag.cfg
45
/sdcard/diag_logs/Diag.cfg
46
/sdcard/diag_logs/Diag.cfg
47
</pre>
48
49
h2. --filelist
50
51
As an alternative to mask files, there s the filelist_ concept, whcih is a text file containing a list of mask files.  The default filelist file is @/sdcard/diag_logs/Diag_list.txt@
52
53 1 laforge
h2. --wait
54
55
This waits for the specified directory to become available/writable before proceeding.  Useful in case you wait for mountin an SD card or the like.
56
57
h2. --cleanmask
58
59
This clears the debug mask at the time of a clean shutdown of the process
60
61
h2. --renamefiles
62
63
Renames the files when they are closed.  Filenames will be based on timestamps in a format of @/dir/diag_log_%Y%m%d_%H%M%S.qmdl@ where @dir@ corresponds to the --outputdir option given.
64 2 laforge
65
h2. --outputdir
66
67
The default output directories are
Add picture from clipboard (Maximum size: 48.8 MB)