perf header: Revamp do_write()
authorDavid Carrillo-Cisneros <[email protected]>
Tue, 18 Jul 2017 04:25:38 +0000 (21:25 -0700)
committerArnaldo Carvalho de Melo <[email protected]>
Wed, 19 Jul 2017 02:14:30 +0000 (23:14 -0300)
commit3b8f51a677ce574f69671e3f7822b4d8f8634ef3
tree1133846fa716e55e23bb26ce58be5c53056a163e
parent7c72440506e2108494bab3b68a4118fa61a9dbf4
perf header: Revamp do_write()

Now that writen takes a const buffer, use it in do_write instead of
duplicating its functionality.

Export do_write to use it consistently in header.c and build_id.c .

Signed-off-by: David Carrillo-Cisneros <[email protected]>
Acked-by: David Ahern <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: He Kuang <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Turner <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Simon Que <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/build-id.c
tools/perf/util/header.c
tools/perf/util/header.h