Re: [PATCH] perf test 39 (Session topology) dumps core on s390

2018-05-27 Thread Thomas-Mich Richter
On 05/28/2018 05:49 AM, Ravi Bangoria wrote: > Hi Thomas, > > On 05/24/2018 07:26 PM, Thomas Richter wrote: >> @@ -95,7 +98,7 @@ int test__session_topology(struct test *test >> __maybe_unused, int subtest __maybe >> { >> char path[PATH_MAX]; >> struct cpu_map *map; >> -int ret = -1

Re: [PATCH] perf test 39 (Session topology) dumps core on s390

2018-05-27 Thread Ravi Bangoria
Hi Thomas, On 05/24/2018 07:26 PM, Thomas Richter wrote: > @@ -95,7 +98,7 @@ int test__session_topology(struct test *test > __maybe_unused, int subtest __maybe > { > char path[PATH_MAX]; > struct cpu_map *map; > - int ret = -1; > + int ret; This is failing for me: tests/top

Re: [PATCH] perf test 39 (Session topology) dumps core on s390

2018-05-25 Thread Arnaldo Carvalho de Melo
Em Thu, May 24, 2018 at 03:56:00PM +0200, Thomas Richter escreveu: > perf test 39 fails with core dump on s390. The root cause > is a NULL pointer reference in function check_cpu_topology() > line 76 (or line 82 without -v). > The session->header.env.cpu variable is NULL because on s390 > function

[PATCH] perf test 39 (Session topology) dumps core on s390

2018-05-24 Thread Thomas Richter
perf test 39 fails with core dump on s390. The root cause is a NULL pointer reference in function check_cpu_topology() line 76 (or line 82 without -v). The session->header.env.cpu variable is NULL because on s390 function process_cpu_topology() returns with error: socket_id number is too big.