Skip to contentSkip to conversation

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

PATCH In review Alejandro Colomar 2 participants 2 messages Nov 11, 2020 – Nov 12, 2020 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf_event_open.2: Assign calculated value explicitly to 'config'

---
 man2/perf_event_open.2 | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
man2/perf_event_open.2 +7 -4
index 4adeccdde..468589786 100644
@@ -569,10 +569,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
Signature · 1 line
2.28.0
#1 lore raw

Hi Alex,

Quoted 1 line · Alejandro Colomar

Thanks! Patch applied.

Cheers,

Michael

Quoted 27 lines
---
 man2/perf_event_open.2 | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
man2/perf_event_open.2 +7 -4
index 4adeccdde..468589786 100644
@@ -569,10 +569,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
Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/