From 3f6fd224cc31bdab2e3d8430c3e5e9ff17862c14 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 12 Nov 2012 16:14:20 -0500 Subject: [PATCH] filter: add seqnum field to filter command Reviewed-by: David Goulet Reviewed-by: Christian Babeux Signed-off-by: Mathieu Desnoyers --- include/lttng/ust-abi.h | 1 + include/ust-comm.h | 1 + liblttng-ust/lttng-ust-comm.c | 1 + 3 files changed, 3 insertions(+) diff --git a/include/lttng/ust-abi.h b/include/lttng/ust-abi.h index 6fa9a94d..1ae1fa7d 100644 --- a/include/lttng/ust-abi.h +++ b/include/lttng/ust-abi.h @@ -176,6 +176,7 @@ struct lttng_ust_calibrate { struct lttng_ust_filter_bytecode { uint32_t len; uint32_t reloc_offset; + uint64_t seqnum; char data[0]; }; diff --git a/include/ust-comm.h b/include/ust-comm.h index 014b5ede..b9c4cebe 100644 --- a/include/ust-comm.h +++ b/include/ust-comm.h @@ -70,6 +70,7 @@ struct ustcomm_ust_msg { struct { uint32_t data_size; /* following filter data */ uint32_t reloc_offset; + uint64_t seqnum; } filter; } u; }; diff --git a/liblttng-ust/lttng-ust-comm.c b/liblttng-ust/lttng-ust-comm.c index ef8b6fed..58461462 100644 --- a/liblttng-ust/lttng-ust-comm.c +++ b/liblttng-ust/lttng-ust-comm.c @@ -339,6 +339,7 @@ int handle_message(struct sock_info *sock_info, } bytecode->bc.len = lum->u.filter.data_size; bytecode->bc.reloc_offset = lum->u.filter.reloc_offset; + bytecode->bc.seqnum = lum->u.filter.seqnum; if (ops->cmd) { ret = ops->cmd(lum->handle, lum->cmd, (unsigned long) bytecode, -- 2.34.1