linux_dsm_epyc7002/tools/perf/arch/x86/tests
Arnaldo Carvalho de Melo c8b5f2c96d tools: Introduce str_error_r()
The tools so far have been using the strerror_r() GNU variant, that
returns a string, be it the buffer passed or something else.

But that, besides being tricky in cases where we expect that the
function using strerror_r() returns the error formatted in a provided
buffer (we have to check if it returned something else and copy that
instead), breaks the build on systems not using glibc, like Alpine
Linux, where musl libc is used.

So, introduce yet another wrapper, str_error_r(), that has the GNU
interface, but uses the portable XSI variant of strerror_r(), so that
users rest asured that the provided buffer is used and it is what is
returned.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-d4t42fnf48ytlk8rjxs822tf@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2016-07-12 15:19:47 -03:00
..
arch-tests.c perf tests: Add Intel CQM test 2015-10-05 16:56:07 -03:00
Build perf tests: Add Intel CQM test 2015-10-05 16:56:07 -03:00
dwarf-unwind.c perf tests: Move x86 tests into arch directory 2015-10-05 16:55:43 -03:00
gen-insn-x86-dat.awk perf tests: Move x86 tests into arch directory 2015-10-05 16:55:43 -03:00
gen-insn-x86-dat.sh perf tests: Move x86 tests into arch directory 2015-10-05 16:55:43 -03:00
insn-x86-dat-32.c perf tests: Move x86 tests into arch directory 2015-10-05 16:55:43 -03:00
insn-x86-dat-64.c perf tests: Move x86 tests into arch directory 2015-10-05 16:55:43 -03:00
insn-x86-dat-src.c perf tests: Move x86 tests into arch directory 2015-10-05 16:55:43 -03:00
insn-x86.c perf tests: Pass the subtest index to each test routine 2015-11-19 13:19:15 -03:00
intel-cqm.c perf tests: Remove wrong semicolon in while loop in CQM test 2016-01-26 11:14:06 -03:00
perf-time-to-tsc.c perf tests time-to-tsc: No need to disable an event before deleting it 2016-06-22 10:10:52 -03:00
rdpmc.c tools: Introduce str_error_r() 2016-07-12 15:19:47 -03:00
regs_load.S perf x86: Fix perf to use non-executable stack, again 2014-04-30 17:02:30 +02:00