Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Toolchain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
Zipr Toolchain
Commits
f124c1c2
Commit
f124c1c2
authored
11 years ago
by
bdr7fv
Browse files
Options
Downloads
Patches
Plain Diff
updaing manual_coverage_wrapper.sh for pin tool.
Former-commit-id: 4791add3c7cf8a55b5a6dca7f6787da884a98de7
parent
989dc46e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/manual_coverage_wrapper.sh
+6
-6
6 additions, 6 deletions
tools/manual_coverage_wrapper.sh
with
6 additions
and
6 deletions
tools/manual_coverage_wrapper.sh
+
6
−
6
View file @
f124c1c2
...
...
@@ -11,18 +11,18 @@ MANUAL_EXE_ADDRESS_OUTPUT_FILE=$3
PIN_BENCH
=
`
pwd
`
/pin_bench
EXE_ADDRESSES
=
$PIN_RESULTS
/itrace.out
COVERAGE_RESULTS_FILE
=
$PEASOUP_HOME
/coverage_results
/itrace.out
COVER_SCRIPT
=
$SECURITY_TRANSFORMS_HOME
/tools/cover/cover
echo
"manual coverage script"
#clean exe addresses
rm
-f
$
EXE_ADDRESSES
rm
-f
$
COVERAGE_RESULTS_FILE
#Assuming exe addresses are accumulated by pin in itrace.out located in
#PIN_RESULTS
echo
"INSTALL PIN BINARY"
echo
"setarch i386 -RL
$PIN_HOME
/pin -injection child -t
$PIN_HOME
/itraceunique.so --
$BENCH
\$
@"
>
$PIN_BENCH
echo
"
COVERAGE_RESULTS_FILE=
$COVERAGE_RESULTS_FILE
setarch i386 -RL
$PIN_HOME
/pin -injection child -t
$PIN_HOME
/
source/tools/ManualExamples/obj-ia32/
itraceunique.so --
$BENCH
\$
@"
>
$PIN_BENCH
chmod
+x
$PIN_BENCH
...
...
@@ -37,10 +37,10 @@ if [ $? -ne 0 ]; then
fi
# sanity filter, keep only well formed addresses
cat
$
EXE_ADDRESSES
|
sed
's/.*\(0x.*\)/\1/'
>
tmp
mv
tmp
$
EXE_ADDRESSES
cat
$
COVERAGE_RESULTS_FILE
|
sed
's/.*\(0x.*\)/\1/'
>
tmp
mv
tmp
$
COVERAGE_RESULTS_FILE
cp
$
EXE_ADDRESSES
$MANUAL_EXE_ADDRESS_OUTPUT_FILE
cp
$
COVERAGE_RESULTS_FILE
$MANUAL_EXE_ADDRESS_OUTPUT_FILE
exit
0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment