Skip to content

Implement word-at-a-time string functions for ARM

Will Deacon linux-arm-kernel lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v1 RFC2 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ARM: use generic strnlen_user and strncpy_from_user functionsarch/arm/Kconfig arch/arm/include/asm/uaccess.h arch/arm/include/asm/word-at-a-time.h +4 more+63 -1090 replies
2/2ARM: dcache: select DCACHE_WORD_ACCESS for little-endian ARMv6+ CPUsarch/arm/Kconfig arch/arm/include/asm/word-at-a-time.h+42 -00 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchNicolas Pitre
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] Implement word-at-a-time string functions for ARM

Hi all,

This is version 2 of the patches originally posted here:

http://lists.infradead.org/pipermail/linux-arm-kernel/2012-June/103290.html

There are only cosmetic changes from v1:
- Added Nico's reviewed-by tags
- Removed RFC prefix
- Fixed changelog to echo the fact that we may use clz

I'm still interested in any pathname-heavy benchmarks that people may have to stress the name hashing code. My simple find test does show an improvement but I don't know how realistic that is.

Cheers,

Will

Will Deacon (2):
ARM: use generic strnlen_user and strncpy_from_user functions
ARM: dcache: select DCACHE_WORD_ACCESS for little-endian ARMv6+ CPUs

 arch/arm/Kconfig                      |    3 +
 arch/arm/include/asm/uaccess.h        |   27 ++-------
 arch/arm/include/asm/word-at-a-time.h |   96 +++++++++++++++++++++++++++++++++
 arch/arm/kernel/armksyms.c            |    4 --
 arch/arm/lib/Makefile                 |    1 -
 arch/arm/lib/strncpy_from_user.S      |   43 ---------------
 arch/arm/lib/strnlen_user.S           |   40 --------------
 7 files changed, 105 insertions(+), 109 deletions(-)
 create mode 100644 arch/arm/include/asm/word-at-a-time.h
 delete mode 100644 arch/arm/lib/strncpy_from_user.S
 delete mode 100644 arch/arm/lib/strnlen_user.S
Signature · 1 line
1.7.4.1