summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2024-06-16 13:06:56 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2024-06-19 12:35:57 -0700
commitba848a77c90800cb686a5c8cf725e9bdfdcccfc2 (patch)
tree6c196ff73b114e4b57d0fd95c7d3c3eca36e862d /tools/perf/util/trace-event-scripting.c
parent631e1a710c0489e083d4f1276f6de787a5cf08fb (diff)
downloadlinux-ba848a77c90800cb686a5c8cf725e9bdfdcccfc2.tar.gz
linux-ba848a77c90800cb686a5c8cf725e9bdfdcccfc2.tar.bz2
linux-ba848a77c90800cb686a5c8cf725e9bdfdcccfc2.zip
vfs: link_path_walk: do '.' and '..' detection while hashing
Instead of loading the name again to detect '.' and '..', just use the fact that we already had the masked last word available when as we created the name hash. Which is exactly what we'd then test for. Dealing with big-endian word ordering needs a bit of care, particularly since we have the byte-at-a-time loop as a fallback that doesn't do BE word loads. But not a big deal. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions