projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix perf hw cache counter config values
[lttng-tools.git]
/
lttng
/
commands
/
add_context.c
diff --git
a/lttng/commands/add_context.c
b/lttng/commands/add_context.c
index 38d3cc1dc1425050c0f4740482f6a6157e180418..b7a482bf7963e6b13024eff7b4a13dc389499750 100644
(file)
--- 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 \
.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.022966 seconds
and
4
git commands to generate.