Skip to content
Snippets Groups Projects
Commit c996c19f authored by ael-mess's avatar ael-mess
Browse files

permission fix

parent 338b210e
No related branches found
No related tags found
No related merge requests found
......@@ -30,15 +30,15 @@ ptaskTracer is a tool that traces the execution of periodic and aperiodic tasks
To install Lttng 2.10, download ANTLR4 4.7.2, Batik 1.10 and w3c jar lib libraries, compile and install the tool, run (from the repository ):
```shell
$ ./install.sh
$ sudo ./install.sh
```
On Ubuntu systems, add stable 2.10 PPA repository before :
```shell
$ apt-add-repository ppa:lttng/stable-2.10
$ apt-get update
$ ./install.sh
$ sudo apt-add-repository ppa:lttng/stable-2.10
$ sudo apt-get update
$ sudo ./install.sh
```
Make sure <code>lttng-tools</code>, <code>lttng-modules</code>, and <code>liblttng-ust</code> are installed before running the application.
......@@ -54,13 +54,13 @@ $ sudo lttng-sessiond --daemonize
Start the application :
```shell
$ ptaskTracer -f|--file [APP_NAME] <-p|--path APP_PATH> <-t|--time TRACING_TIME> <-s|--scale PRINT_SCALE> <-h|--theight TASK_HEIGTH> <-os|--osapp> <-g|--group> <-o|--output OUTPUT>
$ sudo ptaskTracer -f|--file [APP_NAME] <-p|--path APP_PATH> <-t|--time TRACING_TIME> <-s|--scale PRINT_SCALE> <-h|--theight TASK_HEIGTH> <-os|--osapp> <-g|--group> <-o|--output OUTPUT>
```
or
```shell
$ ptaskTracer --old -f|--file [APP_NAME] <-s|--scale PRINT_SCALE> <-h|--theight TASK_HEIGTH> <-os|--osapp> <-g|--group> <-i|--input INPUT>
$ sudo ptaskTracer --old -f|--file [APP_NAME] <-s|--scale PRINT_SCALE> <-h|--theight TASK_HEIGTH> <-os|--osapp> <-g|--group> <-i|--input INPUT>
```
With the option <code>--old</code>, no tracing is performed, the trace analysed will be <code>INPUT/build/[APP_NAME]_raw.txt </code>
......
......@@ -31,7 +31,6 @@ public class main {
//System.out.println(parser.description());
//System.out.println(tasks.description());
//tasks.check();
}
else throw new IllegalArgumentException("Bad arguments or number of arguments");
}
......
......@@ -52,7 +52,7 @@ DELTA : ([0-9]'.'[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])|'?.?
INT : [0-9]+;
SINT : '-'[0-9]+;
HEX : '0x'[0-9A-F]+;
ID : QUOT[A-Za-z0-9/:.)( _-]+QUOT;
ID : QUOT[A-Za-z0-9/:.)(~ _-]+QUOT;
HOSTNAME : [A-Za-z0-9-]+;
WS : [ \t\r\n]+ -> skip;
......@@ -205,7 +205,8 @@ public class svggen {
int period = 0, deadline = 0;
Double start = null;
if(!this.percpu) {
this.curH = 1 + os.size();
if(this.osactive) this.curH = 1 + os.size();
else this.curH = 2;
for(Integer id : this.cpu) {
this.f.line(this.curH*this.task_hei, this.width);
for(task t : this.tasks) if(t.getCpu_id().equals(id)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment