btrfs-progs: add option to disable backtrace usage
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Tue, 7 Oct 2014 14:09:04 +0000 (11:09 -0300)
committerDavid Sterba <dsterba@suse.cz>
Fri, 10 Oct 2014 08:38:38 +0000 (10:38 +0200)
commit05499d865f061c258ef2a15b1ad5b650c991371a
tree0497561ebc867ee9d022b30a5748ddc72094a3e2
parentcb37bf83cc583dfe1e22344049a649b363228509
btrfs-progs: add option to disable backtrace usage

This commit adds the support for a make variable named
"DISABLE_BACKTRACE" which allows to disable the support for backtrace()
usage on ASSERT(), BUG() and BUG_ON() calls.
This is useful because some alternative C libraries like uClibc have
optional support for backtrace() which is rarely built when debugging
isn't taking place.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: David Sterba <dsterba@suse.cz>
Makefile
kerncompat.h