The generated makefile was ignoring POPT_CFLAGS when compiling
lttng, but was adding POPT_LIBS to lttng_LDADD. With this commit,
make now honors both settings for applications and tests.
Fixes: #1165
Signed-off-by: Yannick Lamarre
---
src/bin/lttng/Makefile.am | 2 ++
tests
Generated makefiles would ignore DL_LIBS value selected by configure
script and use the hard coded value -ldl. Generated makefiles will
now use DL_LIBS.
Refs: #1165
Signed-off-by: Yannick Lamarre
---
src/common/testpoint/Makefile.am | 2 +-
tests/regression/ust/baddr
Signed-off-by: Yannick Lamarre
---
src/common/compat/poll.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/common/compat/poll.h b/src/common/compat/poll.h
index d4bd87f5..ad5bca21 100644
--- a/src/common/compat/poll.h
+++ b/src/common/compat/poll.h
@@ -177,7 +177,7
lttng_poll_mod should call compat_(e)poll_mod.
Signed-off-by: Yannick Lamarre
---
src/common/compat/poll.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/common/compat/poll.h b/src/common/compat/poll.h
index d4bd87f5..fde54ddb 100644
--- a/src/common/compat/poll.h
Signed-off-by: Yannick Lamarre
---
src/common/compat/poll.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/compat/poll.h b/src/common/compat/poll.h
index fde54ddb..ad5bca21 100644
--- a/src/common/compat/poll.h
+++ b/src/common/compat/poll.h
@@ -356,7 +356,7
Forget about this patch, here is v2 [1].
[1] https://lists.lttng.org/pipermail/lttng-dev/2019-February/028528.html
- Original Message -
From: "Yannick Lamarre"
To: lttng-dev@lists.lttng.org
Cc: jga...@efficios.com
Sent: Friday, February 15, 2019 4:14:23 PM
Subject: [lttng-d
The generated makefile was ignoring POPT_CFLAGS when compiling
lttng, but was adding POPT_LIBS to lttng_LDADD. With this commit,
make now honors both settings for applications and tests.
Refs: #1165
Signed-off-by: Yannick Lamarre
---
src/bin/lttng/Makefile.am | 2 ++
tests
Generated makefiles would ignore DL_LIBS value selected by configure
script and use the hard coded value -ldl. Generated makefiles will
now use DL_LIBS.
Refs: #1165
Signed-off-by: Yannick Lamarre
---
src/common/testpoint/Makefile.am | 2 +-
tests/regression/ust/baddr
Generated makefiles would ignore DL_LIBS value selected by configure
script and use the hard coded value -ldl. Generated makefiles will
now use DL_LIBS.
Refs: #1165
Signed-off-by: Yannick Lamarre
---
src/common/testpoint/Makefile.am | 2 +-
tests/regression/ust/baddr
The generated makefile was ignoring POPT_CFLAGS when compiling
lttng, but was adding POPT_LIBS to lttng_LDADD. With this commit,
make now honors both settings for applications and tests.
Fixes: #1165
Signed-off-by: Yannick Lamarre
---
src/bin/lttng/Makefile.am | 2 ++
tests
The generated makefile was ignoring POPT_CFLAGS when compiling
lttng, but was adding POPT_LIBS to lttng_LDADD. With this commit,
make now honors both settings for applications and tests.
Fixes: #1165
Signed-off-by: Yannick Lamarre
---
src/bin/lttng/Makefile.am | 2 ++
tests
Generated makefiles would ignore DL_LIBS value selected by configure
script and use the hard coded value -ldl. Generated makefiles will
now use DL_LIBS.
Refs: #1165
Signed-off-by: Yannick Lamarre
---
src/common/testpoint/Makefile.am | 2 +-
tests/regression/ust/baddr
lttng_poll_mod should call compat_(e)poll_mod.
Signed-off-by: Yannick Lamarre
---
src/common/compat/poll.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/common/compat/poll.h b/src/common/compat/poll.h
index d4bd87f5..fde54ddb 100644
--- a/src/common/compat/poll.h
This patch set fixes previously unreported bug in the poll/epoll compatibility
layer. It adds a unit test to the same compatibility layer and a few behaviour
changes to the poll flavor to match the epoll flavor.
Yannick Lamarre (8):
Fix: lttng_poll_mod calls compat_(e)poll_add
Add Unit test
: Yannick Lamarre
---
src/common/compat/poll.h | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/common/compat/poll.h b/src/common/compat/poll.h
index fde54ddb..7dd8741b 100644
--- a/src/common/compat/poll.h
+++ b/src/common/compat/poll.h
@@ -315,10 +315,14 @@ static inline
The poll flavor of the lttng_poll api requires the caller to verify
which of the fd has really waken the thread from wait. This
verification was missing and a blocking read was made on an empty fd.
Signed-off-by: Yannick Lamarre
---
src/bin/lttng-sessiond/rotation-thread.c | 4
1 file
Signed-off-by: Yannick Lamarre
---
.gitignore | 1 +
tests/unit/Makefile.am | 9 +-
tests/unit/test_utils_compat_poll.c | 246
3 files changed, 255 insertions(+), 1 deletion(-)
create mode 100644 tests/unit
Signed-off-by: Yannick Lamarre
---
src/common/compat/poll.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/compat/poll.h b/src/common/compat/poll.h
index a8a08d9e..4272374c 100644
--- a/src/common/compat/poll.h
+++ b/src/common/compat/poll.h
@@ -361,7 +361,7
Signed-off-by: Yannick Lamarre
---
src/common/compat/compat-poll.c | 28 ++--
src/common/compat/poll.h| 1 +
2 files changed, 19 insertions(+), 10 deletions(-)
diff --git a/src/common/compat/compat-poll.c b/src/common/compat/compat-poll.c
index b45b39dc
This removes the need to verify for eventless file descriptors and
mitigates risks of bug due to behaviour mismatch.
Signed-off-by: Yannick Lamarre
---
src/common/compat/compat-poll.c | 26 +++---
1 file changed, 23 insertions(+), 3 deletions(-)
diff --git a/src/common
Removed redundant verification for file descriptors with 0 revents in
code code base now that lttng_poll_wait presents the FDs à la epoll.
Signed-off-by: Yannick Lamarre
---
src/bin/lttng-consumerd/health-consumerd.c | 5 -
src/bin/lttng-relayd/health-relayd.c | 5 -
src/bin
Except for a single case where the compared string is not ended with
'\0', strncmp was replaced by strcmp in cases where a full string match
was required. The exception was fixed with a length comparison prior
the strncmp call.
Fixes: #987
Signed-off-by: Yannick Lamarre
---
src
Test cases now covers options that require full string matches which
were previously missing.
Signed-off-by: Yannick Lamarre
---
tests/regression/kernel/test_channel | 24 ++-
.../regression/tools/snapshots/test_ust_streaming | 46 +-
tests/regression
lttng_poll_mod should call compat_(e)poll_mod.
Signed-off-by: Yannick Lamarre
---
src/common/compat/poll.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/common/compat/poll.h b/src/common/compat/poll.h
index d4bd87f5..fde54ddb 100644
--- a/src/common/compat/poll.h
Signed-off-by: Yannick Lamarre
---
src/common/compat/compat-poll.c | 28 ++--
src/common/compat/poll.h| 1 +
2 files changed, 19 insertions(+), 10 deletions(-)
diff --git a/src/common/compat/compat-poll.c b/src/common/compat/compat-poll.c
index b45b39dc
Add missing verification to prevent a blocking read on an empty fd.
Signed-off-by: Yannick Lamarre
---
src/bin/lttng-sessiond/rotation-thread.c | 4
1 file changed, 4 insertions(+)
diff --git a/src/bin/lttng-sessiond/rotation-thread.c
b/src/bin/lttng-sessiond/rotation-thread.c
index
This removes the need to verify for eventless file descriptors and
mitigates risks of bug due to behaviour mismatch.
Signed-off-by: Yannick Lamarre
---
src/common/compat/compat-poll.c | 33 ++---
1 file changed, 30 insertions(+), 3 deletions(-)
diff --git a/src
Signed-off-by: Yannick Lamarre
---
src/common/compat/poll.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/compat/poll.h b/src/common/compat/poll.h
index d2826b7a..c7bd0606 100644
--- a/src/common/compat/poll.h
+++ b/src/common/compat/poll.h
@@ -359,7 +359,7
Signed-off-by: Yannick Lamarre
---
.gitignore | 1 +
tests/unit/Makefile.am | 9 +-
tests/unit/test_utils_compat_poll.c | 236
3 files changed, 245 insertions(+), 1 deletion(-)
create mode 100644 tests/unit
implementations.
Signed-off-by: Yannick Lamarre
---
src/common/compat/poll.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/common/compat/poll.h b/src/common/compat/poll.h
index fde54ddb..5eb7ff9c 100644
--- a/src/common/compat/poll.h
+++ b/src/common/compat/poll.h
Remove redundant verification for file descriptors with 0 revents in
code base.
Signed-off-by: Yannick Lamarre
---
src/bin/lttng-consumerd/health-consumerd.c | 5 -
src/bin/lttng-relayd/health-relayd.c | 5 -
src/bin/lttng-relayd/live.c | 10 --
src
lttng_poll_mod should call compat_(e)poll_mod.
Signed-off-by: Yannick Lamarre
---
src/common/compat/poll.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/common/compat/poll.h b/src/common/compat/poll.h
index d4bd87f5..fde54ddb 100644
--- a/src/common/compat/poll.h
Add missing verification to prevent a blocking read on an empty fd.
Signed-off-by: Yannick Lamarre
---
src/bin/lttng-sessiond/rotation-thread.c | 4
1 file changed, 4 insertions(+)
diff --git a/src/bin/lttng-sessiond/rotation-thread.c
b/src/bin/lttng-sessiond/rotation-thread.c
index
Signed-off-by: Yannick Lamarre
---
.gitignore | 1 +
tests/unit/Makefile.am | 9 +-
tests/unit/test_utils_compat_poll.c | 236
3 files changed, 245 insertions(+), 1 deletion(-)
create mode 100644 tests/unit
Remove redundant verification for file descriptors with 0 revents in
code base.
Signed-off-by: Yannick Lamarre
---
src/bin/lttng-consumerd/health-consumerd.c | 5 -
src/bin/lttng-relayd/health-relayd.c | 5 -
src/bin/lttng-relayd/live.c | 10 --
src
implementations.
Signed-off-by: Yannick Lamarre
---
src/common/compat/poll.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/common/compat/poll.h b/src/common/compat/poll.h
index fde54ddb..5eb7ff9c 100644
--- a/src/common/compat/poll.h
+++ b/src/common/compat/poll.h
This removes the need to verify for idle file descriptors and mitigates
risks of bug due to behaviour mismatch.
Signed-off-by: Yannick Lamarre
---
src/common/compat/compat-poll.c | 39 +++
1 file changed, 35 insertions(+), 4 deletions(-)
diff --git a/src
Signed-off-by: Yannick Lamarre
---
src/common/compat/compat-poll.c | 30 --
1 file changed, 20 insertions(+), 10 deletions(-)
diff --git a/src/common/compat/compat-poll.c b/src/common/compat/compat-poll.c
index b45b39dc..be655728 100644
--- a/src/common/compat/compat
Signed-off-by: Yannick Lamarre
---
src/common/compat/poll.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/compat/poll.h b/src/common/compat/poll.h
index 5eb7ff9c..d7020f36 100644
--- a/src/common/compat/poll.h
+++ b/src/common/compat/poll.h
@@ -358,7 +358,7
Alright, I'll remove the assert for v4.
- Original Message -
From: "Mathieu Desnoyers"
To: "Jeremie Galarneau"
Cc: "Yannick Lamarre" , "lttng-dev"
, "jgalar"
Sent: Monday, March 25, 2019 11:56:11 AM
Subject: Re: [lttng-dev] [PAT
The lttng client uses the sizeof the containing buffer for input string
sanitation instead of libc defined macro.
Signed-off-by: Yannick Lamarre
---
lttng-enable_channel was improperly verifying user input and wrongly rejected
valid input.
src/bin/lttng/commands/enable_channels.c | 2 +-
1
containing buffer for the channel's name.
This patch also fixes potential buffer overflow caused by an improperly
bounded strcpy in the case where NAME_MAX would have been greater than
LTTNG_SYMBOL_NAME_LEN.
Signed-off-by: Yannick Lamarre
---
src/bin/lttng/commands/enable_channels.c | 2 +-
1
Hi TSK,
>From [1]:
You must provide the following items for the bug to be reproducible:
* Component(s) involved : [ https://bugs.lttng.org/projects/lttng-tools |
LTTng-tools ] , [ https://bugs.lttng.org/projects/lttng-ust | LTTng-UST ] , [
https://bugs.lttng.org/projects/lttng-modules |
Signed-off-by: Yannick Lamarre
---
src/lib/lttng-ctl/lttng-ctl.c | 12 +---
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/src/lib/lttng-ctl/lttng-ctl.c b/src/lib/lttng-ctl/lttng-ctl.c
index 165fef4d..92634c00 100644
--- a/src/lib/lttng-ctl/lttng-ctl.c
+++ b/src/lib/lttng
implementations.
Signed-off-by: Yannick Lamarre
---
src/common/compat/poll.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/common/compat/poll.h b/src/common/compat/poll.h
index fde54ddb..5eb7ff9c 100644
--- a/src/common/compat/poll.h
+++ b/src/common/compat/poll.h
The v4 patch set addresses all comments on v3 by removing the assert in
compat_poll_wait.
Yannick Lamarre (8):
Fix: lttng_poll_mod calls compat_(e)poll_add
Add Unit test to poll compatibility layer
Change LTTNG_POLL_GETNB behaviour for poll flavor
Adapt poll layer behaviour to match the
Signed-off-by: Yannick Lamarre
---
.gitignore | 1 +
tests/unit/Makefile.am | 9 +-
tests/unit/test_utils_compat_poll.c | 236
3 files changed, 245 insertions(+), 1 deletion(-)
create mode 100644 tests/unit
Signed-off-by: Yannick Lamarre
---
src/common/compat/poll.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/compat/poll.h b/src/common/compat/poll.h
index 5eb7ff9c..d7020f36 100644
--- a/src/common/compat/poll.h
+++ b/src/common/compat/poll.h
@@ -358,7 +358,7
Add missing verification to prevent a blocking read on an empty fd.
Signed-off-by: Yannick Lamarre
---
src/bin/lttng-sessiond/rotation-thread.c | 4
1 file changed, 4 insertions(+)
diff --git a/src/bin/lttng-sessiond/rotation-thread.c
b/src/bin/lttng-sessiond/rotation-thread.c
index
Remove redundant verification for file descriptors with 0 revents in
code base.
Signed-off-by: Yannick Lamarre
---
src/bin/lttng-consumerd/health-consumerd.c | 5 -
src/bin/lttng-relayd/health-relayd.c | 5 -
src/bin/lttng-relayd/live.c | 10 --
src
lttng_poll_mod should call compat_(e)poll_mod.
Signed-off-by: Yannick Lamarre
---
src/common/compat/poll.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/common/compat/poll.h b/src/common/compat/poll.h
index d4bd87f5..fde54ddb 100644
--- a/src/common/compat/poll.h
This removes the need to verify for idle file descriptors and mitigates
risks of bug due to behaviour mismatch.
Signed-off-by: Yannick Lamarre
---
The assert in the for loop is removed.
src/common/compat/compat-poll.c | 37 +
1 file changed, 33 insertions
Signed-off-by: Yannick Lamarre
---
src/common/compat/compat-poll.c | 30 --
1 file changed, 20 insertions(+), 10 deletions(-)
diff --git a/src/common/compat/compat-poll.c b/src/common/compat/compat-poll.c
index b45b39dc..be655728 100644
--- a/src/common/compat/compat
Hi Ryan
While this function "exists" in 2.11, it's part of the internal librairy and
shouldn't be used. lttng_enable_channel does exactly what you want and is part
of the exposed API both in 2.9n and 2.11.
Regards,
YL
From: "CaptainWonka ."
To: "lttng-dev"
Sent: Friday, April 5, 2019 11
rémie Galarneau (1):
Fix: Use platform-independant types in sessiond to consumerd
communication
Yannick Lamarre (17):
Clean-up: Switch enum fields in lttcomm_consumer_msg
Clean-up: Switch enum fields in lttcomm_consumer_status_msg
Clean-up: Switch enum fields in lttcomm_consumer_status_ch
off-by: Jérémie Galarneau
Signed-off-by: Yannick Lamarre
---
src/bin/lttng-sessiond/consumer.c| 5 +-
src/common/kernel-consumer/kernel-consumer.c | 11 +-
src/common/sessiond-comm/sessiond-comm.c | 186 +++
src/common/sessiond-comm/sessiond-comm.h | 111 +
Signed-off-by: Yannick Lamarre
---
src/common/sessiond-comm/sessiond-comm.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/common/sessiond-comm/sessiond-comm.h
b/src/common/sessiond-comm/sessiond-comm.h
index 556c277f..43a57736 100644
--- a/src/common/sessiond-comm
Signed-off-by: Yannick Lamarre
---
src/common/sessiond-comm/sessiond-comm.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/sessiond-comm/sessiond-comm.h
b/src/common/sessiond-comm/sessiond-comm.h
index 43a57736..1324f0b3 100644
--- a/src/common/sessiond-comm
lttng-ctl and lttng-sessiond use serialized communication for
messages using lttng_channel.
Signed-off-by: Yannick Lamarre
---
src/bin/lttng-sessiond/client.c | 9 ++---
src/common/sessiond-comm/sessiond-comm.h | 4 ++--
src/lib/lttng-ctl/lttng-ctl.c| 24
supporting
variable sized registers (x86-64).
Padding is also removed since it defeats the purpose of a packed struct.
Signed-off-by: Yannick Lamarre
---
include/lttng/event-internal.h | 11 +++
1 file changed, 11 insertions(+)
diff --git a/include/lttng/event-internal.h b/include/lttng
Signed-off-by: Yannick Lamarre
---
src/common/sessiond-comm/sessiond-comm.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/sessiond-comm/sessiond-comm.h
b/src/common/sessiond-comm/sessiond-comm.h
index 1324f0b3..92cab8e6 100644
--- a/src/common/sessiond-comm
Since those structs are only transfered across unix sockets, endianess
is kept in host order.
Signed-off-by: Yannick Lamarre
---
src/common/sessiond-comm/sessiond-comm.c | 42
src/common/sessiond-comm/sessiond-comm.h | 1 +
2 files changed, 43 insertions
lttng-ctl and lttng-sessiond use serialized communication for
messages using lttng_event_context.
Signed-off-by: Yannick Lamarre
---
include/lttng/event-internal.h | 4
src/bin/lttng-sessiond/client.c | 16 +---
src/common/sessiond-comm/sessiond-comm.h | 2
on platforms supporting
variable sized registers (x86-64).
Padding is also removed since it defeats the purpose of a packed struct.
Signed-off-by: Yannick Lamarre
---
include/lttng/event-internal.h | 38 ++
1 file changed, 38 insertions(+)
diff --git a/include
Since those structs are only transfered across unix sockets, endianess
is kept in host order.
Signed-off-by: Yannick Lamarre
---
include/lttng/event-internal.h | 6 ++
src/common/sessiond-comm/sessiond-comm.c | 116 +++
2 files changed, 122 insertions
lttng-ctl and lttng-sessiond use serialized communication for
messages using lttng_event.
Signed-off-by: Yannick Lamarre
---
src/bin/lttng-sessiond/client.c | 23 ---
src/common/sessiond-comm/sessiond-comm.h | 4 ++--
src/lib/lttng-ctl/lttng-ctl.c| 14
Since those structs are only transfered across unix sockets, endianess
is kept in host order.
Signed-off-by: Yannick Lamarre
---
include/lttng/snapshot-internal.h| 3 +++
src/common/sessiond-comm/sessiond-comm.c | 28
2 files changed, 31 insertions(+)
diff
(x86-64).
Padding is also removed since it defeats the purpose of a packed struct.
Signed-off-by: Yannick Lamarre
---
include/lttng/snapshot-internal.h | 8
1 file changed, 8 insertions(+)
diff --git a/include/lttng/snapshot-internal.h
b/include/lttng/snapshot-internal.h
index
Signed-off-by: Yannick Lamarre
---
src/common/sessiond-comm/sessiond-comm.h | 15 ---
1 file changed, 15 deletions(-)
diff --git a/src/common/sessiond-comm/sessiond-comm.h
b/src/common/sessiond-comm/sessiond-comm.h
index 92cab8e6..eb5d8ecb 100644
--- a/src/common/sessiond-comm
lttng-ctl and lttng-sessiond use serialized communication for
messages using lttng_snapshot_out.
Signed-off-by: Yannick Lamarre
---
src/bin/lttng-sessiond/client.c | 27 ++-
src/common/sessiond-comm/sessiond-comm.h | 4 ++--
src/lib/lttng-ctl/snapshot.c
The command using this command was dropped in 2.9, but the field was
left in the union.
Signed-off-by: Yannick Lamarre
---
src/common/sessiond-comm/sessiond-comm.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/common/sessiond-comm/sessiond-comm.h
b/src/common/sessiond-comm/sessiond
Since those structs are only transfered across unix sockets, endianess
is kept in host order.
Signed-off-by: Yannick Lamarre
---
include/lttng/channel-internal.h | 5 ++
src/common/sessiond-comm/sessiond-comm.c | 105 +++
2 files changed, 110 insertions
variable sized registers (x86-64).
Padding is also removed since it defeats the purpose of a packed struct.
Signed-off-by: Yannick Lamarre
---
include/lttng/channel-internal.h | 30 ++
1 file changed, 30 insertions(+)
diff --git a/include/lttng/channel-internal.h b
lttng_poll_mod should call compat_(e)poll_mod.
Signed-off-by: Yannick Lamarre
---
src/common/compat/poll.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/common/compat/poll.h b/src/common/compat/poll.h
index d4bd87f5..fde54ddb 100644
--- a/src/common/compat/poll.h
This revision adresses issues raised on v4. Changes between versions are
listed in there own patch.
Yannick Lamarre (8):
Fix: lttng_poll_mod calls compat_(e)poll_add
Add Unit test to poll compatibility layer
Change LTTNG_POLL_GETNB behaviour for poll flavor
Adapt poll layer behaviour to
Signed-off-by: Yannick Lamarre
---
File uses space indentation instead.
Added space between operator and operand (for typecasting).
Empty line in variables declaration removed.
Replaced reset by init for lttng_poll_init test.
Removed empty line at the end of function.
.gitignore
Add missing verification to prevent a blocking read on an empty fd.
Signed-off-by: Yannick Lamarre
---
src/bin/lttng-sessiond/rotation-thread.c | 4
1 file changed, 4 insertions(+)
diff --git a/src/bin/lttng-sessiond/rotation-thread.c
b/src/bin/lttng-sessiond/rotation-thread.c
index
Signed-off-by: Yannick Lamarre
---
Removed trailing trailing whitespace in comments.
src/common/compat/compat-poll.c | 30 --
1 file changed, 20 insertions(+), 10 deletions(-)
diff --git a/src/common/compat/compat-poll.c b/src/common/compat/compat-poll.c
index
implementations.
Signed-off-by: Yannick Lamarre
---
src/common/compat/poll.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/common/compat/poll.h b/src/common/compat/poll.h
index fde54ddb..5eb7ff9c 100644
--- a/src/common/compat/poll.h
+++ b/src/common/compat/poll.h
This removes the need to verify for idle file descriptors and mitigates
risks of bug due to behaviour mismatch.
Signed-off-by: Yannick Lamarre
---
Iterator declaration moved to the begining of function.
src/common/compat/compat-poll.c | 38 ++
1 file changed
Remove redundant verification for file descriptors with 0 revents in
code base.
Signed-off-by: Yannick Lamarre
---
src/bin/lttng-consumerd/health-consumerd.c | 5 -
src/bin/lttng-relayd/health-relayd.c | 5 -
src/bin/lttng-relayd/live.c | 10 --
src
Signed-off-by: Yannick Lamarre
---
src/common/compat/poll.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/compat/poll.h b/src/common/compat/poll.h
index 5eb7ff9c..d7020f36 100644
--- a/src/common/compat/poll.h
+++ b/src/common/compat/poll.h
@@ -358,7 +358,7
>From v5, fixed compilation problem in unit test and changed the title of some
commits.
Yannick Lamarre (8):
Fix: lttng_poll_mod calls compat_(e)poll_add
Add Unit test to poll compatibility layer
Change LTTNG_POLL_GETNB behaviour for poll flavor
Adapt poll layer behaviour to match
implementations.
Signed-off-by: Yannick Lamarre
---
src/common/compat/poll.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/common/compat/poll.h b/src/common/compat/poll.h
index fde54ddb..5eb7ff9c 100644
--- a/src/common/compat/poll.h
+++ b/src/common/compat/poll.h
Remove redundant verification for file descriptors with 0 revents in
code base.
Signed-off-by: Yannick Lamarre
---
src/bin/lttng-consumerd/health-consumerd.c | 5 -
src/bin/lttng-relayd/health-relayd.c | 5 -
src/bin/lttng-relayd/live.c | 10 --
src
lttng_poll_mod should call compat_(e)poll_mod.
Signed-off-by: Yannick Lamarre
---
src/common/compat/poll.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/common/compat/poll.h b/src/common/compat/poll.h
index d4bd87f5..fde54ddb 100644
--- a/src/common/compat/poll.h
Signed-off-by: Yannick Lamarre
---
.gitignore | 1 +
tests/unit/Makefile.am | 9 +-
tests/unit/test_utils_compat_poll.c | 233
3 files changed, 242 insertions(+), 1 deletion(-)
create mode 100644 tests/unit
Signed-off-by: Yannick Lamarre
---
src/common/compat/compat-poll.c | 30 --
1 file changed, 20 insertions(+), 10 deletions(-)
diff --git a/src/common/compat/compat-poll.c b/src/common/compat/compat-poll.c
index b45b39dc..2318920a 100644
--- a/src/common/compat/compat
Add missing verification to prevent a blocking read on an empty fd.
Signed-off-by: Yannick Lamarre
---
src/bin/lttng-sessiond/rotation-thread.c | 4
1 file changed, 4 insertions(+)
diff --git a/src/bin/lttng-sessiond/rotation-thread.c
b/src/bin/lttng-sessiond/rotation-thread.c
index
Signed-off-by: Yannick Lamarre
---
src/common/compat/poll.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/compat/poll.h b/src/common/compat/poll.h
index 5eb7ff9c..d7020f36 100644
--- a/src/common/compat/poll.h
+++ b/src/common/compat/poll.h
@@ -358,7 +358,7
This removes the need to verify for idle file descriptors and mitigates
risks of bug due to behaviour mismatch.
Signed-off-by: Yannick Lamarre
---
src/common/compat/compat-poll.c | 38 ++
1 file changed, 34 insertions(+), 4 deletions(-)
diff --git a/src
Since those structs are only transferred across unix sockets, endianness
is kept in host order.
Signed-off-by: Yannick Lamarre
---
1) Fixed spelling errors
2) Added missing break
(This code was copied from XXX hence it would be missing from there too)
3) Fixed coding style with declaration
processes on
platforms supporting multiple pointer sizes (32bits vs 64bits) and this
creates mismatches in structure sizes.
Padding is also removed since it defeats the purpose of a packed struct
and is not used to extend the protocols.
Signed-off-by: Yannick Lamarre
---
Reworded commit message to
dditionnal comments.
Jérémie Galarneau (1):
Fix: Use platform-independant types in sessiond to consumerd
communication
Yannick Lamarre (19):
Clean-up: Switch enum fields in lttcomm_consumer_msg
Clean-up: Switch enum fields in lttcomm_consumer_status_msg
Clean-up: Switch enum
Since those structs are only transferred across unix sockets, endianness
is kept in host order.
Signed-off-by: Yannick Lamarre
---
Fixed spelling errors
src/common/sessiond-comm/sessiond-comm.c | 42
src/common/sessiond-comm/sessiond-comm.h | 1 +
2 files
lttng-ctl and lttng-sessiond use serialized communication for
messages using lttng_channel.
Signed-off-by: Yannick Lamarre
---
Reworded commit title to better identify changes in patch.
src/bin/lttng-sessiond/client.c | 10 +++---
src/common/sessiond-comm/sessiond-comm.h | 4
lttng-ctl and lttng-sessiond use serialized communication for
messages using lttng_event_context.
Signed-off-by: Yannick Lamarre
---
Fixed coding style issue by adding an empty line between variable declaration
and code.
include/lttng/event-internal.h | 4
src/bin/lttng
Size of an enum type is not guaranteed by the C spec, which is why the
field's tpye is replaced to uin32_t.
Signed-off-by: Yannick Lamarre
---
src/common/sessiond-comm/sessiond-comm.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/sessiond-comm/sessiond-comm
across processes on
platforms supporting multiple pointer sizes (32bits vs 64bits) and this
creates mismatches in structure sizes.
Padding is also removed since it defeats the purpose of a packed struct
and is not used to extend the protocols.
Signed-off-by: Yannick Lamarre
---
Reworded commit
Since those structs are only transferred across unix sockets, endianness
is kept in host order.
Signed-off-by: Yannick Lamarre
---
Fixed spelling errors
include/lttng/event-internal.h | 6 ++
src/common/sessiond-comm/sessiond-comm.c | 118 +++
2 files
1 - 100 of 112 matches
Mail list logo