summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/util.h
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@redhat.com>2013-11-28 11:30:15 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-12-02 09:22:46 -0300
commit838d14520267769648fb2fc2a637107a1d102590 (patch)
tree48f16ca6aa41f01ac852114a224f3715578f1b15 /tools/perf/util/util.h
parent727ebd544f85285a223ecc6a2a57ef90202cdc7b (diff)
downloadop-kernel-dev-838d14520267769648fb2fc2a637107a1d102590.zip
op-kernel-dev-838d14520267769648fb2fc2a637107a1d102590.tar.gz
perf tools: Fine tune readn function
Added a 'left' variable to make the flow clearer, and added a debug check for the return value - returning 'n' is more obvious. Added small comment for readn. Signed-off-by: Jiri Olsa <jolsa@redhat.com> Original-patch-by: Ingo Molnar <mingo@kernel.org> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/1385634619-8129-4-git-send-email-jolsa@redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/util.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud