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:
|
value use the following equation:
|
||||||
.PP
|
.PP
|
||||||
.RS 4
|
.RS 4
|
||||||
.nf
|
.RS 4
|
||||||
(perf_hw_cache_id) | (perf_hw_cache_op_id << 8) |
|
.EX
|
||||||
(perf_hw_cache_op_result_id << 16)
|
config = (perf_hw_cache_id) |
|
||||||
.fi
|
(perf_hw_cache_op_id << 8) |
|
||||||
|
(perf_hw_cache_op_result_id << 16);
|
||||||
|
.EE
|
||||||
|
.RE
|
||||||
.PP
|
.PP
|
||||||
where
|
where
|
||||||
.I perf_hw_cache_id
|
.I perf_hw_cache_id
|
||||||
|
|
Loading…
Reference in New Issue