Re: [PATCH] perf_event_open.2: Assign calculated value explicitly to 'config'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Alex,

On 11/11/20 4:36 PM, Alejandro Colomar wrote:
> Signed-off-by: Alejandro Colomar <alx.manpages@xxxxxxxxx>

Thanks! Patch applied.

Cheers,

Michael

> ---
>  man2/perf_event_open.2 | 11 +++++++----
>  1 file changed, 7 insertions(+), 4 deletions(-)
> 
> diff --git a/man2/perf_event_open.2 b/man2/perf_event_open.2
> index 4adeccdde..468589786 100644
> --- a/man2/perf_event_open.2
> +++ b/man2/perf_event_open.2
> @@ -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
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux