From: Mathieu Desnoyers Date: Wed, 24 Sep 2014 20:08:34 +0000 (-0400) Subject: Fix: syscall listing: handle "enable all syscall" X-Git-Tag: v2.6.0-rc1~22 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=24875133a4330acb17b33bc9b3a57e59e73022a6;p=lttng-modules.git Fix: syscall listing: handle "enable all syscall" Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-syscalls.c b/lttng-syscalls.c index 5cac7212..846946ad 100644 --- a/lttng-syscalls.c +++ b/lttng-syscalls.c @@ -1230,12 +1230,12 @@ long lttng_channel_syscall_mask(struct lttng_channel *channel, for (bit = 0; bit < ARRAY_SIZE(sc_table); bit++) { bt_bitfield_write_be(tmp_mask, char, bit, 1, - test_bit(bit, filter->sc)); + filter ? test_bit(bit, filter->sc) : 1); } for (; bit < sc_tables_len; bit++) { bt_bitfield_write_be(tmp_mask, char, bit, 1, - test_bit(bit - ARRAY_SIZE(sc_table), - filter->sc_compat)); + filter ? test_bit(bit - ARRAY_SIZE(sc_table), + filter->sc_compat) : 1); } if (copy_to_user(usyscall_mask->mask, tmp_mask, bitmask_len)) ret = -EFAULT;