aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
diff options
context:
space:
mode:
authorGeliang Tang <[email protected]>2019-04-25 00:48:29 +0800
committerJens Axboe <[email protected]>2019-04-24 10:56:27 -0600
commit792732d9852c0e4505aceff4631ea2168fd02480 (patch)
tree4dea3d30ac952c2a31d80fc4064ab724c13e5d5a /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
parent78d4eb8ad9e1d413449d1b7a060f50b6efa81ebd (diff)
bcache: use kmemdup_nul for CACHED_LABEL buffer
This patch uses kmemdup_nul to create a NUL-terminated string from dc->sb.label. This is better than open coding it. With this, we can move env[2] initialization into env[] array to make code more elegant. Signed-off-by: Geliang Tang <[email protected]> Signed-off-by: Coly Li <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions