linux-btrace.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Thread 0 failed read of /sys/kernel/debug/block/nvme0n1/trace0: 14/Bad address
@ 2022-12-18 18:56 Jens Axboe
  2022-12-18 18:59 ` Stephen Bates
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jens Axboe @ 2022-12-18 18:56 UTC (permalink / raw)
  To: linux-btrace

On 12/18/22 11:59 AM, Stephen Bates wrote:
> Hi All
> 
> I am trying to get iowatcher up and running on a VM and I seem to be
> hitting an issue reading the debugfs trace files. When I run on the VM
> I continually get messages of the form. This is not specific to
> iowatcher in that if I run blktrace directly I get something similar:
> 
> $ blktrace -b 8192 -a queue -a complete -a issue -a notify -o ./trace -D . -d /dev/nvme0n1
> <snip>
> setup_mmap: mmap: Invalid argument
> Thread 0 failed read of /sys/kernel/debug/block/nvme0n1/trace0: 14/Bad address

It's clearly mmap failing. Are you using non-4k pages? Would be useful
to strace that so we can get some hints on why you're getting EINVAL
on the mmap, not enough info in here to render an opinion on why that
would fail on your kernel.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-12-19  5:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-18 18:56 Thread 0 failed read of /sys/kernel/debug/block/nvme0n1/trace0: 14/Bad address Jens Axboe
2022-12-18 18:59 ` Stephen Bates
2022-12-18 19:27 ` Jens Axboe
2022-12-19  5:52 ` Stephen Bates

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).