diff options
author | Kees Cook | 2017-07-21 15:19:14 +0200 |
---|---|---|
committer | Kees Cook | 2017-07-26 23:38:04 +0200 |
commit | c7fea48876773603721f545f8c1a2f894291ef85 (patch) | |
tree | 8aec6293f664c8240af323fd017682f64d3b5b64 /drivers/fpga | |
parent | lkdtm: Provide more complete coverage for REFCOUNT tests (diff) | |
download | kernel-qcow2-linux-c7fea48876773603721f545f8c1a2f894291ef85.tar.gz kernel-qcow2-linux-c7fea48876773603721f545f8c1a2f894291ef85.tar.xz kernel-qcow2-linux-c7fea48876773603721f545f8c1a2f894291ef85.zip |
lkdtm: Provide timing tests for atomic_t vs refcount_t
While not a crash test, this does provide two tight atomic_t and
refcount_t loops for performance comparisons:
cd /sys/kernel/debug/provoke-crash
perf stat -B -- cat <(echo ATOMIC_TIMING) > DIRECT
perf stat -B -- cat <(echo REFCOUNT_TIMING) > DIRECT
Looking a CPU cycles is the best way to example the fast-path (rather
than instruction counts, since conditional jumps will be executed but
will be negligible due to branch-prediction).
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'drivers/fpga')
0 files changed, 0 insertions, 0 deletions