Skip to content

Commit 95f2819

Browse files
hbrueckneracmel
authored andcommitted
tools include arch: Grab a copy of errno.h for arch's supported by perf
For each arch in tools/perf/arch, grab a copy of errno.h. This is a pre-req to generate an architecture specific mapping of errno numbers to their names. This errno mapping can be used by perf trace to support cross-architecture trace reports and to get rid of the audit-libs dependency. Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com> Reviewed-by: Thomas Richter <tmricht@linux.vnet.ibm.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Michael Petlan <mpetlan@redhat.com> Cc: linux-s390@vger.kernel.org LPU-Reference: 1516352177-11106-2-git-send-email-brueckner@linux.vnet.ibm.com Link: https://lkml.kernel.org/n/tip-73azjhrzpjsskwi129020i2u@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 99402e0 commit 95f2819

8 files changed

Lines changed: 539 additions & 0 deletions

File tree

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2+
#ifndef _ALPHA_ERRNO_H
3+
#define _ALPHA_ERRNO_H
4+
5+
#include <asm-generic/errno-base.h>
6+
7+
#undef EAGAIN /* 11 in errno-base.h */
8+
9+
#define EDEADLK 11 /* Resource deadlock would occur */
10+
11+
#define EAGAIN 35 /* Try again */
12+
#define EWOULDBLOCK EAGAIN /* Operation would block */
13+
#define EINPROGRESS 36 /* Operation now in progress */
14+
#define EALREADY 37 /* Operation already in progress */
15+
#define ENOTSOCK 38 /* Socket operation on non-socket */
16+
#define EDESTADDRREQ 39 /* Destination address required */
17+
#define EMSGSIZE 40 /* Message too long */
18+
#define EPROTOTYPE 41 /* Protocol wrong type for socket */
19+
#define ENOPROTOOPT 42 /* Protocol not available */
20+
#define EPROTONOSUPPORT 43 /* Protocol not supported */
21+
#define ESOCKTNOSUPPORT 44 /* Socket type not supported */
22+
#define EOPNOTSUPP 45 /* Operation not supported on transport endpoint */
23+
#define EPFNOSUPPORT 46 /* Protocol family not supported */
24+
#define EAFNOSUPPORT 47 /* Address family not supported by protocol */
25+
#define EADDRINUSE 48 /* Address already in use */
26+
#define EADDRNOTAVAIL 49 /* Cannot assign requested address */
27+
#define ENETDOWN 50 /* Network is down */
28+
#define ENETUNREACH 51 /* Network is unreachable */
29+
#define ENETRESET 52 /* Network dropped connection because of reset */
30+
#define ECONNABORTED 53 /* Software caused connection abort */
31+
#define ECONNRESET 54 /* Connection reset by peer */
32+
#define ENOBUFS 55 /* No buffer space available */
33+
#define EISCONN 56 /* Transport endpoint is already connected */
34+
#define ENOTCONN 57 /* Transport endpoint is not connected */
35+
#define ESHUTDOWN 58 /* Cannot send after transport endpoint shutdown */
36+
#define ETOOMANYREFS 59 /* Too many references: cannot splice */
37+
#define ETIMEDOUT 60 /* Connection timed out */
38+
#define ECONNREFUSED 61 /* Connection refused */
39+
#define ELOOP 62 /* Too many symbolic links encountered */
40+
#define ENAMETOOLONG 63 /* File name too long */
41+
#define EHOSTDOWN 64 /* Host is down */
42+
#define EHOSTUNREACH 65 /* No route to host */
43+
#define ENOTEMPTY 66 /* Directory not empty */
44+
45+
#define EUSERS 68 /* Too many users */
46+
#define EDQUOT 69 /* Quota exceeded */
47+
#define ESTALE 70 /* Stale file handle */
48+
#define EREMOTE 71 /* Object is remote */
49+
50+
#define ENOLCK 77 /* No record locks available */
51+
#define ENOSYS 78 /* Function not implemented */
52+
53+
#define ENOMSG 80 /* No message of desired type */
54+
#define EIDRM 81 /* Identifier removed */
55+
#define ENOSR 82 /* Out of streams resources */
56+
#define ETIME 83 /* Timer expired */
57+
#define EBADMSG 84 /* Not a data message */
58+
#define EPROTO 85 /* Protocol error */
59+
#define ENODATA 86 /* No data available */
60+
#define ENOSTR 87 /* Device not a stream */
61+
62+
#define ENOPKG 92 /* Package not installed */
63+
64+
#define EILSEQ 116 /* Illegal byte sequence */
65+
66+
/* The following are just random noise.. */
67+
#define ECHRNG 88 /* Channel number out of range */
68+
#define EL2NSYNC 89 /* Level 2 not synchronized */
69+
#define EL3HLT 90 /* Level 3 halted */
70+
#define EL3RST 91 /* Level 3 reset */
71+
72+
#define ELNRNG 93 /* Link number out of range */
73+
#define EUNATCH 94 /* Protocol driver not attached */
74+
#define ENOCSI 95 /* No CSI structure available */
75+
#define EL2HLT 96 /* Level 2 halted */
76+
#define EBADE 97 /* Invalid exchange */
77+
#define EBADR 98 /* Invalid request descriptor */
78+
#define EXFULL 99 /* Exchange full */
79+
#define ENOANO 100 /* No anode */
80+
#define EBADRQC 101 /* Invalid request code */
81+
#define EBADSLT 102 /* Invalid slot */
82+
83+
#define EDEADLOCK EDEADLK
84+
85+
#define EBFONT 104 /* Bad font file format */
86+
#define ENONET 105 /* Machine is not on the network */
87+
#define ENOLINK 106 /* Link has been severed */
88+
#define EADV 107 /* Advertise error */
89+
#define ESRMNT 108 /* Srmount error */
90+
#define ECOMM 109 /* Communication error on send */
91+
#define EMULTIHOP 110 /* Multihop attempted */
92+
#define EDOTDOT 111 /* RFS specific error */
93+
#define EOVERFLOW 112 /* Value too large for defined data type */
94+
#define ENOTUNIQ 113 /* Name not unique on network */
95+
#define EBADFD 114 /* File descriptor in bad state */
96+
#define EREMCHG 115 /* Remote address changed */
97+
98+
#define EUCLEAN 117 /* Structure needs cleaning */
99+
#define ENOTNAM 118 /* Not a XENIX named type file */
100+
#define ENAVAIL 119 /* No XENIX semaphores available */
101+
#define EISNAM 120 /* Is a named type file */
102+
#define EREMOTEIO 121 /* Remote I/O error */
103+
104+
#define ELIBACC 122 /* Can not access a needed shared library */
105+
#define ELIBBAD 123 /* Accessing a corrupted shared library */
106+
#define ELIBSCN 124 /* .lib section in a.out corrupted */
107+
#define ELIBMAX 125 /* Attempting to link in too many shared libraries */
108+
#define ELIBEXEC 126 /* Cannot exec a shared library directly */
109+
#define ERESTART 127 /* Interrupted system call should be restarted */
110+
#define ESTRPIPE 128 /* Streams pipe error */
111+
112+
#define ENOMEDIUM 129 /* No medium found */
113+
#define EMEDIUMTYPE 130 /* Wrong medium type */
114+
#define ECANCELED 131 /* Operation Cancelled */
115+
#define ENOKEY 132 /* Required key not available */
116+
#define EKEYEXPIRED 133 /* Key has expired */
117+
#define EKEYREVOKED 134 /* Key has been revoked */
118+
#define EKEYREJECTED 135 /* Key was rejected by service */
119+
120+
/* for robust mutexes */
121+
#define EOWNERDEAD 136 /* Owner died */
122+
#define ENOTRECOVERABLE 137 /* State not recoverable */
123+
124+
#define ERFKILL 138 /* Operation not possible due to RF-kill */
125+
126+
#define EHWPOISON 139 /* Memory page has hardware error */
127+
128+
#endif
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* This file is subject to the terms and conditions of the GNU General Public
3+
* License. See the file "COPYING" in the main directory of this archive
4+
* for more details.
5+
*
6+
* Copyright (C) 1995, 1999, 2001, 2002 by Ralf Baechle
7+
*/
8+
#ifndef _ASM_ERRNO_H
9+
#define _ASM_ERRNO_H
10+
11+
#include <uapi/asm/errno.h>
12+
13+
14+
/* The biggest error number defined here or in <linux/errno.h>. */
15+
#define EMAXERRNO 1133
16+
17+
#endif /* _ASM_ERRNO_H */
Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2+
/*
3+
* This file is subject to the terms and conditions of the GNU General Public
4+
* License. See the file "COPYING" in the main directory of this archive
5+
* for more details.
6+
*
7+
* Copyright (C) 1995, 1999, 2001, 2002 by Ralf Baechle
8+
*/
9+
#ifndef _UAPI_ASM_ERRNO_H
10+
#define _UAPI_ASM_ERRNO_H
11+
12+
/*
13+
* These error numbers are intended to be MIPS ABI compatible
14+
*/
15+
16+
#include <asm-generic/errno-base.h>
17+
18+
#define ENOMSG 35 /* No message of desired type */
19+
#define EIDRM 36 /* Identifier removed */
20+
#define ECHRNG 37 /* Channel number out of range */
21+
#define EL2NSYNC 38 /* Level 2 not synchronized */
22+
#define EL3HLT 39 /* Level 3 halted */
23+
#define EL3RST 40 /* Level 3 reset */
24+
#define ELNRNG 41 /* Link number out of range */
25+
#define EUNATCH 42 /* Protocol driver not attached */
26+
#define ENOCSI 43 /* No CSI structure available */
27+
#define EL2HLT 44 /* Level 2 halted */
28+
#define EDEADLK 45 /* Resource deadlock would occur */
29+
#define ENOLCK 46 /* No record locks available */
30+
#define EBADE 50 /* Invalid exchange */
31+
#define EBADR 51 /* Invalid request descriptor */
32+
#define EXFULL 52 /* Exchange full */
33+
#define ENOANO 53 /* No anode */
34+
#define EBADRQC 54 /* Invalid request code */
35+
#define EBADSLT 55 /* Invalid slot */
36+
#define EDEADLOCK 56 /* File locking deadlock error */
37+
#define EBFONT 59 /* Bad font file format */
38+
#define ENOSTR 60 /* Device not a stream */
39+
#define ENODATA 61 /* No data available */
40+
#define ETIME 62 /* Timer expired */
41+
#define ENOSR 63 /* Out of streams resources */
42+
#define ENONET 64 /* Machine is not on the network */
43+
#define ENOPKG 65 /* Package not installed */
44+
#define EREMOTE 66 /* Object is remote */
45+
#define ENOLINK 67 /* Link has been severed */
46+
#define EADV 68 /* Advertise error */
47+
#define ESRMNT 69 /* Srmount error */
48+
#define ECOMM 70 /* Communication error on send */
49+
#define EPROTO 71 /* Protocol error */
50+
#define EDOTDOT 73 /* RFS specific error */
51+
#define EMULTIHOP 74 /* Multihop attempted */
52+
#define EBADMSG 77 /* Not a data message */
53+
#define ENAMETOOLONG 78 /* File name too long */
54+
#define EOVERFLOW 79 /* Value too large for defined data type */
55+
#define ENOTUNIQ 80 /* Name not unique on network */
56+
#define EBADFD 81 /* File descriptor in bad state */
57+
#define EREMCHG 82 /* Remote address changed */
58+
#define ELIBACC 83 /* Can not access a needed shared library */
59+
#define ELIBBAD 84 /* Accessing a corrupted shared library */
60+
#define ELIBSCN 85 /* .lib section in a.out corrupted */
61+
#define ELIBMAX 86 /* Attempting to link in too many shared libraries */
62+
#define ELIBEXEC 87 /* Cannot exec a shared library directly */
63+
#define EILSEQ 88 /* Illegal byte sequence */
64+
#define ENOSYS 89 /* Function not implemented */
65+
#define ELOOP 90 /* Too many symbolic links encountered */
66+
#define ERESTART 91 /* Interrupted system call should be restarted */
67+
#define ESTRPIPE 92 /* Streams pipe error */
68+
#define ENOTEMPTY 93 /* Directory not empty */
69+
#define EUSERS 94 /* Too many users */
70+
#define ENOTSOCK 95 /* Socket operation on non-socket */
71+
#define EDESTADDRREQ 96 /* Destination address required */
72+
#define EMSGSIZE 97 /* Message too long */
73+
#define EPROTOTYPE 98 /* Protocol wrong type for socket */
74+
#define ENOPROTOOPT 99 /* Protocol not available */
75+
#define EPROTONOSUPPORT 120 /* Protocol not supported */
76+
#define ESOCKTNOSUPPORT 121 /* Socket type not supported */
77+
#define EOPNOTSUPP 122 /* Operation not supported on transport endpoint */
78+
#define EPFNOSUPPORT 123 /* Protocol family not supported */
79+
#define EAFNOSUPPORT 124 /* Address family not supported by protocol */
80+
#define EADDRINUSE 125 /* Address already in use */
81+
#define EADDRNOTAVAIL 126 /* Cannot assign requested address */
82+
#define ENETDOWN 127 /* Network is down */
83+
#define ENETUNREACH 128 /* Network is unreachable */
84+
#define ENETRESET 129 /* Network dropped connection because of reset */
85+
#define ECONNABORTED 130 /* Software caused connection abort */
86+
#define ECONNRESET 131 /* Connection reset by peer */
87+
#define ENOBUFS 132 /* No buffer space available */
88+
#define EISCONN 133 /* Transport endpoint is already connected */
89+
#define ENOTCONN 134 /* Transport endpoint is not connected */
90+
#define EUCLEAN 135 /* Structure needs cleaning */
91+
#define ENOTNAM 137 /* Not a XENIX named type file */
92+
#define ENAVAIL 138 /* No XENIX semaphores available */
93+
#define EISNAM 139 /* Is a named type file */
94+
#define EREMOTEIO 140 /* Remote I/O error */
95+
#define EINIT 141 /* Reserved */
96+
#define EREMDEV 142 /* Error 142 */
97+
#define ESHUTDOWN 143 /* Cannot send after transport endpoint shutdown */
98+
#define ETOOMANYREFS 144 /* Too many references: cannot splice */
99+
#define ETIMEDOUT 145 /* Connection timed out */
100+
#define ECONNREFUSED 146 /* Connection refused */
101+
#define EHOSTDOWN 147 /* Host is down */
102+
#define EHOSTUNREACH 148 /* No route to host */
103+
#define EWOULDBLOCK EAGAIN /* Operation would block */
104+
#define EALREADY 149 /* Operation already in progress */
105+
#define EINPROGRESS 150 /* Operation now in progress */
106+
#define ESTALE 151 /* Stale file handle */
107+
#define ECANCELED 158 /* AIO operation canceled */
108+
109+
/*
110+
* These error are Linux extensions.
111+
*/
112+
#define ENOMEDIUM 159 /* No medium found */
113+
#define EMEDIUMTYPE 160 /* Wrong medium type */
114+
#define ENOKEY 161 /* Required key not available */
115+
#define EKEYEXPIRED 162 /* Key has expired */
116+
#define EKEYREVOKED 163 /* Key has been revoked */
117+
#define EKEYREJECTED 164 /* Key was rejected by service */
118+
119+
/* for robust mutexes */
120+
#define EOWNERDEAD 165 /* Owner died */
121+
#define ENOTRECOVERABLE 166 /* State not recoverable */
122+
123+
#define ERFKILL 167 /* Operation not possible due to RF-kill */
124+
125+
#define EHWPOISON 168 /* Memory page has hardware error */
126+
127+
#define EDQUOT 1133 /* Quota exceeded */
128+
129+
130+
#endif /* _UAPI_ASM_ERRNO_H */

0 commit comments

Comments
 (0)