projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Always evaluate BT_ASSERT(); add BT_ASSERT_DBG() for debug mode only
[babeltrace.git]
/
src
/
lib
/
trace-ir
/
clock-snapshot.h
diff --git
a/src/lib/trace-ir/clock-snapshot.h
b/src/lib/trace-ir/clock-snapshot.h
index 5375f3ab333fec53af7d904d08c268f8511ee8b2..c4e7afd42447e020fbbb0329927904baa3f9ae87 100644
(file)
--- a/
src/lib/trace-ir/clock-snapshot.h
+++ b/
src/lib/trace-ir/clock-snapshot.h
@@
-23,7
+23,7
@@
* SOFTWARE.
*/
* SOFTWARE.
*/
-#include "common/
babeltrace
.h"
+#include "common/
macros
.h"
#include "lib/object.h"
#include <stdbool.h>
#include <stdint.h>
#include "lib/object.h"
#include <stdbool.h>
#include <stdint.h>
@@
-45,14
+45,14
@@
struct bt_clock_snapshot {
static inline
void bt_clock_snapshot_set(struct bt_clock_snapshot *clock_snapshot)
{
static inline
void bt_clock_snapshot_set(struct bt_clock_snapshot *clock_snapshot)
{
- BT_ASSERT(clock_snapshot);
+ BT_ASSERT
_DBG
(clock_snapshot);
clock_snapshot->is_set = true;
}
static inline
void bt_clock_snapshot_reset(struct bt_clock_snapshot *clock_snapshot)
{
clock_snapshot->is_set = true;
}
static inline
void bt_clock_snapshot_reset(struct bt_clock_snapshot *clock_snapshot)
{
- BT_ASSERT(clock_snapshot);
+ BT_ASSERT
_DBG
(clock_snapshot);
clock_snapshot->is_set = false;
}
clock_snapshot->is_set = false;
}
@@
-70,7
+70,7
@@
static inline
void bt_clock_snapshot_set_raw_value(struct bt_clock_snapshot *clock_snapshot,
uint64_t cycles)
{
void bt_clock_snapshot_set_raw_value(struct bt_clock_snapshot *clock_snapshot,
uint64_t cycles)
{
- BT_ASSERT(clock_snapshot);
+ BT_ASSERT
_DBG
(clock_snapshot);
clock_snapshot->value_cycles = cycles;
set_ns_from_origin(clock_snapshot);
bt_clock_snapshot_set(clock_snapshot);
clock_snapshot->value_cycles = cycles;
set_ns_from_origin(clock_snapshot);
bt_clock_snapshot_set(clock_snapshot);
This page took
0.023613 seconds
and
4
git commands to generate.