Skip to content

Commit a37f0ad

Browse files
committed
fix tracing on 32-bit machines
1 parent 45614c8 commit a37f0ad

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

include/reactor-cpp/trace.hh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,30 +45,30 @@ TRACEPOINT_EVENT(
4545
reactor_cpp, reaction_execution_starts,
4646
TP_ARGS(int, worker_id_arg, const std::string&, reaction_name_arg, const reactor::LogicalTime&, tag_arg),
4747
TP_FIELDS(ctf_string(reaction_name, reaction_name_arg.c_str()) ctf_integer(int, worker_id, worker_id_arg)
48-
ctf_integer(unsigned long, timestamp_ns, tag_arg.time_point().time_since_epoch().count())
49-
ctf_integer(unsigned, timestamp_microstep, tag_arg.micro_step())))
48+
ctf_integer(unsigned long long, timestamp_ns, tag_arg.time_point().time_since_epoch().count())
49+
ctf_integer(unsigned long, timestamp_microstep, tag_arg.micro_step())))
5050

5151
TRACEPOINT_EVENT(
5252
reactor_cpp, reaction_execution_finishes,
5353
TP_ARGS(int, worker_id_arg, const std::string&, reaction_name_arg, const reactor::LogicalTime&, tag_arg),
5454
TP_FIELDS(ctf_string(reaction_name, reaction_name_arg.c_str()) ctf_integer(int, worker_id, worker_id_arg)
55-
ctf_integer(unsigned long, timestamp_ns, tag_arg.time_point().time_since_epoch().count())
56-
ctf_integer(unsigned, timestamp_microstep, tag_arg.micro_step())))
55+
ctf_integer(unsigned long long, timestamp_ns, tag_arg.time_point().time_since_epoch().count())
56+
ctf_integer(unsigned long, timestamp_microstep, tag_arg.micro_step())))
5757

5858
TRACEPOINT_EVENT(
5959
reactor_cpp, schedule_action,
6060
TP_ARGS(const std::string&, reactor_name_arg, const std::string&, action_name_arg, const reactor::Tag&, tag_arg),
6161
TP_FIELDS(ctf_string(reactor_name, reactor_name_arg.c_str()) ctf_string(action_name, action_name_arg.c_str())
62-
ctf_integer(unsigned long, timestamp_ns, tag_arg.time_point().time_since_epoch().count())
63-
ctf_integer(unsigned, timestamp_microstep, tag_arg.micro_step())))
62+
ctf_integer(unsigned long long, timestamp_ns, tag_arg.time_point().time_since_epoch().count())
63+
ctf_integer(unsigned long, timestamp_microstep, tag_arg.micro_step())))
6464

6565
TRACEPOINT_EVENT(reactor_cpp, trigger_reaction,
6666
TP_ARGS(const std::string&, reactor_name_arg, const std::string&, reaction_name_arg,
6767
const reactor::LogicalTime&, tag_arg),
6868
TP_FIELDS(ctf_string(reactor_name, reactor_name_arg.c_str()) ctf_string(reaction_name,
6969
reaction_name_arg.c_str())
70-
ctf_integer(unsigned long, timestamp_ns, tag_arg.time_point().time_since_epoch().count())
71-
ctf_integer(unsigned, timestamp_microstep, tag_arg.micro_step())))
70+
ctf_integer(unsigned long long, timestamp_ns, tag_arg.time_point().time_since_epoch().count())
71+
ctf_integer(unsigned long, timestamp_microstep, tag_arg.micro_step())))
7272

7373
#endif /* REACTOR_CPP_TRACE_HH */
7474

0 commit comments

Comments
 (0)