Skip to content

Commit e1a8b5b

Browse files
committed
common: enable stack usage statistics properly
Signed-off-by: Tomasz Gromadzki <tomasz.gromadzki@intel.com>
1 parent 069efd7 commit e1a8b5b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/Makefile.inc

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ DEFAULT_CFLAGS += -Wpointer-arith
3030
DEFAULT_CFLAGS += -Wsign-conversion
3131
DEFAULT_CFLAGS += -Wsign-compare
3232
DEFAULT_CFLAGS += -Wunused-parameter
33+
DEFAULT_CFLAGS += -fstack-usage
3334

3435
ifeq ($(WCONVERSION_AVAILABLE), y)
3536
DEFAULT_CFLAGS += -Wconversion

src/libpmem/Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ ifeq ($(OS_DIMM),ndctl)
5050
SOURCE +=\
5151
region_namespace_ndctl.c\
5252
numa_ndctl.c
53-
CFLAGS += $(LIBNDCTL_CFLAGS)
5453
LIBS += $(LIBNDCTL_LIBS)
5554
else
5655
SOURCE +=\
@@ -66,6 +65,10 @@ SOURCE += $(LIBPMEM2_ARCH_SOURCE)
6665

6766
include ../Makefile.inc
6867

68+
ifeq ($(OS_DIMM),ndctl)
69+
CFLAGS += $(LIBNDCTL_CFLAGS)
70+
endif
71+
6972
include $(PMEM2)/$(ARCH)/flags.inc
7073

7174
CFLAGS += -I.

0 commit comments

Comments
 (0)