]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: implement llquantize log/linear aggregation
authorEugene Loh <eugene.loh@oracle>
Thu, 7 Sep 2017 08:29:26 +0000 (01:29 -0700)
committerTomas Jedlicka <tomas.jedlicka@oracle.com>
Thu, 14 Sep 2017 09:12:13 +0000 (11:12 +0200)
commit61ca8fd927ae7770deb7f1032a55afccaf957a0b
tree617a843fd92915182170bc65adb31ac94277bd11
parentae46ba9186e8849b6b82ff09a085a07bcc55dcc0
dtrace: implement llquantize log/linear aggregation

DTrace offers a histogram aggregation, quantize(), whose bins are base-2
logarithmic.  It also has a linear function lquantize().

Linux DTrace should also implement a log-linear function llquantize().
Such functionality is supported by Solaris DTrace and other tracing tools.
Motivations for such a function include:
  - a logarithmic aggregation with base other than 2 (e.g. base 10)
  - finer control than simply logarithmic
  - greater dynamic range than simply linear

Orabug: 26675659

Signed-off-by: Eugene Loh <eugene.loh@oracle.com>
Reviewed-by: Tomas Jedlicka <tomas.jedlicka@oracle.com>
dtrace/dtrace_ecb.c
dtrace/dtrace_probe_ctx.c
include/dtrace/dtrace_impl.h
include/uapi/linux/dtrace/actions_defines.h