if HAVE_MX32_RUNTIME
TESTS_MX32 = tests-mx32
endif
-SUBDIRS = tests $(TESTS_M32) $(TESTS_MX32)
+SUBDIRS = . tests $(TESTS_M32) $(TESTS_MX32)
bin_PROGRAMS = strace
-man_MANS = strace.1
+man_MANS = strace.1 strace-log-merge.1
bin_SCRIPTS = strace-graph strace-log-merge
OS = linux
# ARCH is `i386', `m68k', `sparc', etc.
ARCH = @arch@
+READELF = @READELF@
+
ACLOCAL_AMFLAGS = -I m4
AM_CFLAGS = $(WARN_CFLAGS)
AM_CPPFLAGS = -I$(builddir)/$(OS)/$(ARCH) \
affinity.c \
aio.c \
alpha.c \
+ basic_filters.c \
+ bind.c \
bjm.c \
block.c \
bpf.c \
+ bpf_filter.c \
+ bpf_filter.h \
+ bpf_fprog.h \
+ bpf_seccomp_filter.c \
+ bpf_sock_filter.c \
btrfs.c \
cacheflush.c \
capability.c \
dirent.c \
dirent64.c \
dm.c \
+ dyxlat.c \
empty.h \
epoll.c \
+ error_prints.c \
+ error_prints.h \
evdev.c \
eventfd.c \
execve.c \
fanotify.c \
fchownat.c \
fcntl.c \
- fetch_seccomp_fprog.c \
+ fetch_bpf_fprog.c \
fetch_struct_flock.c \
+ fetch_struct_keyctl_kdf_params.c \
fetch_struct_mmsghdr.c \
fetch_struct_msghdr.c \
fetch_struct_stat.c \
fetch_struct_statfs.c \
file_handle.c \
file_ioctl.c \
- fs_x_ioctl.c \
+ filter_qualify.c \
+ filter.h \
flock.c \
flock.h \
+ fs_x_ioctl.c \
futex.c \
gcc_compat.h \
get_robust_list.c \
kernel_types.h \
kexec.c \
keyctl.c \
+ keyctl_kdf_params.h \
+ kvm.c \
ldt.c \
link.c \
linux/asm_stat.h \
linux/x32/asm_stat.h \
linux/x86_64/asm_stat.h \
+ listen.c \
lookup_dcookie.c \
loop.c \
lseek.c \
+ macros.h \
mem.c \
membarrier.c \
memfd_create.c \
msghdr.h \
mtd.c \
native_defs.h \
+ negated_errno.h \
net.c \
netlink.c \
+ netlink.h \
+ netlink_crypto.c \
+ netlink_sock_diag.h \
+ netlink_inet_diag.c \
+ netlink_netlink_diag.c \
+ netlink_packet_diag.c \
+ netlink_route.c \
+ netlink_route.h \
+ netlink_selinux.c \
+ netlink_smc_diag.c \
netlink_sock_diag.c \
+ netlink_unix_diag.c \
+ nlattr.c \
+ nlattr.h \
nsfs.c \
nsfs.h \
nsig.h \
numa.c \
+ number_set.c \
+ number_set.h \
oldstat.c \
open.c \
or1k_atomic.c \
poll.c \
prctl.c \
print_dev_t.c \
+ print_group_req.c \
+ print_fields.h \
+ print_ifindex.c \
print_mq_attr.c \
print_msgbuf.c \
print_sg_req_info.c \
process_vm.c \
ptp.c \
ptrace.h \
- qualify.c \
quota.c \
readahead.c \
readlink.c \
rt_sigframe.c \
rt_sigreturn.c \
rtc.c \
+ rtnl_addr.c \
+ rtnl_addrlabel.c \
+ rtnl_dcb.c \
+ rtnl_link.c \
+ rtnl_mdb.c \
+ rtnl_neigh.c \
+ rtnl_neightbl.c \
+ rtnl_netconf.c \
+ rtnl_nsid.c \
+ rtnl_route.c \
+ rtnl_rule.c \
+ rtnl_tc.c \
+ rtnl_tc_action.c \
sched.c \
sched_attr.h \
scsi.c \
seccomp.c \
- seccomp_fprog.h \
sendfile.c \
sg_io_v3.c \
sg_io_v4.c \
+ shutdown.c \
sigaltstack.c \
sigevent.h \
signal.c \
statx.c \
statx.h \
strace.c \
+ string_to_uint.h \
+ string_to_uint.c \
+ supported_personalities.h \
swapon.c \
syscall.c \
sysctl.c \
sysent.h \
+ sysent_shorthand_defs.h \
+ sysent_shorthand_undefs.h \
sysinfo.c \
syslog.c \
sysmips.c \
term.c \
time.c \
times.c \
+ trace_event.h \
truncate.c \
ubi.c \
+ ucopy.c \
uid.c \
uid16.c \
umask.c \
xlat.c \
xlat.h \
xmalloc.c \
+ xmalloc.h \
+ xstring.h \
# end of strace_SOURCES
if USE_LIBUNWIND
strace_CPPFLAGS += $(libunwind_CPPFLAGS)
strace_LDFLAGS += $(libunwind_LDFLAGS)
strace_LDADD += $(libunwind_LIBS)
+if USE_DEMANGLE
+strace_CPPFLAGS += $(libiberty_CPPFLAGS)
+strace_LDFLAGS += $(libiberty_LDFLAGS)
+strace_LDADD += $(libiberty_LIBS)
+endif
endif
@CODE_COVERAGE_RULES@
CODE_COVERAGE_IGNORE_PATTERN = '/usr/include/*'
strace_CPPFLAGS += $(CODE_COVERAGE_CPPFLAGS)
strace_CFLAGS += $(CODE_COVERAGE_CFLAGS)
-strace_LDADD += $(CODE_COVERAGE_LDFLAGS)
+strace_LDADD += $(CODE_COVERAGE_LIBS)
# Enable this to get link map generated
#strace_LDFLAGS += -Wl,-Map=strace.mapfile
linux/arc/set_error.c \
linux/arc/set_scno.c \
linux/arc/syscallent.h \
+ linux/arch_kvm.c \
linux/arch_regs.h \
linux/arch_sigreturn.c \
linux/arm/arch_regs.c \
linux/hppa/set_scno.c \
linux/hppa/signalent.h \
linux/hppa/syscallent.h \
+ linux/i386/arch_kvm.c \
linux/i386/arch_regs.c \
linux/i386/arch_regs.h \
linux/i386/arch_rt_sigframe.c \
linux/mips/syscallent-o32.h \
linux/mips/syscallent.h \
linux/mips/userent.h \
- linux/mtd-abi.h \
linux/netlink_diag.h \
linux/nios2/arch_regs.c \
linux/nios2/arch_regs.h \
linux/or1k/syscallent.h \
linux/or1k/userent.h \
linux/packet_diag.h \
- linux/personality.h \
linux/powerpc/arch_regs.c \
linux/powerpc/arch_regs.h \
linux/powerpc/arch_rt_sigframe.c\
linux/powerpc64/syscallent.h \
linux/powerpc64/syscallent1.h \
linux/powerpc64/userent.h \
- linux/ptp_clock.h \
linux/riscv/arch_regs.c \
linux/riscv/arch_regs.h \
linux/riscv/arch_rt_sigframe.c \
linux/sh64/syscallent.h \
linux/sh64/userent.h \
linux/signalent.h \
+ linux/smc_diag.h \
linux/sock_diag.h \
linux/sparc/arch_getrval2.c \
linux/sparc/arch_regs.c \
linux/tile/syscallent.h \
linux/tile/syscallent1.h \
linux/tile/userent.h \
- linux/ubi-user.h \
linux/unix_diag.h \
linux/userent.h \
linux/userent0.h \
+ linux/x32/arch_kvm.c \
linux/x32/arch_regs.c \
linux/x32/arch_regs.h \
linux/x32/arch_rt_sigframe.c \
linux/x32/syscallent.h \
linux/x32/syscallent1.h \
linux/x32/userent.h \
+ linux/x86_64/arch_kvm.c \
linux/x86_64/arch_regs.c \
linux/x86_64/arch_regs.h \
linux/x86_64/arch_rt_sigframe.c \
dist-hook:
$(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
${AM_V_GEN}echo $(COPYRIGHT_YEAR) > $(distdir)/.year
+ ${AM_V_GEN}echo $(MANPAGE_DATE) > $(distdir)/.strace.1.in.date
today = $(shell date +%Y-%m-%d)
version_regexp = $(subst .,\.,$(VERSION))
mpers-m%.stamp: $(srcdir_mpers_source_files) | printers.h
for f in $^; do \
- CC="$(CC)" CFLAGS="$(mpers_sh_opts) -DMPERS_IS_$(mpers_NAME)" \
- CPP="$(CPP)" CPPFLAGS="$(mpers_sh_opts) -DIN_MPERS -DMPERS_IS_$(mpers_NAME)" \
- $(srcdir)/mpers.sh -$(mpers_NAME) $$f || exit; \
+ READELF="$(READELF)" \
+ CC="$(CC)" \
+ CFLAGS="$(mpers_sh_opts) -DMPERS_IS_$(mpers_NAME)" \
+ CPP="$(CPP)" \
+ CPPFLAGS="$(mpers_sh_opts) -DIN_MPERS -DMPERS_IS_$(mpers_NAME)" \
+ $(srcdir)/mpers.sh $(mpers_NAME) $(mpers_CC_FLAGS) $$f || exit; \
done
> $@
CLEANFILES += $(mpers_m32_targets)
$(mpers_m32_targets): mpers_NAME = m32
+$(mpers_m32_targets): mpers_CC_FLAGS = @cc_flags_m32@
endif # HAVE_M32_MPERS
CLEANFILES += $(mpers_mx32_targets)
$(mpers_mx32_targets): mpers_NAME = mx32
+$(mpers_mx32_targets): mpers_CC_FLAGS = @cc_flags_mx32@
endif # HAVE_MX32_MPERS
( \
cd $(srcdir); \
sed '/^##/,$$d' CREDITS.in; \
- { sed -n '1,/^##>/d; s/ */\t/; s/^./&/p' CREDITS.in; \
- git log --pretty=format:'%aN %aE'; \
- } | LC_ALL=C sort -u \
- | awk -F'\t' '{printf("\t%s <%s>\n",$$1,$$2)}'; \
+ sed -n '1,/^##>/d; s/ */\t/; s/^./&/p' CREDITS.in \
+ | maint/gen-contributors-list.sh - -e HEAD --initial \
+ | sed 's/\t/ /g; s/^/\t/' \
) > $@-t && mv $@-t $@
export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner --mode=go-w,go+rX