Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
pub
frama-c
Commits
24f9d294
Commit
24f9d294
authored
5 years ago
by
Andre Maroneze
Committed by
Andre Maroneze
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[analysis-scripts] remove obsolete slevel tweaker
parent
82ccc1c0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
share/analysis-scripts/analysis.mk
+0
-2
0 additions, 2 deletions
share/analysis-scripts/analysis.mk
share/analysis-scripts/slevel-tweaker.sh
+0
-118
0 additions, 118 deletions
share/analysis-scripts/slevel-tweaker.sh
with
0 additions
and
120 deletions
share/analysis-scripts/analysis.mk
+
0
−
2
View file @
24f9d294
...
...
@@ -119,7 +119,6 @@ EVAFLAGS ?= \
-no-deps-print
-no-calldeps-print
\
-eva-warn-key
garbled-mix
\
-memexec-all
-calldeps
-permissive
-from-verbose
0
\
$(
SLEVEL
)
\
$(
if
$(
EVABUILTINS
)
,
-eva-builtin
=
$(
call fc_list,
$(
EVABUILTINS
))
,
)
\
$(
if
$(
EVAUSESPECS
)
,
-eva-use-spec
$(
call fc_list,
$(
EVAUSESPECS
))
,
)
FCFLAGS
?=
...
...
@@ -181,7 +180,6 @@ SHELL := /bin/bash
mv
$@
/{running,command}
touch
$@
# Update timestamp and prevents remake if nothing changes
%.slevel.eva
:
SLEVEL = -slevel $(word 2
,
$(subst .
,
,
$*))
%.eva
:
EVA = $(FRAMAC) $(FCFLAGS) -eva $(EVAFLAGS)
%.eva
:
PARSE_RESULT = $(word 1
,
$(subst .
,
,
$*)).parse
%.eva
:
$$(PARSE_RESULT) $$(shell $(DIR)cmd-dep.sh $$@/command $$(EVA)) $(if $(BENCHMARK)
,
.FORCE
,
)
...
...
This diff is collapsed.
Click to expand it.
share/analysis-scripts/slevel-tweaker.sh
deleted
100755 → 0
+
0
−
118
View file @
82ccc1c0
#!/bin/bash -u
declare
-A
alarms
declare
-A
utimes
function
print_results
()
{
local
s
local
t
if
[
-z
"
$quiet
"
]
then
echo
-e
'\e\0143'
printf
"%24s"
'file / slevel'
for
s
in
$slevels
do
printf
"%8s"
$s
done
printf
"
\n
"
for
t
in
$targets
do
printf
"
\n
"
printf
"%18s%6s"
$t
'#alrm'
for
s
in
$slevels
do
printf
"%8s"
${
alarms
[
"
$t
,
$s
"
]-
}
done
printf
"
\n
"
printf
"%18s%6s"
''
'time'
for
s
in
$slevels
do
printf
"%8s"
${
utimes
[
"
$t
,
$s
"
]-
}
done
printf
"
\n
"
done
printf
"
\n
"
fi
}
function
poll_results
()
{
for
s
in
$slevels
do
for
t
in
$targets
do
base
=
$t
.
$s
.slevel.eva
if
[
-f
$base
/stats.txt
]
then
read
alarms[
"
$t
,
$s
"
]
utimes[
"
$t
,
$s
"
]
<<<
$(
source
$base
/stats.txt
echo
${
alarms
:-
x
}
${
user_time
:-
}
)
fi
done
done
}
# Parse command Line
slevels
=
"0 10 20 50 100 200 500 1000 2000 5000 10000 20000 50000"
run
=
"make --jobs 9"
targets
=
""
quiet
=
""
while
[[
$#
>
0
]]
do
case
$1
in
-f
|
--file
|
--makefile
)
run
=
"
$run
$1
$2
"
shift
;;
-B
|
--always-make
)
run
=
"
$run
$1
"
;;
-q
|
--quiet
)
quiet
=
"yes"
;;
*
)
targets
=
"
$targets
$1
"
;;
esac
shift
done
# List make targets
for
s
in
$slevels
do
for
t
in
$targets
do
run
=
"
$run
$t
.
$s
.slevel.eva"
done
done
# Run and display
{
$run
>
/dev/null &
pid
=
$!
print_results
while
ps
-p
$pid
>
/dev/null
do
sleep
1
poll_results
print_results
done
}
2> slevel-tweaker.log
cat
slevel-tweaker.log
>
&2
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