original_kernel/tools/perf/util
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
..
include perf tools: Remove unused simple_strtoul() function 2014-03-18 18:17:07 -03:00
scripting-engines
PERF-VERSION-GEN
abspath.c
alias.c
annotate.c perf annotate: Print the evsel name in the stdio output 2014-03-18 18:17:03 -03:00
annotate.h perf annotate: Check availability of annotate when processing samples 2014-02-24 11:12:55 -03:00
bitmap.c
build-id.c
build-id.h
cache.h
callchain.c
callchain.h
cgroup.c
cgroup.h
color.c
color.h
comm.c
comm.h
config.c
cpumap.c perf tools: Move fs.* to lib/api/fs/ 2014-02-18 09:34:49 -03:00
cpumap.h
ctype.c
data.c perf tools: Improve error reporting 2014-04-20 00:15:12 +02:00
data.h
debug.c
debug.h
dso.c perf symbols: Check return value of filename__read_debuglink() 2014-02-24 16:24:38 -03:00
dso.h perf probe: Allow to add events on the local functions 2014-02-18 09:38:43 -03:00
dwarf-aux.c
dwarf-aux.h
environment.c
event.c perf tools: Fix memory leak when synthesizing thread records 2014-03-18 18:17:01 -03:00
event.h perf callchain: Add mask into struct regs_dump 2014-02-18 09:34:48 -03:00
evlist.c
evlist.h
evsel.c perf evsel: Update function names in debug messages 2014-03-18 18:17:05 -03:00
evsel.h perf tools: Disable user-space callchain/stack dumps for function trace events 2014-03-11 11:57:59 +01:00
exec_cmd.c
exec_cmd.h
generate-cmdlist.sh
header.c
header.h
help.c
help.h
hist.c perf report: Merge al->filtered with hist_entry->filtered 2014-03-18 18:16:59 -03:00
hist.h perf symbols: Record the reason for filtering an address_location 2014-03-18 18:16:57 -03:00
hweight.c
intlist.c
intlist.h
levenshtein.c
levenshtein.h
machine.c perf tools: Use tid in mmap/mmap2 events to find maps 2014-03-18 18:17:00 -03:00
machine.h perf machine: Factor machine__find_thread to take tid argument 2014-03-14 18:08:42 -03:00
map.c
map.h perf probe: Allow to add events on the local functions 2014-02-18 09:38:43 -03:00
pager.c
parse-events.c perf list: Fix checking for supported events on older kernels 2014-02-10 11:34:31 -03:00
parse-events.h
parse-events.l
parse-events.y
parse-options.c perf kvm: introduce --list-cmds for use by scripts 2014-03-14 18:08:41 -03:00
parse-options.h perf kvm: introduce --list-cmds for use by scripts 2014-03-14 18:08:41 -03:00
path.c
perf_regs.c perf callchain: Separate perf_reg_value function in perf_regs object 2014-02-18 09:34:49 -03:00
perf_regs.h perf callchain: Separate perf_reg_value function in perf_regs object 2014-02-18 09:34:49 -03:00
pmu.c perf tools: Move fs.* to lib/api/fs/ 2014-02-18 09:34:49 -03:00
pmu.h
pmu.l
pmu.y
probe-event.c perf probe: Support distro-style debuginfo for uprobe 2014-02-18 09:38:44 -03:00
probe-event.h perf probe: Replace line_list with intlist 2014-02-18 09:34:50 -03:00
probe-finder.c perf probe: Use dwarf_getcfi_elf() instead of dwarf_getcfi() 2014-04-14 12:55:40 +02:00
probe-finder.h perf probe: Support distro-style debuginfo for uprobe 2014-02-18 09:38:44 -03:00
pstack.c
pstack.h
python-ext-sources perf tools: Move fs.* to lib/api/fs/ 2014-02-18 09:34:49 -03:00
python.c
quote.c
quote.h
rblist.c
rblist.h
record.c perf tools: Move fs.* to lib/api/fs/ 2014-02-18 09:34:49 -03:00
run-command.c
run-command.h
session.c perf session: Change header.misc dump from decimal to hex 2014-03-14 18:08:39 -03:00
session.h
setup.py
sigchain.c
sigchain.h
sort.c
sort.h
srcline.c
stat.c
stat.h
strbuf.c
strbuf.h
strfilter.c
strfilter.h
string.c
strlist.c
strlist.h
svghelper.c
svghelper.h
symbol-elf.c perf tools: Adjust symbols in VDSO 2014-04-20 00:15:11 +02:00
symbol-minimal.c
symbol.c Merge branch 'perf/urgent' into perf/core 2014-03-11 11:53:50 +01:00
symbol.h perf symbols: Record the reason for filtering an address_location 2014-03-18 18:16:57 -03:00
target.c
target.h
thread.c perf symbols: Introduce thread__find_cpumode_addr_location 2014-03-14 18:08:40 -03:00
thread.h perf tools: Remove thread__find_map function 2014-03-18 18:17:04 -03:00
thread_map.c
thread_map.h
tool.h
top.c
top.h
trace-event-info.c
trace-event-parse.c perf tools: Fix memory leak in event_format__print function 2014-02-18 09:34:47 -03:00
trace-event-read.c
trace-event-scripting.c
trace-event.c
trace-event.h
types.h
unwind-libdw.c perf tools: Add libdw DWARF post unwind support 2014-02-24 09:29:36 -03:00
unwind-libdw.h perf tools: Add libdw DWARF post unwind support 2014-02-24 09:29:36 -03:00
unwind-libunwind.c perf callchain: Separate perf_reg_value function in perf_regs object 2014-02-18 09:34:49 -03:00
unwind.h perf callchain: Introduce HAVE_DWARF_UNWIND_SUPPORT macro 2014-02-18 09:34:48 -03:00
usage.c
util.c perf tools: Move fs.* to lib/api/fs/ 2014-02-18 09:34:49 -03:00
util.h
values.c
values.h
vdso.c
vdso.h
wrapper.c
xyarray.c
xyarray.h