perf_event_open.2: Assign calculated value explicitly to 'config'

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Alejandro Colomar 2020-11-11 16:36:45 +01:00 committed by Michael Kerrisk
parent b5277108b4
commit 5020bc2822
1 changed files with 7 additions and 4 deletions

View File

@ -560,10 +560,13 @@ To calculate the appropriate
value use the following equation:
.PP
.RS 4
.nf
(perf_hw_cache_id) | (perf_hw_cache_op_id << 8) |
(perf_hw_cache_op_result_id << 16)
.fi
.RS 4
.EX
config = (perf_hw_cache_id) |
(perf_hw_cache_op_id << 8) |
(perf_hw_cache_op_result_id << 16);
.EE
.RE
.PP
where
.I perf_hw_cache_id