Home
last modified time | relevance | path

Searched refs:errnum (Results 1 – 9 of 9) sorted by relevance

/tools/lib/
Dstr_error_r.c21 char *str_error_r(int errnum, char *buf, size_t buflen) in str_error_r() argument
23 int err = strerror_r(errnum, buf, buflen); in str_error_r()
25 snprintf(buf, buflen, "INTERNAL ERROR: strerror_r(%d, [buf], %zd)=%d", errnum, buflen, err); in str_error_r()
/tools/perf/util/
Dtarget.c148 int target__strerror(struct target *target, int errnum, in target__strerror() argument
156 if (errnum >= 0) { in target__strerror()
157 str_error_r(errnum, buf, buflen); in target__strerror()
161 if (errnum < __TARGET_ERRNO__START || errnum >= __TARGET_ERRNO__END) in target__strerror()
164 idx = errnum - __TARGET_ERRNO__START; in target__strerror()
167 switch (errnum) { in target__strerror()
Dtarget.h58 int target__strerror(struct target *target, int errnum, char *buf, size_t buflen);
Ddso.c1625 int idx, errnum = *dso__load_errno(dso); in dso__strerror_load() local
1639 if (errnum >= 0) { in dso__strerror_load()
1640 const char *err = str_error_r(errnum, buf, buflen); in dso__strerror_load()
1648 if (errnum < __DSO_LOAD_ERRNO__START || errnum >= __DSO_LOAD_ERRNO__END) in dso__strerror_load()
1651 idx = errnum - __DSO_LOAD_ERRNO__START; in dso__strerror_load()
Dannotate.h442 int symbol__strerror_disassemble(struct map_symbol *ms, int errnum, char *buf, size_t buflen);
Ddisasm.c1202 int symbol__strerror_disassemble(struct map_symbol *ms, int errnum, char *buf, size_t buflen) in symbol__strerror_disassemble() argument
1208 if (errnum >= 0) { in symbol__strerror_disassemble()
1209 str_error_r(errnum, buf, buflen); in symbol__strerror_disassemble()
1213 switch (errnum) { in symbol__strerror_disassemble()
1248 scnprintf(buf, buflen, "Internal error: Invalid %d error code\n", errnum); in symbol__strerror_disassemble()
/tools/include/linux/
Dstring.h33 char *str_error_r(int errnum, char *buf, size_t buflen);
/tools/testing/selftests/powerpc/tm/
Dtm-unavailable.c37 #define err_at_line(status, errnum, format, ...) \ argument
38 error_at_line(status, errnum, __FILE__, __LINE__, format ##__VA_ARGS__)
/tools/testing/selftests/bpf/prog_tests/
Dsockmap_helpers.h31 #define _FAIL(errnum, fmt...) \ argument
33 error_at_line(0, (errnum), __func__, __LINE__, fmt); \