• Tobin C. Harding's avatar
    leaking_addresses: cache architecture name · 5e4bac34
    Tobin C. Harding authored
    Currently we are repeatedly calling `uname -m`.  This is causing the
    script to take a long time to run (more than 10 seconds to parse
    /proc/kallsyms).  We can use Perl state variables to cache the result of
    the first call to `uname -m`.  With this change in place the script
    scans the whole kernel in under a minute.
    
    Cache machine architecture in state variable.
    Signed-off-by: 's avatarTobin C. Harding <me@tobin.cc>
    5e4bac34
Name
Last commit
Last update
Documentation Loading commit data...
LICENSES Loading commit data...
arch Loading commit data...
block Loading commit data...
certs Loading commit data...
crypto Loading commit data...
drivers Loading commit data...
firmware Loading commit data...
fs Loading commit data...
include Loading commit data...
init Loading commit data...
ipc Loading commit data...
kernel Loading commit data...
lib Loading commit data...
mm Loading commit data...
net Loading commit data...
samples Loading commit data...
scripts Loading commit data...
security Loading commit data...
sound Loading commit data...
tools Loading commit data...
usr Loading commit data...
virt Loading commit data...
.cocciconfig Loading commit data...
.get_maintainer.ignore Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Kbuild Loading commit data...
Kconfig Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...