lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Fri, 15 Jan 2021 17:28:14 -0300
From:   Arnaldo Carvalho de Melo <acme@...nel.org>
To:     Jiri Olsa <jolsa@...hat.com>
Cc:     Jin Yao <yao.jin@...ux.intel.com>, jolsa@...nel.org,
        peterz@...radead.org, mingo@...hat.com,
        alexander.shishkin@...ux.intel.com, Linux-kernel@...r.kernel.org,
        ak@...ux.intel.com, kan.liang@...el.com, yao.jin@...el.com,
        ying.huang@...el.com
Subject: Re: [PATCH v6] perf stat: Fix wrong skipping for per-die aggregation

Em Thu, Jan 14, 2021 at 08:00:32PM +0100, Jiri Olsa escreveu:
> On Thu, Jan 14, 2021 at 09:27:55AM +0800, Jin Yao wrote:
> 
> SNIP
> 
> >      2.003776312 S1-D0           1             855616 Bytes llc_misses.mem_read
> >      2.003776312 S1-D1           1             949376 Bytes llc_misses.mem_read
> >      3.006512788 S0-D0           1            1338880 Bytes llc_misses.mem_read
> >      3.006512788 S0-D1           1             920064 Bytes llc_misses.mem_read
> >      3.006512788 S1-D0           1             877184 Bytes llc_misses.mem_read
> >      3.006512788 S1-D1           1            1020736 Bytes llc_misses.mem_read
> >      4.008895291 S0-D0           1             926592 Bytes llc_misses.mem_read
> >      4.008895291 S0-D1           1             906368 Bytes llc_misses.mem_read
> >      4.008895291 S1-D0           1             892224 Bytes llc_misses.mem_read
> >      4.008895291 S1-D1           1             987712 Bytes llc_misses.mem_read
> >      5.001590993 S0-D0           1             962624 Bytes llc_misses.mem_read
> >      5.001590993 S0-D1           1             912512 Bytes llc_misses.mem_read
> >      5.001590993 S1-D0           1             891200 Bytes llc_misses.mem_read
> >      5.001590993 S1-D1           1             978432 Bytes llc_misses.mem_read
> > 
> > On no-die system, die_id is 0, actually it's hashmap(socket,0), original behavior
> > is not changed.
> > 
> > Reported-by: Huang Ying <ying.huang@...el.com>
> > Signed-off-by: Jin Yao <yao.jin@...ux.intel.com>
> > ---
> > v6:
> >  Fix the perf test python failure by adding hashmap.c to python-ext-sources.
> > 
> >  root@...-ppc:~# ./perf test python
> >  19: 'import perf' in python                                         : Ok
> 
> Acked-by: Jiri Olsa <jolsa@...hat.com>

Jin, this is breaking the build in some 32-bit system, can you please
take a look to validate these warnings?

  CC       /tmp/build/perf/util/srcline.o
util/stat.c: In function 'pkg_id_hash':
util/stat.c:285:9: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
  return (int64_t)key & 0xffffffff;
         ^
util/stat.c: In function 'pkg_id_equal':
util/stat.c:291:9: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
  return (int64_t)key1 == (int64_t)key2;
         ^
util/stat.c:291:26: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
  return (int64_t)key1 == (int64_t)key2;
                          ^
util/stat.c: In function 'check_per_pkg':
util/stat.c:342:26: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
  if (hashmap__find(mask, (void *)key, NULL))
                          ^
util/stat.c:345:28: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
   ret = hashmap__add(mask, (void *)key, (void *)1);
                            ^
  CC       /tmp/build/perf/tests/expand-cgroup.o

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ