Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
German Leon
Carol-fi
Commits
a04c78af
Commit
a04c78af
authored
Dec 22, 2020
by
German Leon
Browse files
Retoques en los resultados
parent
27bf99f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
classes/BitFlip.py
View file @
a04c78af
...
...
@@ -82,11 +82,11 @@ class BitFlip:
#Almaceno en un dictionario los valores de los registros
regs
=
{}
for
x
in
valores
:
print
(
x
)
#
print(x)
m
=
re
.
match
(
r
".*R(\d+).*0x([0-9a-fA-F]+).*"
,
x
)
if
m
:
regs
[
m
.
group
(
1
)]
=
m
.
group
(
2
)
print
(
str
(
m
.
group
(
1
))
+
":= "
+
str
(
m
.
group
(
2
)))
#
print (str(m.group(1))+":= "+str(m.group(2)))
#print(regs)
#print ("========DR")
return
regs
...
...
fault_injector.py
View file @
a04c78af
...
...
@@ -223,28 +223,26 @@ def check_sdcs_and_app_crash(logging, sdc_check_script, inj_output_path, inj_err
with
open
(
diff_log_path
,
'r'
)
as
fi
:
out_lines
=
fi
.
readlines
()
if
len
(
out_lines
)
!=
0
:
# Check if NVIDIA signals on output
for
line
in
out_lines
:
if
'PASS'
in
line
:
print
(
"PASS=="
+
line
+
"===="
)
is_masked
=
True
break
if
'FAIL'
in
line
:
print
(
"FAIL=="
+
line
+
"===="
)
is_sdc
=
True
break
for
carol_fi_signal
in
cp
.
SIGNALS
:
for
carol_fi_signal
in
cp
.
SIGNALS
:
for
line
in
out_lines
:
if
carol_fi_signal
in
line
:
print
(
"FAIL=="
+
line
+
"===="
)
#
print("FAIL=="+line+"====")
is_app_crash
[
0
]
=
True
if
len
(
is_app_crash
)
==
1
:
is_app_crash
.
append
(
carol_fi_signal
)
else
:
is_app_crash
[
1
]
=
is_app_crash
[
1
]
+
" "
+
carol_fi_signal
break
if
(
len
(
is_app_crash
)
>
0
):
# Check if NVIDIA signals on output
is_masked
=
True
for
line
in
out_lines
:
if
'FAIL'
in
line
:
#print("FAIL=="+line+"====")
is_sdc
=
True
is_masked
=
False
break
# if is_app_crash[0]:
# break
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment