summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2025-01-05 22:34:15 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2025-01-14 06:38:33 +0300
commit8b13c2239d8b65604b7a0ff18c2eb74b531c4c06 (patch)
tree8f71f809699cac80175fddc5366dc98c8c5b93f6 /tools/perf/scripts/python/task-analyzer.py
parentf2489456fe54757098d967c1362c637da0be08a9 (diff)
downloadlinux-8b13c2239d8b65604b7a0ff18c2eb74b531c4c06.tar.xz
crypto: skcipher - optimize initializing skcipher_walk fields
The helper functions like crypto_skcipher_blocksize() take in a pointer to a tfm object, but they actually return properties of the algorithm. As the Linux kernel is compiled with -fno-strict-aliasing, the compiler has to assume that the writes to struct skcipher_walk could clobber the tfm's pointer to its algorithm. Thus it gets repeatedly reloaded in the generated code. Therefore, replace the use of these helper functions with staightforward accesses to the struct fields. Note that while *users* of the skcipher and aead APIs are supposed to use the helper functions, this particular code is part of the API *implementation* in crypto/skcipher.c, which already accesses the algorithm struct directly in many cases. So there is no reason to prefer the helper functions here. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions