From: Mathieu Desnoyers Date: Mon, 12 Nov 2012 21:14:20 +0000 (-0500) Subject: filter: add seqnum field to filter command X-Git-Tag: v2.1.0-rc2~11 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3f6fd224cc31bdab2e3d8430c3e5e9ff17862c14;p=lttng-ust.git filter: add seqnum field to filter command Reviewed-by: David Goulet Reviewed-by: Christian Babeux Signed-off-by: Mathieu Desnoyers --- 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,