aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib
diff options
context:
space:
mode:
authorDavid Howells <[email protected]>2017-07-04 17:25:02 +0100
committerAl Viro <[email protected]>2017-07-06 03:27:09 -0400
commitf35157417215ec138c920320c746fdb3e04ef1d5 (patch)
tree5d8e536fc716419fe3b9474dcacb92c6f055930f /tools/perf/scripts/python/Perf-Trace-Util/lib
parentc0bc126f97fb929b3ae02c1c62322645d70eb408 (diff)
Provide a function to create a NUL-terminated string from unterminated data
Provide a function, kmemdup_nul(), that will create a NUL-terminated string from an unterminated character array where the length is known in advance. This is better than kstrndup() in situations where we already know the string length as the strnlen() in kstrndup() is superfluous. Signed-off-by: David Howells <[email protected]> Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions