summaryrefslogtreecommitdiffstats
path: root/scripts/extract-sys-certs.pl
diff options
context:
space:
mode:
authorTobin C. Harding <me@tobin.cc>2018-02-19 13:23:44 +1100
committerTobin C. Harding <me@tobin.cc>2018-04-07 08:50:34 +1000
commit5e4bac34edc7829b4a0749e3870d4a171c1f036f (patch)
tree37e73e94625c0f9f6aab110ba9fdebf30d84058c /scripts/extract-sys-certs.pl
parentb401f56f33bf551304cc4ca4f503863ee6ac7787 (diff)
downloadlinux-5e4bac34edc7829b4a0749e3870d4a171c1f036f.tar.bz2
leaking_addresses: cache architecture name
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: Tobin C. Harding <me@tobin.cc>
Diffstat (limited to 'scripts/extract-sys-certs.pl')
0 files changed, 0 insertions, 0 deletions