Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Marco Perronet
rbf-trace
Commits
af1fac2d
Commit
af1fac2d
authored
Oct 25, 2021
by
Marco Perronet
Browse files
Add debug prints for raw trace
parent
e89195fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/events_generation/ftrace.rs
View file @
af1fac2d
...
...
@@ -162,7 +162,18 @@ impl FTraceEVG {
fn
read_stream_parse
(
&
mut
self
)
->
Option
<
TraceEvent
>
{
if
let
Some
(
raw_event
)
=
wrappers
::
read_stream_raw
(
self
.recorders
,
self
.cpu_cnt
)
{
return
Some
(
self
.event_from_raw
(
&
raw_event
));
let
trace_event
=
Some
(
self
.event_from_raw
(
&
raw_event
));
/* Debug */
if
crate
::
params
::
dump_raw_trace
()
{
println!
(
"{:#?}"
,
raw_event
);
}
if
crate
::
params
::
dump_raw_trace_w_type
()
&&
self
.target_pids
.contains
(
&
trace_event
.unwrap
()
.pid
)
{
let
event
=
trace_event
.unwrap
();
println!
(
"*** {} - {} ***
\n
{:#?}"
,
event
.etype
.short_name
(),
event
.pid
,
raw_event
);
}
return
trace_event
;
}
None
...
...
src/params.rs
View file @
af1fac2d
...
...
@@ -7,7 +7,7 @@ use crate::events_processing::invocation_cycle::IcHeuristic;
/* Debug */
pub
static
mut
DUMP_RAW_TRACE
:
bool
=
false
;
pub
static
mut
DUMP_RAW_TRACE_W_TYPE
:
bool
=
false
;
pub
static
mut
DUMP_RAW_TRACE_W_TYPE
:
bool
=
true
;
// TODO TURN ME OFF
pub
static
mut
LOGGER_EVENT_SEQ
:
bool
=
false
;
// Record the current run
pub
static
mut
LOGGER_REPLAY
:
bool
=
true
;
// Only turn this off when measuring performance!
...
...
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