projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: discard event/lost packet counters
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
ust-metadata.c
diff --git
a/src/bin/lttng-sessiond/ust-metadata.c
b/src/bin/lttng-sessiond/ust-metadata.c
index 328d6ea4c414d15699c6c3aa84fdc70eede3b8e4..fb1f1152180aad9d714831a9dfc70e1ec2f2a4ee 100644
(file)
--- a/
src/bin/lttng-sessiond/ust-metadata.c
+++ b/
src/bin/lttng-sessiond/ust-metadata.c
@@
-28,6
+28,7
@@
#include <unistd.h>
#include <inttypes.h>
#include <common/common.h>
#include <unistd.h>
#include <inttypes.h>
#include <common/common.h>
+#include <common/time.h>
#include "ust-registry.h"
#include "ust-clock.h"
#include "ust-registry.h"
#include "ust-clock.h"
@@
-37,7
+38,6
@@
#define max_t(type, a, b) ((type) ((a) > (b) ? (a) : (b)))
#endif
#define max_t(type, a, b) ((type) ((a) > (b) ? (a) : (b)))
#endif
-#define NSEC_PER_SEC 1000000000ULL
#define NR_CLOCK_OFFSET_SAMPLES 10
struct offset_sample {
#define NR_CLOCK_OFFSET_SAMPLES 10
struct offset_sample {
@@
-74,7
+74,6
@@
int fls(unsigned int x)
r -= 2;
}
if (!(x & 0x80000000U)) {
r -= 2;
}
if (!(x & 0x80000000U)) {
- x <<= 1;
r -= 1;
}
return r;
r -= 1;
}
return r;
@@
-305,7
+304,8
@@
int ust_metadata_enum_statedump(struct ust_registry_session *session,
goto end;
}
goto end;
}
- if (entry->u.options.is_auto) {
+ if (entry->u.extra.options &
+ USTCTL_UST_ENUM_ENTRY_OPTION_IS_AUTO) {
ret = lttng_metadata_printf(session, ",\n");
if (ret) {
goto end;
ret = lttng_metadata_printf(session, ",\n");
if (ret) {
goto end;
@@
-818,7
+818,7
@@
int measure_single_clock_offset(struct offset_sample *sample)
int ret;
monotonic[0] = trace_clock_read64();
int ret;
monotonic[0] = trace_clock_read64();
- ret = clock_gettime(CLOCK_REALTIME, &rts);
+ ret =
lttng_
clock_gettime(CLOCK_REALTIME, &rts);
if (ret < 0) {
return ret;
}
if (ret < 0) {
return ret;
}
This page took
0.02419 seconds
and
4
git commands to generate.