Skip to content

Commit 086d2ad

Browse files
author
Arthur Chan
committed
Cherry picking from Evauluation branch (Changes on 20190212)
1 parent 62d00c0 commit 086d2ad

File tree

3 files changed

+21
-105
lines changed

3 files changed

+21
-105
lines changed

documentation/usage.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,24 @@ Auto execute ProvMark for all syscall currently supported
6868

6969
Usage:
7070
~~~~
71-
./runTests <Tools> <Tools_Path> <Result Type>
71+
./runTests <Tools> <Tools_Path> <Result Type> [<Trial> <Target Base Path>]
7272
~~~~
7373

74+
#### Trial (Default: 2):
75+
- Number of trial executed for each graph for generalization
76+
- More trial will result in longer processing time, but provide a more accurate result as multiple trial can help to filter out uncertainty and unrelated elements and noise
77+
78+
#### Target Base Path (Default: ./baseSyscall/):
79+
- Path to the location of the directory storing the target testing command group, with separate syscall folder inside containing prepare script for the specific syscall.
80+
7481
Example for batch execution of spade with Graphviz storage and generate html webpage to display all result
7582
~~~~
7683
./runTests spg /path/to/spade/base/directory rh
7784
~~~~
7885

7986
Example for batch execution of CamFlow (again, the base directory is ignored in this case):
8087
~~~~
81-
./runTests cam . rh
88+
./runTests cam . rh 11 expSyscall
8289
~~~~
8390

8491
#### Currently Supported Tools:

runExperiments.sh

Lines changed: 0 additions & 99 deletions
This file was deleted.

runTests

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
if [[ "$#" -lt 3 || ("$3" != "rb" && "$3" != "rg" && "$3" != "rh") ]]
44
then
5-
echo "Usage: "$0" <Tools> <Tools_Path> <Result Type> <Num Trials>"
5+
echo "Usage: "$0" <Tools> <Tools_Path> <Result Type> <Num Trials> <Target Base Path>"
66
echo "Result Type:"
77
echo "rb: benchmark only"
88
echo "rg: benchmark and generalized foreground and background graph only"
@@ -12,9 +12,17 @@ fi
1212

1313
sudo mkdir finalResult > /dev/null 2>&1
1414
row=""
15-
for i in `ls benchmarkProgram/baseSyscall`
15+
16+
if [[ "$#" -eq 5 ]]
17+
then
18+
basepath="$5"
19+
else
20+
basepath="baseSyscall"
21+
fi
22+
23+
for i in `ls benchmarkProgram/$basepath`
1624
do
17-
for j in `ls benchmarkProgram/baseSyscall/$i`
25+
for j in `ls benchmarkProgram/$basepath/$i`
1826
do
1927
syscall=${j:3}
2028
syscall=${syscall,,}
@@ -26,7 +34,7 @@ do
2634
fi
2735

2836
echo "Generating provenance benchmark for $syscall in group $i using $1 settings..."
29-
sudo ./ProvMark bg $1 $2 benchmarkProgram/baseSyscall/$i/$j $4
37+
sudo ./ProvMark bg $1 $2 benchmarkProgram/$basepath/$i/$j $4
3038

3139
unset benchmark
3240
for result in `ls result/result-*.clingo`

0 commit comments

Comments
 (0)