aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2020-11-11 16:36:45 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2020-11-12 21:52:06 +0100
commit5020bc28225f4eaccc9d19297f2a43d855b53823 (patch)
treec97a98a44cf3bbf13f70b1e4d149a4e805b4ef09
parentb5277108b41c50d8befeb4c5b8ce20fb4c11f555 (diff)
downloadman-pages-5020bc28225f4eaccc9d19297f2a43d855b53823.tar.gz
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>
-rw-r--r--man2/perf_event_open.211
1 files changed, 7 insertions, 4 deletions
diff --git a/man2/perf_event_open.2 b/man2/perf_event_open.2
index 72afafb50f..eb7ab29ea4 100644
--- a/man2/perf_event_open.2
+++ b/man2/perf_event_open.2
@@ -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