Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mockup-generator
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dosek-verification
mockup-generator
Commits
6d17926b
Commit
6d17926b
authored
8 years ago
by
Hans-Peter Deifel
Browse files
Options
Downloads
Patches
Plain Diff
Debug code to print saved IPs in mockup
parent
480ef558
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
files/mockup_prelude.cc
+8
-0
8 additions, 0 deletions
files/mockup_prelude.cc
src/CFG/C.hs
+1
-0
1 addition, 0 deletions
src/CFG/C.hs
src/Search/Search.hs
+1
-0
1 addition, 0 deletions
src/Search/Search.hs
with
10 additions
and
0 deletions
files/mockup_prelude.cc
+
8
−
0
View file @
6d17926b
...
...
@@ -8,6 +8,14 @@ extern const uint32_t _sdata_os_canonical, _edata_os_canonical;
extern
const
uint32_t
_sdata_arch_canonical
,
_edata_arch_canonical
;
}
namespace
arch
{
extern
void
*
OS_Idle_ip
;
extern
void
*
OS_ISR1_ip
;
extern
void
*
OS_H1_ip
;
extern
void
*
OS_H2_ip
;
extern
void
*
OS_H3_ip
;
}
// **********************************************************************
// Murmur3 implementation
//
...
...
This diff is collapsed.
Click to expand it.
src/CFG/C.hs
+
1
−
0
View file @
6d17926b
...
...
@@ -89,6 +89,7 @@ preIdleHook interrupts = do
return
$
"void PreIdleHook() {
\n
"
<>
"kout <<
\"
IPs:
\"
<< arch::OS_Idle_ip << ',' << arch::OS_ISR1_ip << ',' << arch::OS_H1_ip << ',' << arch::OS_H2_ip << ',' << arch::OS_H3_ip << endl;"
<>
" _print_os_state(
\"
PreIdleHook
\"
, __func__);
\n
"
<>
triggerCode
<>
" ShutdownMachine();
\n
"
...
...
This diff is collapsed.
Click to expand it.
src/Search/Search.hs
+
1
−
0
View file @
6d17926b
...
...
@@ -155,6 +155,7 @@ parseLine handle = do
(
"Decision"
:
num
:
_
)
->
return
$
Decision
(
read
$
T
.
unpack
num
)
[
"Function"
,
func
,
"before"
,
"syscall"
,
call
,
"in"
,
"state"
,
state
]
->
return
$
NewState
$
Vertex
state
(
Metadata
func
call
)
_
->
parseLine
handle
-- ignore unknown output
handleLine
::
Handle
->
IORef
State
->
IO
LineOut
handleLine
pstdin
state
=
parseLine
pstdin
>>=
\
case
...
...
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