From: Mathieu Desnoyers Date: Sat, 23 Jul 2011 08:36:38 +0000 (-0400) Subject: Fix perf hw cache counter config values X-Git-Tag: v2.0-pre3~1 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=188291076e7bf597ced3bcc24356c1a0be6fc9c3;p=lttng-tools.git Fix perf hw cache counter config values Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng/commands/add_context.c b/lttng/commands/add_context.c index 38d3cc1dc..b7a482bf7 100644 --- a/lttng/commands/add_context.c +++ b/lttng/commands/add_context.c @@ -164,8 +164,8 @@ static struct poptOption long_options[] = { .u.perf = { \ PERF_TYPE_HW_CACHE, \ (uint64_t) PERF_COUNT_HW_CACHE_##name \ - * (uint64_t) PERF_COUNT_HW_CACHE_OP_##op \ - * (uint64_t) PERF_COUNT_HW_CACHE_RESULT_##result, \ + | ((uint64_t) PERF_COUNT_HW_CACHE_OP_##op << 8) \ + | ((uint64_t) PERF_COUNT_HW_CACHE_RESULT_##result << 16), \ }, \ }