original_kernel/tools/perf
Adrien BAK ffa91880a9 perf tools: Improve error reporting
In the current version, when using perf record, if something goes
wrong in tools/perf/builtin-record.c:375
  session = perf_session__new(file, false, NULL);

The error message:
"Not enough memory for reading per file header"

is issued. This error message seems to be outdated and is not very
helpful. This patch proposes to replace this error message by
"Perf session creation failed"

I believe this issue has been brought to lkml:
https://lkml.org/lkml/2014/2/24/458
although this patch only tackles a (small) part of the issue.

Additionnaly, this patch improves error reporting in
tools/perf/util/data.c open_file_write.

Currently, if the call to open fails, the user is unaware of it.
This patch logs the error, before returning the error code to
the caller.

Reported-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Adrien BAK <adrien.bak@metascale.org>
Link: http://lkml.kernel.org/r/1397786443.3093.4.camel@beast
[ Reorganize the changelog into paragraphs ]
[ Added empty line after fd declaration in open_file_write ]
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
2014-04-20 00:15:12 +02:00
..
Documentation perf bench: Update manpage to mention numa and futex 2014-04-14 12:55:41 +02:00
arch
bench Merge branch 'perf-core-for-mingo' into perf/urgent 2014-04-14 16:45:39 +02:00
config Merge branch 'perf-core-for-mingo' into perf/urgent 2014-04-14 16:45:39 +02:00
python
scripts
tests perf tools: Fix double free in perf test 21 (code-reading.c) 2014-04-15 13:57:14 +02:00
ui perf ui hists: Pass evsel to hpp->header/width functions explicitly 2014-03-14 18:08:40 -03:00
util perf tools: Improve error reporting 2014-04-20 00:15:12 +02:00
.gitignore
CREDITS
MANIFEST
Makefile
Makefile.perf perf tools: Instead of redirecting flex output, use -o 2014-04-15 13:57:21 +02:00
builtin-annotate.c
builtin-bench.c perf bench: Fix segfault at the end of an 'all' execution 2014-04-14 12:55:53 +02:00
builtin-buildid-cache.c
builtin-buildid-list.c
builtin-diff.c perf ui hists: Pass evsel to hpp->header/width functions explicitly 2014-03-14 18:08:40 -03:00
builtin-evlist.c
builtin-help.c
builtin-inject.c
builtin-kmem.c
builtin-kvm.c perf kvm: Fix 'Min time' counting in report command 2014-04-20 00:14:08 +02:00
builtin-list.c
builtin-lock.c
builtin-mem.c
builtin-probe.c
builtin-record.c perf tools: Improve error reporting 2014-04-20 00:15:12 +02:00
builtin-report.c perf report: Use ui__has_annotation() 2014-03-18 18:17:02 -03:00
builtin-sched.c perf sched: Fixup header alignment in 'latency' output 2014-03-18 18:16:55 -03:00
builtin-script.c
builtin-stat.c perf stat: Initialize statistics correctly 2014-04-14 12:56:06 +02:00
builtin-timechart.c perf symbols: Record the reason for filtering an address_location 2014-03-18 18:16:57 -03:00
builtin-top.c
builtin-trace.c
builtin.h
command-list.txt
design.txt perf tools: Update some code references in design.txt 2014-03-18 18:17:06 -03:00
perf-archive.sh
perf-completion.sh perf kvm: introduce --list-cmds for use by scripts 2014-03-14 18:08:41 -03:00
perf.c
perf.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile 2014-04-06 08:11:57 -07:00