Re: [man-pages PATCH 1/5] s390_runtime_instr.2: note that runtime_instr.h is not a public header

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

 



On Sun, Jan 14, 2018 at 07:56:22PM +0100, Eugene Syromyatnikov wrote:
> For some reason, runtime_instr.h is inside arch/s390/include/asm/ and
> not arch/s390/include/uapi/asm/, so it's not readily available to the
> user space programs. Let's reflect it.
> 
> * man2/s390_runtime_instr.2 (.SH SYNOPSYS): Comment out the #include
> <asm/runtime_instr.h> statement.
> (.SH NOTES): Note the existence and presence of runtime_instr.h header
> inside the Linux kernel source tree.
> ---
>  man2/s390_runtime_instr.2 | 11 +++++++++--
>  1 file changed, 9 insertions(+), 2 deletions(-)
> 
> diff --git a/man2/s390_runtime_instr.2 b/man2/s390_runtime_instr.2
> index 18c2c07..f979692 100644
> --- a/man2/s390_runtime_instr.2
> +++ b/man2/s390_runtime_instr.2
> @@ -27,8 +27,9 @@
>  s390_runtime_instr \- enable/disable s390 CPU run-time instrumentation
>  .SH SYNOPSIS
>  .nf
> -.B #include <asm/runtime_instr.h>
> -.PP
> +.\" This header never had been a part of uapi as of 4.15
> +.\" .B #include <asm/runtime_instr.h>
> +.\" .PP
>  .BI "int s390_runtime_instr(int " command ", int " signum ");
>  .fi
>  .SH DESCRIPTION
> @@ -85,6 +86,12 @@ The run-time instrumentation facility is available beginning with System z EC12.
>  Glibc does not provide a wrapper for this system call, use
>  .BR syscall (2)
>  to call it.
> +.PP
> +Kernel's header
> +.B arch/s390/include/asm/runtime_instr.h
> +contains the necessary declarations for using run-time instrumentation.
> +Unfortunately, it hasn't been included as a part of Linux's UAPI
> +as of Linux 4.15.

IMHO we shouldn't document the file name of a kernel header that is not
exported. It's name and location can change anytime. I will move the kernel
header file to the uapi directory where it should have been since a long
time.
Thanks for reporting!

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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