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
| ||
|
Date: Tue, 13 Aug 2019 08:49:30 +0800 From: "Jin, Yao" <yao.jin@...ux.intel.com> To: Jiri Olsa <jolsa@...hat.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] perf diff: Report noisy for cycles diff On 8/12/2019 4:35 PM, Jiri Olsa wrote: > On Sat, Aug 10, 2019 at 07:30:29AM +0800, Jin Yao wrote: > > SNIP > >> + >> + init_stats(&pair->diff.stats); >> + init_spark_values(pair->diff.svals, NUM_SPARKS); >> + >> + for (int i = 0; i < pair->block_info->num; i++) { >> + u64 val; >> + >> + if (i >= he->block_info->num || i >= NUM_SPARKS) >> + break; >> + >> + val = labs(pair->block_info->cycles_spark[i] - >> + he->block_info->cycles_spark[i]); >> + >> + update_spark_value(pair->diff.svals, NUM_SPARKS, >> + &pair->diff.stats, val); >> + update_stats(&pair->diff.stats, val); >> + } >> } >> } >> >> @@ -1250,6 +1292,8 @@ static const struct option options[] = { >> "Show period values."), >> OPT_BOOLEAN('F', "formula", &show_formula, >> "Show formula."), >> + OPT_BOOLEAN('n', "noisy", &show_noisy, >> + "Show cycles noisy - WARNING: use only with -c cycles."), > > this should be more 'cycles' specific like --cycles-noisy or --cycles-hist? > > also I dont think we should use 'n' for this, just the long option > > jirka > Yes, it's cycles specific. Maybe --cycles-hist is better and the long option should be enough. We can reserve -n for future feature. :) Thanks Jin Yao
Powered by blists - more mailing lists