diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2021-07-01 14:20:58 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2021-07-01 16:14:37 -0300 |
commit | c435c166dcf526ac827bc964d82cc0d5e7a1fd0b (patch) | |
tree | df5c5d040a865680e10df096314cdd28cb807047 /tools/perf/Documentation | |
parent | 0323dea3185a5ca347a5add7cae56ad37465338d (diff) | |
download | linux-stable-c435c166dcf526ac827bc964d82cc0d5e7a1fd0b.tar.gz linux-stable-c435c166dcf526ac827bc964d82cc0d5e7a1fd0b.tar.bz2 linux-stable-c435c166dcf526ac827bc964d82cc0d5e7a1fd0b.zip |
perf llvm: Return -ENOMEM when asprintf() fails
Zhihao sent a patch but it made llvm__compile_bpf() return what
asprintf() returns on error, which is just -1, but since this function
returns -errno, fix it by returning -ENOMEM for this case instead.
Fixes: cb76371441d098 ("perf llvm: Allow passing options to llc ...")
Fixes: 5eab5a7ee032ac ("perf llvm: Display eBPF compiling command ...")
Reported-by: Hulk Robot <hulkci@huawei.com>
Reported-by: Zhihao Cheng <chengzhihao1@huawei.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Andrii Nakryiko <andrii@kernel.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Yu Kuai <yukuai3@huawei.com>
Cc: clang-built-linux@googlegroups.com
Link: http://lore.kernel.org/lkml/20210609115945.2193194-1-chengzhihao1@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/Documentation')
0 files changed, 0 insertions, 0 deletions