mirror of https://github.com/mkerrisk/man-pages
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:
parent
b5277108b4
commit
5020bc2822
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue