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  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 18 May 2020 14:12:42 -0500
From:   "Paul A. Clarke" <>
To:     Ian Rogers <>
Cc:     Peter Zijlstra <>,
        Ingo Molnar <>,
        Arnaldo Carvalho de Melo <>,
        Mark Rutland <>,
        Alexander Shishkin <>,
        Jiri Olsa <>,
        Namhyung Kim <>,
        Alexei Starovoitov <>,
        Daniel Borkmann <>,
        Martin KaFai Lau <>,
        Song Liu <>, Yonghong Song <>,
        Andrii Nakryiko <>,
        John Fastabend <>,
        KP Singh <>,
        Kajol Jain <>,
        Andi Kleen <>,
        John Garry <>,
        Jin Yao <>,
        Kan Liang <>,
        Cong Wang <>,
        Kim Phillips <>,
        Adrian Hunter <>,
        Leo Yan <>,,,,
        Stephane Eranian <>,
        Arnaldo Carvalho de Melo <>
Subject: metric expressions including metrics?

I'm curious how hard it would be to define metrics using other metrics,
in the metrics definition files.

Currently, to my understanding, every metric definition must be an
expresssion based solely on arithmetic combinations of hardware events.

Some metrics are hierarchical in nature such that a higher-level metric
can be defined as an arithmetic expression of two other metrics, e.g.

cache_miss_cycles_per_instruction =
  data_cache_miss_cycles_per_instruction +

This would need to be defined something like:
dcache_miss_cpi = "dcache_miss_cycles / instructions"
icache_miss_cpi = "icache_miss_cycles / instructions"
cache_miss_cpi = "(dcache_miss_cycles + icache_miss_cycles) / instructions"

Could the latter definition be simplified to:
cache_miss_cpi = "dcache_miss_cpi + icache_miss_cpi"

With multi-level caches and NUMA hierarchies, some of these higher-level
metrics can involve a lot of hardware events.

Given the recent activity in this area, I'm curious if this has been
considered and already on a wish/to-do list, or found onerous.

Paul Clarke

Powered by blists - more mailing lists