aboutsummaryrefslogtreecommitdiffstats
path: root/tools/include/linux/string.h
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2020-11-26 18:00:06 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2020-11-27 08:34:52 -0300
commitb3e453272d436aab8adbe810c6d7043670281487 (patch)
tree8181da0c5bea8d6a91f15699f6c8d5ee8f03a9f1 /tools/include/linux/string.h
parentperf arm-spe: Add support for ARMv8.3-SPE (diff)
downloadlinux-dev-b3e453272d436aab8adbe810c6d7043670281487.tar.xz
linux-dev-b3e453272d436aab8adbe810c6d7043670281487.zip
tools lib: Adopt memchr_inv() from kernel
We'll use it to check for undefined/zero data. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Suggested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Acked-by: Namhyung Kim <namhyung@kernel.org> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Alexey Budankov <alexey.budankov@linux.intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Ian Rogers <irogers@google.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Michael Petlan <mpetlan@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Song Liu <songliubraving@fb.com> Cc: Stephane Eranian <eranian@google.com> Link: http://lore.kernel.org/lkml/20201126170026.2619053-6-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/include/linux/string.h')
-rw-r--r--tools/include/linux/string.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/include/linux/string.h b/tools/include/linux/string.h
index 5e9e781905ed..db5c99318c79 100644
--- a/tools/include/linux/string.h
+++ b/tools/include/linux/string.h
@@ -46,4 +46,5 @@ extern char * __must_check skip_spaces(const char *);
extern char *strim(char *);
+extern void *memchr_inv(const void *start, int c, size_t bytes);
#endif /* _TOOLS_LINUX_STRING_H_ */