[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YC7CetsRKrZXf8WE@kernel.org>
Date: Thu, 18 Feb 2021 16:39:38 -0300
From: Arnaldo Carvalho de Melo <acme@...nel.org>
To: Nicholas Fraser <nfraser@...eweavers.com>
Cc: Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>,
Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Jiri Olsa <jolsa@...hat.com>,
Namhyung Kim <namhyung@...nel.org>,
Ian Rogers <irogers@...gle.com>,
"Frank Ch. Eigler" <fche@...hat.com>,
Song Liu <songliubraving@...com>,
Adrian Hunter <adrian.hunter@...el.com>,
Kim Phillips <kim.phillips@....com>,
Tommi Rantala <tommi.t.rantala@...ia.com>,
Remi Bernon <rbernon@...eweavers.com>,
linux-kernel@...r.kernel.org,
Ulrich Czekalla <uczekalla@...eweavers.com>,
Huw Davies <huw@...eweavers.com>
Subject: Re: [PATCH 1/2] perf report: Remove redundant libbfd checks
Em Tue, Feb 16, 2021 at 03:37:20PM -0500, Nicholas Fraser escreveu:
> This removes the redundant checks bfd_check_format() and
> bfd_target_elf_flavour. They were previously checking different files.
you forgot the:
Signed-off-by: Nicholas Fraser <nfraser@...eweavers.com>
I'm adding it, ok?
I'm also addressing Jiri's remark about spaces surrounding |
- Arnaldo
> ---
> tools/perf/util/symbol.c | 9 ---------
> 1 file changed, 9 deletions(-)
>
> diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c
> index 492c873713cc..08f6f57c84fd 100644
> --- a/tools/perf/util/symbol.c
> +++ b/tools/perf/util/symbol.c
> @@ -1586,15 +1586,6 @@ int dso__load_bfd_symbols(struct dso *dso, const char *debugfile)
> if (section)
> dso->text_offset = section->vma - section->filepos;
>
> - if (!bfd_check_format(abfd, bfd_object)) {
> - pr_debug2("%s: cannot read %s bfd file.\n", __func__,
> - debugfile);
> - goto out_close;
> - }
> -
> - if (bfd_get_flavour(abfd) == bfd_target_elf_flavour)
> - goto out_close;
> -
> symbols_size = bfd_get_symtab_upper_bound(abfd);
> if (symbols_size == 0) {
> bfd_close(abfd);
> --
> 2.30.1
--
- Arnaldo
Powered by blists - more mailing lists