On Wed, Oct 13, 2021 at 8:18 AM Qu Wenruo [off-list ref] wrote:
Sorry, it only needs the last the stack (submit_compressed_extents+0x38)
The full command would looks like this:
$ ./scripts/faddr2line fs/btrfs/btrfs.ko submit_compressed_extents+0x38
btrfs is built-in on Fedora kernels, so there's no btrfs.ko, when I do:
$ /usr/src/kernels/5.14.9-300.fc35.x86_64/scripts/faddr2line
/boot/vmlinuz-5.14.9-300.fc35.x86_64 submit_compressed_extents+0x38
readelf: /boot/vmlinuz-5.14.9-300.fc35.x86_64: Error: Not an ELF file
- it has the wrong magic bytes at the start
nm: /boot/vmlinuz-5.14.9-300.fc35.x86_64: no symbols
nm: /boot/vmlinuz-5.14.9-300.fc35.x86_64: no symbols
no match for submit_compressed_extents+0x38
The modules needs to have debug info though.
CONFIG_BTRFS_DEBUG ?
Neither regular nor debug kernels have this set, we're only setting
CONFIG_BTRFS_ASSERT on debug kernels.
--
Chris Murphy