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]
Message-ID: <20171129151637.GA15069@krava>
Date:   Wed, 29 Nov 2017 16:16:37 +0100
From:   Jiri Olsa <jolsa@...hat.com>
To:     Jin Yao <yao.jin@...ux.intel.com>
Cc:     acme@...nel.org, 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
Subject: Re: [PATCH v3 00/11] perf stat: Enable '--per-thread' on all thread

On Wed, Nov 29, 2017 at 08:05:47PM +0800, Jin Yao wrote:
> v3:
> ---
> Update according to Jiri's comments. The major modifications are:
> 
> 1. Fix the crash issue when performing the git bisect.
>    Move the removing of runtime_saved_values to the switching point
>    (perf util: Remove a set of shadow stats static variables).
> 
> 2. Still add struct perf_stat_config::*stats|stats_num in earlier
>    patch because 'stats' will be used in
>    'perf util: Update and print per-thread shadow stats'.
>    If it's moved to 'perf stat: Allocate shadow stats buffer for threads',
>    the compilation would be failed.

sure, that's why also that hunk from 'perf util: Update and print per-thread shadow stats'
needs to be moved to 'perf stat: Allocate shadow stats buffer for threads'

this one:

+               if (stat_config.stats)
+                       stat = &stat_config.stats[thread];
+               else
+                       stat = &rt_stat;
+
+               printout(thread, 0, counter, uval, prefix, run, ena, 1.0,
+                        stat);

you already did that in 'perf stat: Allocate shadow stats buffer for threads' for:

+               if (config->aggr_mode == AGGR_THREAD) {
+                       if (config->stats)
+                               perf_stat__update_shadow_stats(evsel,
+                                       count->val, 0, &config->stats[thread]);
+                       else
+                               perf_stat__update_shadow_stats(evsel,
+                                       count->val, 0, &rt_stat);
+               }


thanks,
jirka

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ