Project

General

Profile

Diag mdlog » History » Version 1

laforge, 12/17/2016 10:17 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
h2. mask files
31
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
As an alternative to mask files, there s the filelist_ concept, whcih is a text file containing a list of mask files.
35
36
h2. --wait
37
38
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.
39
40
h2. --cleanmask
41
42
This clears the debug mask at the time of a clean shutdown of the process
43
44
h2. --renamefiles
45
46
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.
Add picture from clipboard (Maximum size: 48.8 MB)