aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-10-08 21:05:52 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-11-11 20:10:01 +0900
commit9a066357184485784f782719093ff804d05b85db (patch)
tree848b852c2fec4c2a648b3cdbb49ab391341541af /tools/perf/scripts/python/export-to-postgresql.py
parentkbuild: do not read $(KBUILD_EXTMOD)/Module.symvers (diff)
downloadlinux-dev-9a066357184485784f782719093ff804d05b85db.tar.xz
linux-dev-9a066357184485784f782719093ff804d05b85db.zip
kheaders: remove unneeded 'cat' command piped to 'head' / 'tail'
The 'head' and 'tail' commands can take a file path directly. So, you do not need to run 'cat'. cat kernel/kheaders.md5 | head -1 ... is equivalent to: head -1 kernel/kheaders.md5 and the latter saves forking one process. While I was here, I replaced 'head -1' with 'head -n 1'. I also replaced '==' with '=' since we do not have a good reason to use the bashism. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions