linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Jiri Olsa <jolsa@kernel.org>, Andi Kleen <ak@linux.intel.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: [PATCH] perf lzma: Quieten lzma warning
Date: Mon, 17 Oct 2022 09:36:19 -0300	[thread overview]
Message-ID: <Y01MQ631C5EwIFz5@kernel.org> (raw)
In-Reply-To: <20221004190615.998656-1-ak@linux.intel.com>

Em Tue, Oct 04, 2022 at 12:06:15PM -0700, Andi Kleen escreveu:
> On my Fedora system which is missing some modules I always get a long flood
> of
> 
> lzma: fopen failed on /usr/lib/modules/5.3.9-300.fc31.x86_64/kernel/sound/pci/hda/snd-hda-codec.ko.xz: 'No such file or directory'
> lzma: fopen failed on /usr/lib/modules/5.16.7-200.fc35.x86_64/kernel/sound/pci/hda/snd-hda-intel.ko.xz: 'No such file or directory'
> lzma: fopen failed on /usr/lib/modules/5.1.11-200.fc29.x86_64/kernel/drivers/vhost/vhost_net.ko.xz: 'No such file or directory'
> 
> for each use of "perf list".
> 
> Disable the message.
> 
> Also I'm not sure why it's looking at the modules of each kernel, not
> just the running one, but that's a different problem.

Yeah, I see this from time to time, would be interesting to find the
root cause for looking at te modules for each kernel :-\

I'll try to take a look if Jiri doesn't have any idea about this.

- Arnaldo
 
> Signed-off-by: Andi Kleen <ak@linux.intel.com>
> ---
>  tools/perf/util/lzma.c | 5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)
> 
> diff --git a/tools/perf/util/lzma.c b/tools/perf/util/lzma.c
> index 51424cdc3b68..ef0520c82245 100644
> --- a/tools/perf/util/lzma.c
> +++ b/tools/perf/util/lzma.c
> @@ -44,11 +44,8 @@ int lzma_decompress_to_file(const char *input, int output_fd)
>  	FILE *infile;
>  
>  	infile = fopen(input, "rb");
> -	if (!infile) {
> -		pr_err("lzma: fopen failed on %s: '%s'\n",
> -		       input, strerror(errno));
> +	if (!infile)
>  		return -1;
> -	}
>  
>  	ret = lzma_stream_decoder(&strm, UINT64_MAX, LZMA_CONCATENATED);
>  	if (ret != LZMA_OK) {
> -- 
> 2.37.2

-- 

- Arnaldo

  reply	other threads:[~2022-10-17 12:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-04 19:06 [PATCH] perf lzma: Quieten lzma warning Andi Kleen
2022-10-17 12:36 ` Arnaldo Carvalho de Melo [this message]
2022-11-16 17:03 ` Arnaldo Carvalho de Melo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y01MQ631C5EwIFz5@kernel.org \
    --to=acme@kernel.org \
    --cc=ak@linux.intel.com \
    --cc=jolsa@kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).