Re: [Report] crash tool cannot resolve struct dm_table properly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,


On 04/13/2017 07:28 PM, Mikulas Patocka wrote:

On Thu, 13 Apr 2017, Eric Ren wrote:

Hi Mikulas,

When inspecting on coredump with crash tool, I find that 'dm_table' cannot be
resolved properly as follows:

===
crash> struct dm_table
struct dm_table {
     int undefined__;
}
SIZE: 4
===

Looks this issue is introduced by 83d5e5b (dm: optimize use SRCU and RCU) with
this code:
===
+/*
+ * A dummy definition to make RCU happy.
+ * struct dm_table should never be dereferenced in this file.
  + */ +struct dm_table {
+ int undefined__;
+};
+
===

It stops me from looking into dm_table when analyzing coredump. Is there any
workaround?
or can be fixed somehow?

Regards,
Eric
So, move dm_table definition to drivers/md/dm.h
Thanks. So, are your going to fix this? Or should I test on your suggestion
and send a patch if it works?

Regards,
Eric

Mikulas


--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel



[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux