-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scripts: Add/Adapt batch scripts acc. refactoring
- Loading branch information
Christoph Weiss
committed
Jun 20, 2023
1 parent
3599d66
commit 1256541
Showing
2 changed files
with
135 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
#!/bin/bash | ||
|
||
function_array=( | ||
acos | ||
asin | ||
atan | ||
atan2 | ||
cos | ||
sin | ||
tan | ||
acosh | ||
atanh | ||
cosh | ||
sinh | ||
tanh | ||
exp | ||
exp2 | ||
expm1 | ||
frexp | ||
ilogb | ||
ldexp | ||
log | ||
log10 | ||
log1p | ||
log2 | ||
logb | ||
modf | ||
scalbn | ||
scalbln | ||
cbrt | ||
fabs | ||
hypot | ||
pow | ||
sqrt | ||
erf | ||
erfc | ||
lgamma | ||
tgamma | ||
ceil | ||
floor | ||
nearbyint | ||
rint | ||
lrint | ||
llrint | ||
round | ||
lround | ||
llround | ||
trunc | ||
fmod | ||
remainder | ||
remquo | ||
copysign | ||
nan | ||
nextafter | ||
fdim | ||
fmax | ||
fmin | ||
fma | ||
|
||
acosf | ||
asinf | ||
atanf | ||
atan2f | ||
cosf | ||
sinf | ||
tanf | ||
acoshf | ||
asinhf | ||
atanhf | ||
coshf | ||
sinhf | ||
tanhf | ||
expf | ||
exp2f | ||
expm1f | ||
frexpf | ||
ilogbf | ||
ldexpf | ||
logf | ||
log10f | ||
log1pf | ||
log2f | ||
logbf | ||
modff | ||
scalbnf | ||
scalblnf | ||
cbrtf | ||
fabsf | ||
hypotf | ||
powf | ||
sqrtf | ||
erff | ||
erfcf | ||
lgammaf | ||
tgammaf | ||
ceilf | ||
floorf | ||
nearbyintf | ||
rintf | ||
lrintf | ||
llrintf | ||
roundf | ||
lroundf | ||
llroundf | ||
truncf | ||
fmodf | ||
remainderf | ||
remquof | ||
copysignf | ||
nanf | ||
nextafterf | ||
fdimf | ||
fmaxf | ||
fminf | ||
fmaf | ||
) | ||
|
||
objdump=../rtems-6-sparc-gr740-smp-4/bin/sparc-rtems6-objdump | ||
application=../examples/gr740/smp/libmcs/b-gr740-qual-only/app.exe | ||
asm_folder=../qualification/asm | ||
pdf_folder=../qualification/pdf | ||
coverage_file=../coverage-tracer/ExecuteTestRun.csv | ||
|
||
mkdir -p $asm_folder | ||
mkdir -p $pdf_folder | ||
|
||
for i in ${function_array[@]} | ||
do | ||
$objdump -d $application | sed -ne '/<'$i'>:/,/^$/p' > $asm_folder/$i.asm | ||
./asm2cfg -c $coverage_file --preset 'sparc OBJDUMP' $asm_folder/$i.asm | ||
done | ||
|
||
mv *.pdf $pdf_folder/ | ||
rm -f *.gv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters