Stefan Schuermans commited on 2020-07-28 19:32:14
Showing 5 changed files, with 18 additions and 18 deletions.
... | ... |
@@ -71,19 +71,19 @@ file name for the trace. For example, to trace the command |
71 | 71 |
``` |
72 | 72 |
run the following command: |
73 | 73 |
``` |
74 |
-upt-trace mytrace.proto /usr/bin/printf "trace me" |
|
74 |
+upt-trace mytrace.upt /usr/bin/printf "trace me" |
|
75 | 75 |
``` |
76 | 76 |
|
77 | 77 |
To show the recorded events, run: |
78 | 78 |
``` |
79 |
-upt-tool mytrace.proto dump |
|
79 |
+upt-tool mytrace.upt dump |
|
80 | 80 |
``` |
81 | 81 |
|
82 | 82 |
## Graphical User interface |
83 | 83 |
|
84 | 84 |
To explore a trace in the graphical user interface, run: |
85 | 85 |
``` |
86 |
-upt-tool mytrace.proto gui |
|
86 |
+upt-tool mytrace.upt gui |
|
87 | 87 |
``` |
88 | 88 |
|
89 | 89 |
## Example: Trace Build Process |
... | ... |
@@ -97,7 +97,7 @@ Change to the build directory. |
97 | 97 |
Start a new shell to be traced: |
98 | 98 |
|
99 | 99 |
``` |
100 |
-upt-trace mytrace.proto bash |
|
100 |
+upt-trace mytrace.upt bash |
|
101 | 101 |
``` |
102 | 102 |
|
103 | 103 |
Configure another build directory for this tracing example and run the build: |
... | ... |
@@ -118,11 +118,11 @@ exit |
118 | 118 |
Show traced information: |
119 | 119 |
|
120 | 120 |
``` |
121 |
-upt-tool mytrace.proto dump |
|
121 |
+upt-tool mytrace.upt dump |
|
122 | 122 |
``` |
123 | 123 |
|
124 | 124 |
To explore the trace in the graphical user interface, run: |
125 | 125 |
|
126 | 126 |
``` |
127 |
-upt-tool mytrace.proto gui |
|
127 |
+upt-tool mytrace.upt gui |
|
128 | 128 |
``` |
... | ... |
@@ -61,7 +61,7 @@ def parse_args(): |
61 | 61 |
""" |
62 | 62 |
# set up main parser |
63 | 63 |
parser = argparse.ArgumentParser(description='UProcTrace tool.') |
64 |
- parser.add_argument('trace', help='trace file') |
|
64 |
+ parser.add_argument('trace', metavar='<trace.upt>', help='trace file') |
|
65 | 65 |
subparsers = parser.add_subparsers() |
66 | 66 |
# dump |
67 | 67 |
dump_parser = subparsers.add_parser('dump', help='Dump events to stdout.') |
... | ... |
@@ -13,14 +13,14 @@ SCRIPT_DIR="$(dirname "$0")" |
13 | 13 |
|
14 | 14 |
source "$UPT_HOME/exports" |
15 | 15 |
|
16 |
-rm -rf out.proto |
|
16 |
+rm -rf trace.upt |
|
17 | 17 |
|
18 |
-upt-trace out.proto "$SCRIPT_DIR/traceme.bash" |
|
18 |
+upt-trace trace.upt "$SCRIPT_DIR/traceme.bash" |
|
19 | 19 |
|
20 |
-ls -l out.proto |
|
20 |
+ls -l trace.upt |
|
21 | 21 |
|
22 |
-upt-tool out.proto dump | tee out.dump |
|
22 |
+upt-tool trace.upt dump | tee out.dump |
|
23 | 23 |
grep '^ *event *{ *$' out.dump | wc -l | tee out.event_cnt |
24 | 24 |
grep '^6$' out.event_cnt |
25 | 25 |
|
26 |
-upt-tool out.proto pstree |
|
26 |
+upt-tool trace.upt pstree |
... | ... |
@@ -14,15 +14,15 @@ SCRIPT_DIR="$(dirname "$0")" |
14 | 14 |
|
15 | 15 |
source "$UPT_HOME/exports" |
16 | 16 |
|
17 |
-rm -rf out.proto build |
|
17 |
+rm -rf trace.upt build |
|
18 | 18 |
|
19 |
-upt-trace out.proto "$SCRIPT_DIR/run_build.bash" "$SOURCE_DIR" |
|
19 |
+upt-trace trace.upt "$SCRIPT_DIR/run_build.bash" "$SOURCE_DIR" |
|
20 | 20 |
|
21 |
-ls -l out.proto |
|
21 |
+ls -l trace.upt |
|
22 | 22 |
|
23 |
-upt-tool out.proto dump | tee out.dump |
|
23 |
+upt-tool trace.upt dump | tee out.dump |
|
24 | 24 |
grep -A 1 '^ *cmdline {$' out.dump | grep '^ *s: "mkdir"$' |
25 | 25 |
grep '^ *s: "proc_begin.c"$' out.dump |
26 | 26 |
grep '^ *s: "libuptpl.so"$' out.dump |
27 | 27 |
|
28 |
-upt-tool out.proto pstree |
|
28 |
+upt-tool trace.upt pstree |