Fix perf hw cache counter config values
[lttng-tools.git] / 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.022962 seconds and 4 git commands to generate.