Fix perf hw cache counter config values
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 23 Jul 2011 08:36:38 +0000 (04:36 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 23 Jul 2011 08:36:38 +0000 (04:36 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng/commands/add_context.c

index 38d3cc1dc1425050c0f4740482f6a6157e180418..b7a482bf7963e6b13024eff7b4a13dc389499750 100644 (file)
@@ -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), \
                },                                                      \
        }
 
This page took 0.026173 seconds and 4 git commands to generate.