mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
cpacfstatsd now correctly handles offline cpus and dynamically attaches to cpus once they get online. If events are enabled when a hotplug event occurs, cpacfstatsd uses a pseudo-counter to notify user applications about the occurence of this event and a potential data inaccuracy. cpacfstats shows if a hotplug event has been detected since at least one counter was activated. As soon as all counters are deactivated, the hotplug detection state is reset. Signed-off-by: Juergen Christ <jchrist@linux.ibm.com> Reviewed-By: Harald Freudenberger <freude@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
42 lines
843 B
Makefile
42 lines
843 B
Makefile
include ../common.mak
|
|
|
|
ifeq (${HAVE_LIBUDEV},0)
|
|
|
|
all:
|
|
$(SKIP) HAVE_LIBUDEV=0
|
|
|
|
install:
|
|
$(SKIP) HAVE_LIBUDEV=0
|
|
|
|
else
|
|
|
|
check_dep:
|
|
$(call check_dep, \
|
|
"cpacfstatsd", \
|
|
"libudev.h", \
|
|
"systemd-devel", \
|
|
"HAVE_LIBUDEV=0")
|
|
|
|
ALL_CPPFLAGS += -DVERSION=$(VERSION)
|
|
|
|
all: check_dep cpacfstats cpacfstatsd
|
|
|
|
cpacfstatsd: cpacfstatsd.o stats_sock.o perf_crypto.o
|
|
$(LINK) $(ALL_LDFLAGS) $^ $(LDLIBS) -ludev -lpthread -o $@
|
|
|
|
cpacfstats: cpacfstats.o stats_sock.o
|
|
$(LINK) $(ALL_LDFLAGS) $^ $(LDLIBS) -o $@
|
|
|
|
install: all
|
|
$(INSTALL) -m 755 cpacfstatsd $(DESTDIR)$(USRSBINDIR)
|
|
$(INSTALL) -m 755 cpacfstats $(DESTDIR)$(USRBINDIR)
|
|
$(INSTALL) -m 644 cpacfstatsd.8 $(DESTDIR)$(MANDIR)/man8
|
|
$(INSTALL) -m 644 cpacfstats.1 $(DESTDIR)$(MANDIR)/man1
|
|
|
|
endif
|
|
|
|
clean:
|
|
rm -f *.o *~ cpacfstatsd cpacfstats
|
|
|
|
.PHONY: all clean install check_dep
|