diff options
| author | David Carrillo-Cisneros <[email protected]> | 2017-07-18 04:25:37 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2017-07-19 02:14:29 +0000 |
| commit | 7c72440506e2108494bab3b68a4118fa61a9dbf4 (patch) | |
| tree | 6aeb313fcf98b6225e785b0cfc438888607e62cf /tools/perf/builtin-script.c | |
| parent | perf header: Fail on write_padded error (diff) | |
| download | kernel-7c72440506e2108494bab3b68a4118fa61a9dbf4.tar.gz kernel-7c72440506e2108494bab3b68a4118fa61a9dbf4.zip | |
perf util: Add const modifier to buf in "writen" function
Make buf in helper function "writen" constant to simplify the life of
its callers.
This requires to hack a cast of buf prior to passing it to "ion" which
is simpler than the alternative of reworking the "ion" function to
provide a read and a write paths, the latter with constant buf argument.
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]>
Diffstat (limited to 'tools/perf/builtin-script.c')
0 files changed, 0 insertions, 0 deletions
