Revert "btrfs-progs: disable backtrace and define __always_inline"
PATCH 1/1 Revert "btrfs-progs: disable backtrace and define __always_inline"
This reverts commit c2691f807ddd2c6b261c5707f6838a45d9275390 as it breaks backtracing on actual glibc environments.
--- kerncompat.h | 6 ------ 1 file changed, 6 deletions(-)
kerncompat.h +0 -6
@@ -29,12 +29,6 @@#include <stddef.h> #include <linux/types.h> #include <stdint.h> - -#ifndef __glibc__ -#define BTRFS_DISABLE_BACKTRACE -#define __always_inline __inline __attribute__ ((__always_inline__)) -#endif -#ifndef BTRFS_DISABLE_BACKTRACE #include <execinfo.h> #endif
Signature · 1 line
1.8.3.1
Quoted 2 lines · Josef Bacik
This reverts commit
c2691f807ddd2c6b261c5707f6838a45d9275390as it breaks backtracing on actual glibc environments.
This is to support musl libc. If it does not work then the test is wrong and should be fixed. CCed the author.
http://openwall.com/lists/musl/2013/03/29/13
Seems that there's no ifdef way to find out the libc used.
It's a regression and I don't have the setup to figure out how to make it work for both. If somebody else can fix it quickly then fine but if not it needs to be reverted. Thanks,
Josef
David Sterba <[email protected]> wrote:
Quoted 2 lines · Josef Bacik
This reverts commit
c2691f807ddd2c6b261c5707f6838a45d9275390as it breaks backtracing on actual glibc environments.
This is to support musl libc. If it does not work then the test is wrong and should be fixed. CCed the author.
Seems that there's no ifdef way to find out the libc used.
Hi,
Quoted 6 lines · David Sterba
Quoted 2 lines · Josef Bacik
This reverts commit
c2691f807ddd2c6b261c5707f6838a45d9275390as it breaks backtracing on actual glibc environments.This is to support musl libc. If it does not work then the test is wrong and should be fixed. CCed the author.
Thanks for letting me know. It unfortunately seems like I made a
mistake: it should be __GLIBC__ and not __glibc__.
Sorry about that. Would you like me to create a patch?
Regards,
Merlijn
This only works if you include features.h and I don't know if other libcs provide that. Thanks,
Josef
Merlijn Wajer <[email protected]> wrote:
Hi,
Quoted 6 lines · David Sterba
Quoted 2 lines · Josef Bacik
This reverts commit
c2691f807ddd2c6b261c5707f6838a45d9275390as it breaks backtracing on actual glibc environments.This is to support musl libc. If it does not work then the test is wrong and should be fixed. CCed the author.
Thanks for letting me know. It unfortunately seems like I made a
mistake: it should be __GLIBC__ and not __glibc__.
Sorry about that. Would you like me to create a patch?
Regards,
Merlijn
Hi,
Quoted 1 line · Josef Bacik
This only works if you include
features.hand I don't know if other libcs provide that. Thanks,
musl provides /usr/include/features.h and glibc does so as well. (Checked on musl and glibc systems) Searching the web seems to suggest that uclibc supports it as well.
Would you be in favour of including features.h and checking for __GLIBC__ ?
Regards,
Merlijn
Yeah just make sure we still get a backtrace on glibc. Thanks,
Josef
Merlijn Wajer <[email protected]> wrote:
Hi,
Quoted 1 line · Josef Bacik
This only works if you include
features.hand I don't know if other libcs provide that. Thanks,
musl provides /usr/include/features.h and glibc does so as well. (Checked on musl and glibc systems) Searching the web seems to suggest that uclibc supports it as well.
Would you be in favour of including features.h and checking for __GLIBC__ ?
Regards,
Merlijn
Quoted 5 lines · Merlijn Wajer
Quoted 1 line
This only works if you include
features.hand I don't know if other libcs provide that. Thanks,musl provides
/usr/include/features.hand glibc does so as well. (Checked on musl and glibc systems) Searching the web seems to suggest that uclibc supports it as well.
I'd say that we care about these two right now.
Quoted 1 line
Would you be in favour of including
features.hand checking for__GLIBC__?
Yes please.
Hi,
Quoted 7 lines · David Sterba
Quoted 5 lines · Merlijn Wajer
Quoted 1 line
This only works if you include
features.hand I don't know if other libcs provide that. Thanks,musl provides
/usr/include/features.hand glibc does so as well. (Checked on musl and glibc systems) Searching the web seems to suggest that uclibc supports it as well.
Quoted 5 lines
I'd say that we care about these two right now.
Quoted 1 line
Would you be in favour of including
features.hand checking for__GLIBC__?Yes please.
Alright. I will send a patch tomorrow - it's definitely past bed time here now. :-)
Sorry for the inconvenience.
Regards,
Merlijn