From 58d30c9475b76b388e278cfaf64d513addb02cd2 Mon Sep 17 00:00:00 2001 From: Thomas Applencourt Date: Tue, 11 Jun 2024 20:12:14 +0000 Subject: [PATCH] interval may working --- mpi/Makefile.am | 81 ++- mpi/Makefile.in | 1074 +++++++++++++++++++++++++++++ mpi/btx_mpiinterval_callbacks.cpp | 59 ++ mpi/btx_mpimatching_model.yaml | 31 + mpi/gen_babeltrace_mpi_lib.rb | 8 + mpi/gen_babeltrace_mpi_model.rb | 146 ++++ mpi/gen_mpi_library.rb | 334 +++++++++ mpi/gen_mpi_library_base.rb | 101 +++ mpi/include/mpi.h | 13 + mpi/mpi.h.include | 2 + mpi/mpi_events.yaml | 2 + 11 files changed, 1848 insertions(+), 3 deletions(-) create mode 100644 mpi/Makefile.in create mode 100644 mpi/btx_mpiinterval_callbacks.cpp create mode 100644 mpi/btx_mpimatching_model.yaml create mode 100644 mpi/gen_babeltrace_mpi_lib.rb create mode 100644 mpi/gen_babeltrace_mpi_model.rb create mode 100644 mpi/gen_mpi_library.rb create mode 100644 mpi/gen_mpi_library_base.rb create mode 100644 mpi/mpi_events.yaml diff --git a/mpi/Makefile.am b/mpi/Makefile.am index c2af4904..4c516c59 100644 --- a/mpi/Makefile.am +++ b/mpi/Makefile.am @@ -39,15 +39,25 @@ MPI_MODEL = \ $(srcdir)/mpi_model.rb \ $(srcdir)/mpi_meta_parameters.yaml \ $(srcdir)/gen_probe_base.rb \ + $(srcdir)/mpi_events.yaml \ $(top_srcdir)/utils/yaml_ast.rb \ $(top_srcdir)/utils/yaml_ast_lttng.rb \ $(top_srcdir)/utils/meta_parameters.rb \ $(top_srcdir)/utils/LTTng.rb \ $(MPI_EXTRACTED) +mpi_babeltrace_model.yaml: $(srcdir)/gen_babeltrace_mpi_model.rb $(MPI_MODEL) + SRC_DIR=$(srcdir) $(RUBY) $< > $@ + +CLEANFILES += \ + mpi_babeltrace_model.yaml + EXTRA_DIST += \ mpi_model.rb \ + gen_mpi_library_base.rb \ gen_probe_base.rb \ + mpi_events.yaml \ + gen_babeltrace_mpi_model.rb \ $(srcdir)/mpi_meta_parameters.yaml MPI_PROBES = mpi_tracepoints @@ -96,9 +106,6 @@ libmpitracepoints_la_CPPFLAGS = -I$(top_srcdir)/utils -I$(top_srcdir)/utils/incl libmpitracepoints_la_CFLAGS = -fPIC -Wall -Wextra -Wno-unused-parameter -Wno-type-limits -Wno-sign-compare $(WERROR) $(LTTNG_UST_CFLAGS) libmpitracepoints_la_LDFLAGS = $(LTTNG_UST_LIBS) -lib_LTLIBRARIES = \ - libTracerMPI.la - nodist_libTracerMPI_la_SOURCES = \ $(MPI_PROBES_INCL) \ tracer_mpi.c @@ -125,3 +132,71 @@ install-data-hook: EXTRA_DIST += mpi.h.include +mpi_library.rb: $(srcdir)/gen_mpi_library.rb $(MPI_MODEL) + SRC_DIR=$(srcdir) $(RUBY) $< > $@ + +babeltrace_mpi_lib.rb: $(srcdir)/gen_babeltrace_mpi_lib.rb $(top_srcdir)/utils/gen_library_base.rb $(MPI_MODEL) mpi_babeltrace_model.yaml + SRC_DIR=$(srcdir) $(RUBY) $< > $@ + +MPI_BINDINGS = \ + mpi_library.rb \ + babeltrace_mpi_lib.rb + +EXTRA_DIST += \ + gen_mpi_library.rb \ + gen_babeltrace_mpi_lib.rb + +CLEANFILES += \ + $(MPI_BINDINGS) + +data_DATA = \ + $(MPI_BINDINGS) + +xprof_utils.hpp: $(top_srcdir)/utils/xprof_utils.hpp + cp $< $@ + +BTX_MPI_GENERATED = \ + btx_filter_mpi/metababel/metababel.h \ + btx_filter_mpi/metababel/btx_component.h \ + btx_filter_mpi/metababel/btx_component.c \ + btx_filter_mpi/metababel/btx_upstream.h \ + btx_filter_mpi/metababel/btx_upstream.c \ + btx_filter_mpi/metababel/btx_downstream.h \ + btx_filter_mpi/metababel/btx_downstream.c \ + btx_filter_mpi/btx_main.c + +EXTRA_DIST += \ + $(top_srcdir)/utils/babeltrace_to_metababel_model.rb \ + $(top_srcdir)/xprof/btx_interval_model.yaml \ + btx_mpimatching_model.yaml + +btx_mpi_model.yaml: $(top_srcdir)/utils/babeltrace_to_metababel_model.rb mpi_babeltrace_model.yaml + SRC_DIR=$(srcdir) $(RUBY) $^ > $@ + +$(BTX_MPI_GENERATED) &: $(top_srcdir)/xprof/btx_interval_model.yaml btx_mpimatching_model.yaml btx_mpi_model.yaml + $(METABABEL) -u btx_mpi_model.yaml -d $(top_srcdir)/xprof/btx_interval_model.yaml -t FILTER -o btx_filter_mpi -p mpiinterval -c interval --matching $(srcdir)/btx_mpimatching_model.yaml -i mpi.h.include + +CLEANFILES += \ + $(BTX_MPI_GENERATED) \ + btx_mpi_model.yaml \ + xprof_utils.hpp + +BUILT_SOURCES += \ + $(BTX_MPI_GENERATED) + +nodist_libMPIInterval_la_SOURCES = \ + $(BTX_MPI_GENERATED) \ + xprof_utils.hpp + +libMPIInterval_la_SOURCES = \ + btx_mpiinterval_callbacks.cpp + +libMPIInterval_la_CPPFLAGS = -I$(top_srcdir)/utils -I$(top_srcdir)/utils/include -I$(srcdir)/include -I./ -I./btx_filter_mpi +libMPIInterval_la_CFLAGS = -Wall -Wextra -Wno-unused-parameter $(WERROR) $(BABELTRACE2_CFLAGS) +libMPIInterval_la_CXXFLAGS = -std=c++17 -Wall -Wextra -Wno-unused-parameter $(WERROR) $(BABELTRACE2_CFLAGS) +libMPIInterval_la_LDFLAGS = $(BABELTRACE2_LIBS) -avoid-version -module + +lib_LTLIBRARIES = \ + libTracerMPI.la \ + libMPIInterval.la + diff --git a/mpi/Makefile.in b/mpi/Makefile.in new file mode 100644 index 00000000..72758d0c --- /dev/null +++ b/mpi/Makefile.in @@ -0,0 +1,1074 @@ +# Makefile.in generated by automake 1.15.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2017 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + + + +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = mpi +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/ax_mpi.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ + $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/m4_ac_prog_ln.m4 \ + $(top_srcdir)/m4/m4_ax_ruby_extension.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/utils/config.h +CONFIG_CLEAN_FILES = tracer_mpi.sh +CONFIG_CLEAN_VPATH_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \ + "$(DESTDIR)$(datadir)" +LTLIBRARIES = $(lib_LTLIBRARIES) $(noinst_LTLIBRARIES) +libMPIInterval_la_LIBADD = +am_libMPIInterval_la_OBJECTS = \ + libMPIInterval_la-btx_mpiinterval_callbacks.lo +am__dirstamp = $(am__leading_dot)dirstamp +am__objects_1 = \ + btx_filter_mpi/metababel/libMPIInterval_la-btx_component.lo \ + btx_filter_mpi/metababel/libMPIInterval_la-btx_upstream.lo \ + btx_filter_mpi/metababel/libMPIInterval_la-btx_downstream.lo \ + btx_filter_mpi/libMPIInterval_la-btx_main.lo +nodist_libMPIInterval_la_OBJECTS = $(am__objects_1) +libMPIInterval_la_OBJECTS = $(am_libMPIInterval_la_OBJECTS) \ + $(nodist_libMPIInterval_la_OBJECTS) +AM_V_lt = $(am__v_lt_@AM_V@) +am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) +am__v_lt_0 = --silent +am__v_lt_1 = +libMPIInterval_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \ + $(libMPIInterval_la_CXXFLAGS) $(CXXFLAGS) \ + $(libMPIInterval_la_LDFLAGS) $(LDFLAGS) -o $@ +libTracerMPI_la_DEPENDENCIES = libmpitracepoints.la +am__objects_2 = +am__objects_3 = $(am__objects_2) +nodist_libTracerMPI_la_OBJECTS = $(am__objects_3) \ + libTracerMPI_la-tracer_mpi.lo +libTracerMPI_la_OBJECTS = $(nodist_libTracerMPI_la_OBJECTS) +libTracerMPI_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ + $(libTracerMPI_la_CFLAGS) $(CFLAGS) $(libTracerMPI_la_LDFLAGS) \ + $(LDFLAGS) -o $@ +libmpitracepoints_la_LIBADD = +am__objects_4 = libmpitracepoints_la-mpi_tracepoints.lo +am__objects_5 = $(am__objects_4) +nodist_libmpitracepoints_la_OBJECTS = $(am__objects_3) \ + $(am__objects_5) +libmpitracepoints_la_OBJECTS = $(nodist_libmpitracepoints_la_OBJECTS) +libmpitracepoints_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ + $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ + $(libmpitracepoints_la_CFLAGS) $(CFLAGS) \ + $(libmpitracepoints_la_LDFLAGS) $(LDFLAGS) -o $@ +SCRIPTS = $(bin_SCRIPTS) +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/utils +depcomp = $(SHELL) $(top_srcdir)/m4/depcomp +am__depfiles_maybe = depfiles +am__mv = mv -f +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_@AM_V@) +am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) +am__v_CC_0 = @echo " CC " $@; +am__v_CC_1 = +CCLD = $(CC) +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_@AM_V@) +am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) +am__v_CCLD_0 = @echo " CCLD " $@; +am__v_CCLD_1 = +CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CXXFLAGS) $(CXXFLAGS) +AM_V_CXX = $(am__v_CXX_@AM_V@) +am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) +am__v_CXX_0 = @echo " CXX " $@; +am__v_CXX_1 = +CXXLD = $(CXX) +CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ + $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) +am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) +am__v_CXXLD_0 = @echo " CXXLD " $@; +am__v_CXXLD_1 = +SOURCES = $(libMPIInterval_la_SOURCES) \ + $(nodist_libMPIInterval_la_SOURCES) \ + $(nodist_libTracerMPI_la_SOURCES) \ + $(nodist_libmpitracepoints_la_SOURCES) +DIST_SOURCES = $(libMPIInterval_la_SOURCES) +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +DATA = $(data_DATA) +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` +ETAGS = etags +CTAGS = ctags +am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/tracer_mpi.sh.in \ + $(top_srcdir)/m4/depcomp +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALLOCA = @ALLOCA@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +BABELTRACE2_CFLAGS = @BABELTRACE2_CFLAGS@ +BABELTRACE2_LIBS = @BABELTRACE2_LIBS@ +BABELTRACE2_PROG = @BABELTRACE2_PROG@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +ERB = @ERB@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBFFI_CFLAGS = @LIBFFI_CFLAGS@ +LIBFFI_LIBS = @LIBFFI_LIBS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN = @LN@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LTTNG_GEN_TP = @LTTNG_GEN_TP@ +LTTNG_UST_CFLAGS = @LTTNG_UST_CFLAGS@ +LTTNG_UST_LIBS = @LTTNG_UST_LIBS@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +METABABEL = @METABABEL@ +MKDIR_P = @MKDIR_P@ +MPICC = @MPICC@ +MPILIBS = @MPILIBS@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATCH = @PATCH@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PKG_CONFIG = @PKG_CONFIG@ +PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ +PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ +PROTOBUF_CFLAGS = @PROTOBUF_CFLAGS@ +PROTOBUF_LIBS = @PROTOBUF_LIBS@ +PROTOC = @PROTOC@ +RANLIB = @RANLIB@ +RUBY = @RUBY@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +@STRICT_FALSE@WERROR = +@STRICT_TRUE@WERROR = -Werror +MPI_HDR = \ + $(srcdir)/include/mpi.h + +MODIFIED_MPI_HDR = \ + modified_include/mpi.h + +EXTRA_DIST = $(srcdir)/include extract_base.rb \ + $(MPI_NAMESPACES:%=extract_%.rb) mpi_model.rb \ + gen_mpi_library_base.rb gen_probe_base.rb mpi_events.yaml \ + gen_babeltrace_mpi_model.rb $(srcdir)/mpi_meta_parameters.yaml \ + gen_mpi_tracepoints.rb gen_mpi.rb mpi.h.include \ + gen_mpi_library.rb gen_babeltrace_mpi_lib.rb \ + $(top_srcdir)/utils/babeltrace_to_metababel_model.rb \ + $(top_srcdir)/xprof/btx_interval_model.yaml \ + btx_mpimatching_model.yaml +MPI_NAMESPACES = mpi +MPI_EXTRACTED = $(MPI_NAMESPACES:=_api.yaml) +CLEANFILES = $(MPI_EXTRACTED) mpi_babeltrace_model.yaml \ + $(MPI_PROBES_TP) $(MPI_PROBES_INCL) $(MPI_PROBES_SRC) \ + tracer_mpi.c $(MPI_BINDINGS) $(BTX_MPI_GENERATED) \ + btx_mpi_model.yaml xprof_utils.hpp +MPI_MODEL = \ + $(srcdir)/mpi_model.rb \ + $(srcdir)/mpi_meta_parameters.yaml \ + $(srcdir)/gen_probe_base.rb \ + $(srcdir)/mpi_events.yaml \ + $(top_srcdir)/utils/yaml_ast.rb \ + $(top_srcdir)/utils/yaml_ast_lttng.rb \ + $(top_srcdir)/utils/meta_parameters.rb \ + $(top_srcdir)/utils/LTTng.rb \ + $(MPI_EXTRACTED) + +MPI_PROBES = mpi_tracepoints +MPI_PROBES_TP = $(MPI_PROBES:=.tp) +MPI_PROBES_INCL = $(MPI_PROBES:=.h) +MPI_PROBES_SRC = $(MPI_PROBES:=.c) +BUILT_SOURCES = $(MODIFIED_MPI_HDR) $(MPI_PROBES_INCL) \ + $(BTX_MPI_GENERATED) +bin_SCRIPTS = \ + tracer_mpi.sh + +noinst_LTLIBRARIES = \ + libmpitracepoints.la + +nodist_libmpitracepoints_la_SOURCES = \ + $(MPI_PROBES_INCL) \ + $(MPI_PROBES_SRC) + +libmpitracepoints_la_CPPFLAGS = -I$(top_srcdir)/utils -I$(top_srcdir)/utils/include -I$(srcdir)/include -I./ +libmpitracepoints_la_CFLAGS = -fPIC -Wall -Wextra -Wno-unused-parameter -Wno-type-limits -Wno-sign-compare $(WERROR) $(LTTNG_UST_CFLAGS) +libmpitracepoints_la_LDFLAGS = $(LTTNG_UST_LIBS) +nodist_libTracerMPI_la_SOURCES = \ + $(MPI_PROBES_INCL) \ + tracer_mpi.c + +libTracerMPI_la_CPPFLAGS = -I$(top_srcdir)/utils -I$(top_srcdir)/utils/include -I$(top_srcdir)/sampling -I$(srcdir)/include -I./utils -I./ +libTracerMPI_la_CFLAGS = -Wall -Wextra $(WERROR) $(LIBFFI_CFLAGS) $(LTTNG_UST_CFLAGS) +libTracerMPI_la_LDFLAGS = $(LTTNG_UST_LIBS) -ldl -lpthread $(LIBFFI_LIBS) ../sampling/libThapiSampling.la +libTracerMPI_la_LIBADD = libmpitracepoints.la +tmplibdir = $(libdir)/tmp +MPI_BINDINGS = \ + mpi_library.rb \ + babeltrace_mpi_lib.rb + +data_DATA = \ + $(MPI_BINDINGS) + +BTX_MPI_GENERATED = \ + btx_filter_mpi/metababel/metababel.h \ + btx_filter_mpi/metababel/btx_component.h \ + btx_filter_mpi/metababel/btx_component.c \ + btx_filter_mpi/metababel/btx_upstream.h \ + btx_filter_mpi/metababel/btx_upstream.c \ + btx_filter_mpi/metababel/btx_downstream.h \ + btx_filter_mpi/metababel/btx_downstream.c \ + btx_filter_mpi/btx_main.c + +nodist_libMPIInterval_la_SOURCES = \ + $(BTX_MPI_GENERATED) \ + xprof_utils.hpp + +libMPIInterval_la_SOURCES = \ + btx_mpiinterval_callbacks.cpp + +libMPIInterval_la_CPPFLAGS = -I$(top_srcdir)/utils -I$(top_srcdir)/utils/include -I$(srcdir)/include -I./ -I./btx_filter_mpi +libMPIInterval_la_CFLAGS = -Wall -Wextra -Wno-unused-parameter $(WERROR) $(BABELTRACE2_CFLAGS) +libMPIInterval_la_CXXFLAGS = -std=c++17 -Wall -Wextra -Wno-unused-parameter $(WERROR) $(BABELTRACE2_CFLAGS) +libMPIInterval_la_LDFLAGS = $(BABELTRACE2_LIBS) -avoid-version -module +lib_LTLIBRARIES = \ + libTracerMPI.la \ + libMPIInterval.la + +all: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) all-am + +.SUFFIXES: +.SUFFIXES: .c .cpp .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign mpi/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign mpi/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): +tracer_mpi.sh: $(top_builddir)/config.status $(srcdir)/tracer_mpi.sh.in + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ + +install-libLTLIBRARIES: $(lib_LTLIBRARIES) + @$(NORMAL_INSTALL) + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ + list2=; for p in $$list; do \ + if test -f $$p; then \ + list2="$$list2 $$p"; \ + else :; fi; \ + done; \ + test -z "$$list2" || { \ + echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ + } + +uninstall-libLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ + done + +clean-libLTLIBRARIES: + -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) + @list='$(lib_LTLIBRARIES)'; \ + locs=`for p in $$list; do echo $$p; done | \ + sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ + sort -u`; \ + test -z "$$locs" || { \ + echo rm -f $${locs}; \ + rm -f $${locs}; \ + } + +clean-noinstLTLIBRARIES: + -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) + @list='$(noinst_LTLIBRARIES)'; \ + locs=`for p in $$list; do echo $$p; done | \ + sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ + sort -u`; \ + test -z "$$locs" || { \ + echo rm -f $${locs}; \ + rm -f $${locs}; \ + } +btx_filter_mpi/metababel/$(am__dirstamp): + @$(MKDIR_P) btx_filter_mpi/metababel + @: > btx_filter_mpi/metababel/$(am__dirstamp) +btx_filter_mpi/metababel/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) btx_filter_mpi/metababel/$(DEPDIR) + @: > btx_filter_mpi/metababel/$(DEPDIR)/$(am__dirstamp) +btx_filter_mpi/metababel/libMPIInterval_la-btx_component.lo: \ + btx_filter_mpi/metababel/$(am__dirstamp) \ + btx_filter_mpi/metababel/$(DEPDIR)/$(am__dirstamp) +btx_filter_mpi/metababel/libMPIInterval_la-btx_upstream.lo: \ + btx_filter_mpi/metababel/$(am__dirstamp) \ + btx_filter_mpi/metababel/$(DEPDIR)/$(am__dirstamp) +btx_filter_mpi/metababel/libMPIInterval_la-btx_downstream.lo: \ + btx_filter_mpi/metababel/$(am__dirstamp) \ + btx_filter_mpi/metababel/$(DEPDIR)/$(am__dirstamp) +btx_filter_mpi/$(am__dirstamp): + @$(MKDIR_P) btx_filter_mpi + @: > btx_filter_mpi/$(am__dirstamp) +btx_filter_mpi/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) btx_filter_mpi/$(DEPDIR) + @: > btx_filter_mpi/$(DEPDIR)/$(am__dirstamp) +btx_filter_mpi/libMPIInterval_la-btx_main.lo: \ + btx_filter_mpi/$(am__dirstamp) \ + btx_filter_mpi/$(DEPDIR)/$(am__dirstamp) + +libMPIInterval.la: $(libMPIInterval_la_OBJECTS) $(libMPIInterval_la_DEPENDENCIES) $(EXTRA_libMPIInterval_la_DEPENDENCIES) + $(AM_V_CXXLD)$(libMPIInterval_la_LINK) -rpath $(libdir) $(libMPIInterval_la_OBJECTS) $(libMPIInterval_la_LIBADD) $(LIBS) + +libTracerMPI.la: $(libTracerMPI_la_OBJECTS) $(libTracerMPI_la_DEPENDENCIES) $(EXTRA_libTracerMPI_la_DEPENDENCIES) + $(AM_V_CCLD)$(libTracerMPI_la_LINK) -rpath $(libdir) $(libTracerMPI_la_OBJECTS) $(libTracerMPI_la_LIBADD) $(LIBS) + +libmpitracepoints.la: $(libmpitracepoints_la_OBJECTS) $(libmpitracepoints_la_DEPENDENCIES) $(EXTRA_libmpitracepoints_la_DEPENDENCIES) + $(AM_V_CCLD)$(libmpitracepoints_la_LINK) $(libmpitracepoints_la_OBJECTS) $(libmpitracepoints_la_LIBADD) $(LIBS) +install-binSCRIPTS: $(bin_SCRIPTS) + @$(NORMAL_INSTALL) + @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ + done | \ + sed -e 'p;s,.*/,,;n' \ + -e 'h;s|.*|.|' \ + -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ + if ($$2 == $$4) { files[d] = files[d] " " $$1; \ + if (++n[d] == $(am__install_max)) { \ + print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ + else { print "f", d "/" $$4, $$1 } } \ + END { for (d in files) print "f", d, files[d] }' | \ + while read type dir files; do \ + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ + test -z "$$files" || { \ + echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \ + $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ + } \ + ; done + +uninstall-binSCRIPTS: + @$(NORMAL_UNINSTALL) + @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \ + files=`for p in $$list; do echo "$$p"; done | \ + sed -e 's,.*/,,;$(transform)'`; \ + dir='$(DESTDIR)$(bindir)'; $(am__uninstall_files_from_dir) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + -rm -f btx_filter_mpi/*.$(OBJEXT) + -rm -f btx_filter_mpi/*.lo + -rm -f btx_filter_mpi/metababel/*.$(OBJEXT) + -rm -f btx_filter_mpi/metababel/*.lo + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libMPIInterval_la-btx_mpiinterval_callbacks.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libTracerMPI_la-tracer_mpi.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmpitracepoints_la-mpi_tracepoints.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@btx_filter_mpi/$(DEPDIR)/libMPIInterval_la-btx_main.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@btx_filter_mpi/metababel/$(DEPDIR)/libMPIInterval_la-btx_component.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@btx_filter_mpi/metababel/$(DEPDIR)/libMPIInterval_la-btx_downstream.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@btx_filter_mpi/metababel/$(DEPDIR)/libMPIInterval_la-btx_upstream.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< + +.c.obj: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< + +btx_filter_mpi/metababel/libMPIInterval_la-btx_component.lo: btx_filter_mpi/metababel/btx_component.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libMPIInterval_la_CPPFLAGS) $(CPPFLAGS) $(libMPIInterval_la_CFLAGS) $(CFLAGS) -MT btx_filter_mpi/metababel/libMPIInterval_la-btx_component.lo -MD -MP -MF btx_filter_mpi/metababel/$(DEPDIR)/libMPIInterval_la-btx_component.Tpo -c -o btx_filter_mpi/metababel/libMPIInterval_la-btx_component.lo `test -f 'btx_filter_mpi/metababel/btx_component.c' || echo '$(srcdir)/'`btx_filter_mpi/metababel/btx_component.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) btx_filter_mpi/metababel/$(DEPDIR)/libMPIInterval_la-btx_component.Tpo btx_filter_mpi/metababel/$(DEPDIR)/libMPIInterval_la-btx_component.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='btx_filter_mpi/metababel/btx_component.c' object='btx_filter_mpi/metababel/libMPIInterval_la-btx_component.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libMPIInterval_la_CPPFLAGS) $(CPPFLAGS) $(libMPIInterval_la_CFLAGS) $(CFLAGS) -c -o btx_filter_mpi/metababel/libMPIInterval_la-btx_component.lo `test -f 'btx_filter_mpi/metababel/btx_component.c' || echo '$(srcdir)/'`btx_filter_mpi/metababel/btx_component.c + +btx_filter_mpi/metababel/libMPIInterval_la-btx_upstream.lo: btx_filter_mpi/metababel/btx_upstream.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libMPIInterval_la_CPPFLAGS) $(CPPFLAGS) $(libMPIInterval_la_CFLAGS) $(CFLAGS) -MT btx_filter_mpi/metababel/libMPIInterval_la-btx_upstream.lo -MD -MP -MF btx_filter_mpi/metababel/$(DEPDIR)/libMPIInterval_la-btx_upstream.Tpo -c -o btx_filter_mpi/metababel/libMPIInterval_la-btx_upstream.lo `test -f 'btx_filter_mpi/metababel/btx_upstream.c' || echo '$(srcdir)/'`btx_filter_mpi/metababel/btx_upstream.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) btx_filter_mpi/metababel/$(DEPDIR)/libMPIInterval_la-btx_upstream.Tpo btx_filter_mpi/metababel/$(DEPDIR)/libMPIInterval_la-btx_upstream.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='btx_filter_mpi/metababel/btx_upstream.c' object='btx_filter_mpi/metababel/libMPIInterval_la-btx_upstream.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libMPIInterval_la_CPPFLAGS) $(CPPFLAGS) $(libMPIInterval_la_CFLAGS) $(CFLAGS) -c -o btx_filter_mpi/metababel/libMPIInterval_la-btx_upstream.lo `test -f 'btx_filter_mpi/metababel/btx_upstream.c' || echo '$(srcdir)/'`btx_filter_mpi/metababel/btx_upstream.c + +btx_filter_mpi/metababel/libMPIInterval_la-btx_downstream.lo: btx_filter_mpi/metababel/btx_downstream.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libMPIInterval_la_CPPFLAGS) $(CPPFLAGS) $(libMPIInterval_la_CFLAGS) $(CFLAGS) -MT btx_filter_mpi/metababel/libMPIInterval_la-btx_downstream.lo -MD -MP -MF btx_filter_mpi/metababel/$(DEPDIR)/libMPIInterval_la-btx_downstream.Tpo -c -o btx_filter_mpi/metababel/libMPIInterval_la-btx_downstream.lo `test -f 'btx_filter_mpi/metababel/btx_downstream.c' || echo '$(srcdir)/'`btx_filter_mpi/metababel/btx_downstream.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) btx_filter_mpi/metababel/$(DEPDIR)/libMPIInterval_la-btx_downstream.Tpo btx_filter_mpi/metababel/$(DEPDIR)/libMPIInterval_la-btx_downstream.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='btx_filter_mpi/metababel/btx_downstream.c' object='btx_filter_mpi/metababel/libMPIInterval_la-btx_downstream.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libMPIInterval_la_CPPFLAGS) $(CPPFLAGS) $(libMPIInterval_la_CFLAGS) $(CFLAGS) -c -o btx_filter_mpi/metababel/libMPIInterval_la-btx_downstream.lo `test -f 'btx_filter_mpi/metababel/btx_downstream.c' || echo '$(srcdir)/'`btx_filter_mpi/metababel/btx_downstream.c + +btx_filter_mpi/libMPIInterval_la-btx_main.lo: btx_filter_mpi/btx_main.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libMPIInterval_la_CPPFLAGS) $(CPPFLAGS) $(libMPIInterval_la_CFLAGS) $(CFLAGS) -MT btx_filter_mpi/libMPIInterval_la-btx_main.lo -MD -MP -MF btx_filter_mpi/$(DEPDIR)/libMPIInterval_la-btx_main.Tpo -c -o btx_filter_mpi/libMPIInterval_la-btx_main.lo `test -f 'btx_filter_mpi/btx_main.c' || echo '$(srcdir)/'`btx_filter_mpi/btx_main.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) btx_filter_mpi/$(DEPDIR)/libMPIInterval_la-btx_main.Tpo btx_filter_mpi/$(DEPDIR)/libMPIInterval_la-btx_main.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='btx_filter_mpi/btx_main.c' object='btx_filter_mpi/libMPIInterval_la-btx_main.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libMPIInterval_la_CPPFLAGS) $(CPPFLAGS) $(libMPIInterval_la_CFLAGS) $(CFLAGS) -c -o btx_filter_mpi/libMPIInterval_la-btx_main.lo `test -f 'btx_filter_mpi/btx_main.c' || echo '$(srcdir)/'`btx_filter_mpi/btx_main.c + +libTracerMPI_la-tracer_mpi.lo: tracer_mpi.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libTracerMPI_la_CPPFLAGS) $(CPPFLAGS) $(libTracerMPI_la_CFLAGS) $(CFLAGS) -MT libTracerMPI_la-tracer_mpi.lo -MD -MP -MF $(DEPDIR)/libTracerMPI_la-tracer_mpi.Tpo -c -o libTracerMPI_la-tracer_mpi.lo `test -f 'tracer_mpi.c' || echo '$(srcdir)/'`tracer_mpi.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libTracerMPI_la-tracer_mpi.Tpo $(DEPDIR)/libTracerMPI_la-tracer_mpi.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='tracer_mpi.c' object='libTracerMPI_la-tracer_mpi.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libTracerMPI_la_CPPFLAGS) $(CPPFLAGS) $(libTracerMPI_la_CFLAGS) $(CFLAGS) -c -o libTracerMPI_la-tracer_mpi.lo `test -f 'tracer_mpi.c' || echo '$(srcdir)/'`tracer_mpi.c + +libmpitracepoints_la-mpi_tracepoints.lo: mpi_tracepoints.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmpitracepoints_la_CPPFLAGS) $(CPPFLAGS) $(libmpitracepoints_la_CFLAGS) $(CFLAGS) -MT libmpitracepoints_la-mpi_tracepoints.lo -MD -MP -MF $(DEPDIR)/libmpitracepoints_la-mpi_tracepoints.Tpo -c -o libmpitracepoints_la-mpi_tracepoints.lo `test -f 'mpi_tracepoints.c' || echo '$(srcdir)/'`mpi_tracepoints.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libmpitracepoints_la-mpi_tracepoints.Tpo $(DEPDIR)/libmpitracepoints_la-mpi_tracepoints.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='mpi_tracepoints.c' object='libmpitracepoints_la-mpi_tracepoints.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libmpitracepoints_la_CPPFLAGS) $(CPPFLAGS) $(libmpitracepoints_la_CFLAGS) $(CFLAGS) -c -o libmpitracepoints_la-mpi_tracepoints.lo `test -f 'mpi_tracepoints.c' || echo '$(srcdir)/'`mpi_tracepoints.c + +.cpp.o: +@am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ +@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< + +.cpp.obj: +@am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ +@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.cpp.lo: +@am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ +@am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< + +libMPIInterval_la-btx_mpiinterval_callbacks.lo: btx_mpiinterval_callbacks.cpp +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libMPIInterval_la_CPPFLAGS) $(CPPFLAGS) $(libMPIInterval_la_CXXFLAGS) $(CXXFLAGS) -MT libMPIInterval_la-btx_mpiinterval_callbacks.lo -MD -MP -MF $(DEPDIR)/libMPIInterval_la-btx_mpiinterval_callbacks.Tpo -c -o libMPIInterval_la-btx_mpiinterval_callbacks.lo `test -f 'btx_mpiinterval_callbacks.cpp' || echo '$(srcdir)/'`btx_mpiinterval_callbacks.cpp +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libMPIInterval_la-btx_mpiinterval_callbacks.Tpo $(DEPDIR)/libMPIInterval_la-btx_mpiinterval_callbacks.Plo +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='btx_mpiinterval_callbacks.cpp' object='libMPIInterval_la-btx_mpiinterval_callbacks.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libMPIInterval_la_CPPFLAGS) $(CPPFLAGS) $(libMPIInterval_la_CXXFLAGS) $(CXXFLAGS) -c -o libMPIInterval_la-btx_mpiinterval_callbacks.lo `test -f 'btx_mpiinterval_callbacks.cpp' || echo '$(srcdir)/'`btx_mpiinterval_callbacks.cpp + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + -rm -rf btx_filter_mpi/.libs btx_filter_mpi/_libs + -rm -rf btx_filter_mpi/metababel/.libs btx_filter_mpi/metababel/_libs +install-dataDATA: $(data_DATA) + @$(NORMAL_INSTALL) + @list='$(data_DATA)'; test -n "$(datadir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(datadir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(datadir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(datadir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(datadir)" || exit $$?; \ + done + +uninstall-dataDATA: + @$(NORMAL_UNINSTALL) + @list='$(data_DATA)'; test -n "$(datadir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(datadir)'; $(am__uninstall_files_from_dir) + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-am +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ + here=`pwd`; \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: ctags-am + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscopelist: cscopelist-am + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) check-am +all-am: Makefile $(LTLIBRARIES) $(SCRIPTS) $(DATA) +installdirs: + for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(datadir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + -rm -f btx_filter_mpi/$(DEPDIR)/$(am__dirstamp) + -rm -f btx_filter_mpi/$(am__dirstamp) + -rm -f btx_filter_mpi/metababel/$(DEPDIR)/$(am__dirstamp) + -rm -f btx_filter_mpi/metababel/$(am__dirstamp) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." + -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) +clean: clean-am + +clean-am: clean-generic clean-libLTLIBRARIES clean-libtool clean-local \ + clean-noinstLTLIBRARIES mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) btx_filter_mpi/$(DEPDIR) btx_filter_mpi/metababel/$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-dataDATA + @$(NORMAL_INSTALL) + $(MAKE) $(AM_MAKEFLAGS) install-data-hook +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: install-binSCRIPTS install-libLTLIBRARIES + @$(NORMAL_INSTALL) + $(MAKE) $(AM_MAKEFLAGS) install-exec-hook +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) btx_filter_mpi/$(DEPDIR) btx_filter_mpi/metababel/$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-binSCRIPTS uninstall-dataDATA \ + uninstall-libLTLIBRARIES + @$(NORMAL_INSTALL) + $(MAKE) $(AM_MAKEFLAGS) uninstall-hook +.MAKE: all check install install-am install-data-am install-exec-am \ + install-strip uninstall-am + +.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ + clean-libLTLIBRARIES clean-libtool clean-local \ + clean-noinstLTLIBRARIES cscopelist-am ctags ctags-am distclean \ + distclean-compile distclean-generic distclean-libtool \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-binSCRIPTS install-data \ + install-data-am install-data-hook install-dataDATA install-dvi \ + install-dvi-am install-exec install-exec-am install-exec-hook \ + install-html install-html-am install-info install-info-am \ + install-libLTLIBRARIES install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags tags-am uninstall uninstall-am uninstall-binSCRIPTS \ + uninstall-dataDATA uninstall-hook uninstall-libLTLIBRARIES + +.PRECIOUS: Makefile + +.DELETE_ON_ERROR: + +modified_include/mpi.h: $(MPI_HDR) + $(RM) -r modified_include/ + cp -r $(srcdir)/include/ modified_include/ + chmod -R u+w modified_include/ + +clean-local: + $(RM) -r modified_include + +$(MPI_EXTRACTED): %_api.yaml: $(srcdir)/extract_%.rb $(MODIFIED_MPI_HDR) $(srcdir)/extract_base.rb + SRC_DIR=$(srcdir) $(RUBY) $< + +mpi_babeltrace_model.yaml: $(srcdir)/gen_babeltrace_mpi_model.rb $(MPI_MODEL) + SRC_DIR=$(srcdir) $(RUBY) $< > $@ + +$(MPI_PROBES_TP): %.tp: $(srcdir)/gen_%.rb $(MPI_MODEL) + SRC_DIR=$(srcdir) $(RUBY) $< > $@ + +%.h %.c: %.tp + $(LTTNG_GEN_TP) $< -o $*.c -o $*.h + +tracer_mpi.c: $(srcdir)/gen_mpi.rb $(MPI_MODEL) $(MPI_PROBES_INCL) + SRC_DIR=$(srcdir) $(RUBY) $< > $@ + +install-exec-hook: + $(MKDIR_P) $(DESTDIR)$(pkglibdir)/mpi + $(LN_S) -f $(DESTDIR)$(libdir)/libTracerMPI.so.1.0.0 $(DESTDIR)$(pkglibdir)/mpi/libmpi.so.1 + $(LN_S) -f $(DESTDIR)$(pkglibdir)/cuda/libmpi.so.1 $(DESTDIR)$(pkglibdir)/mpi/libmpi.so + +uninstall-hook: + $(RM) -f $(DESTDIR)$(libdir)/libTracerMPI.so.1.0.0 $(DESTDIR)$(pkglibdir)/mpi/libmpi.so.1 + $(RM) -f $(DESTDIR)$(pkglibdir)/mpi/libmpi.so.1 $(DESTDIR)$(pkglibdir)/mpi/libmpi.so + -rmdir $(DESTDIR)$(pkglibdir)/mpi +install-data-hook: + $(RM) -r $(DESTDIR)$(tmplibdir) + +mpi_library.rb: $(srcdir)/gen_mpi_library.rb $(MPI_MODEL) + SRC_DIR=$(srcdir) $(RUBY) $< > $@ + +babeltrace_mpi_lib.rb: $(srcdir)/gen_babeltrace_mpi_lib.rb $(top_srcdir)/utils/gen_library_base.rb $(MPI_MODEL) mpi_babeltrace_model.yaml + SRC_DIR=$(srcdir) $(RUBY) $< > $@ + +xprof_utils.hpp: $(top_srcdir)/utils/xprof_utils.hpp + cp $< $@ + +btx_mpi_model.yaml: $(top_srcdir)/utils/babeltrace_to_metababel_model.rb mpi_babeltrace_model.yaml + SRC_DIR=$(srcdir) $(RUBY) $^ > $@ + +$(BTX_MPI_GENERATED) &: $(top_srcdir)/xprof/btx_interval_model.yaml btx_mpimatching_model.yaml btx_mpi_model.yaml + $(METABABEL) -u btx_mpi_model.yaml -d $(top_srcdir)/xprof/btx_interval_model.yaml -t FILTER -o btx_filter_mpi -p mpiinterval -c interval --matching $(srcdir)/btx_mpimatching_model.yaml -i mpi.h.include + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/mpi/btx_mpiinterval_callbacks.cpp b/mpi/btx_mpiinterval_callbacks.cpp new file mode 100644 index 00000000..c2738bea --- /dev/null +++ b/mpi/btx_mpiinterval_callbacks.cpp @@ -0,0 +1,59 @@ +#include +#include +#include +#include +#include "xprof_utils.hpp" + + +struct data_s { + EntryState entry_state; +}; + +typedef struct data_s data_t; + +static void send_host_message(void *btx_handle, void *usr_data, int64_t ts, + const char *event_class_name, const char *hostname, int64_t vpid, + uint64_t vtid, bool err) { + + std::string event_class_name_striped = strip_event_class_name_exit(event_class_name); + const int64_t entry_ts = static_cast(usr_data)->entry_state.get_ts( + {hostname, vpid, vtid}); + + btx_push_message_lttng_host(btx_handle, hostname, vpid, vtid, entry_ts, BACKEND_HIP, + event_class_name_striped.c_str(), (ts - entry_ts), err); +} + +void btx_initialize_component(void **usr_data) { *usr_data = new data_t; } + +void btx_finalize_component(void *usr_data) { + delete static_cast(usr_data); +} + +static void entries_callback(void *btx_handle, void *usr_data, int64_t ts, + const char *event_class_name, const char *hostname, int64_t vpid, + uint64_t vtid) { + static_cast(usr_data)->entry_state.set_ts({hostname, vpid, vtid}, + ts); +} + +static void exits_callback_mpiError_absent(void *btx_handle, void *usr_data, int64_t ts, + const char *event_class_name, const char *hostname, + int64_t vpid, uint64_t vtid) { + + send_host_message(btx_handle, usr_data, ts, event_class_name, hostname, vpid, vtid, false); +} + +static void exits_callback_mpiError_present(void *btx_handle, void *usr_data, int64_t ts, + const char *event_class_name, const char *hostname, + int64_t vpid, uint64_t vtid, int mpiResult) { + + send_host_message(btx_handle, usr_data, ts, event_class_name, hostname, vpid, vtid, mpiResult != MPI_SUCCESS); +} + +void btx_register_usr_callbacks(void *btx_handle) { + btx_register_callbacks_initialize_component(btx_handle, &btx_initialize_component); + btx_register_callbacks_finalize_component(btx_handle, &btx_finalize_component); + btx_register_callbacks_entries(btx_handle, &entries_callback); + btx_register_callbacks_exits_mpiError_absent(btx_handle, &exits_callback_mpiError_absent); + btx_register_callbacks_exits_mpiError_present(btx_handle, &exits_callback_mpiError_present); +} diff --git a/mpi/btx_mpimatching_model.yaml b/mpi/btx_mpimatching_model.yaml new file mode 100644 index 00000000..73982178 --- /dev/null +++ b/mpi/btx_mpimatching_model.yaml @@ -0,0 +1,31 @@ +:environment: + :entries: + - :name: ^hostname$ + :type: string +:stream_classes: +- :default_clock_class: {} + :event_common_context_field_class: + :type: structure + :members: + - :name: ^vpid$ + :field_class: + :type: integer_signed + - :name: ^vtid$ + :field_class: + :type: integer_unsigned + :event_classes: + - :set_id: entries + :name: "_entry$" + - :set_id: exits + :register: false + :name: "_exit$" + - :set_id: exits_mpiError_present + :domain: exits + :payload_field_class: + :type: structure + :members: + - :name: ^mpiResult$ + :field_class: + :type: integer_signed + - :set_id: exits_mpiError_absent + :domain: exits - exits_mpiError_present diff --git a/mpi/gen_babeltrace_mpi_lib.rb b/mpi/gen_babeltrace_mpi_lib.rb new file mode 100644 index 00000000..05454f05 --- /dev/null +++ b/mpi/gen_babeltrace_mpi_lib.rb @@ -0,0 +1,8 @@ +require_relative 'gen_mpi_library_base.rb' +require_relative '../utils/gen_babeltrace_lib_helper' + +puts <>= 1 + end + c +end + +def firstbitpos(x) + raise "Signed positive integer needed!" if x <= 0 + r = 0 + while x & 1 == 0 + r += 1 + x >>= 1 + end + r +end + +def print_bitfield(name, enum) + special_values = [] + members = [] + default = nil + counter = 0 + enum.members.each { |m| + if m.val + counter = eval(m.val) + else + counter += 1 + end + if counter > 0 && popcount(counter) == 1 + members.push [ m.name.to_sym, firstbitpos(counter) ] + else + if counter == 0 + default = m.name.to_sym + else + r = [ m.name.to_sym ] + if m.val + r.push m.val + else + r.push counter + end + special_values.push r + end + end + } + print_lambda = lambda { |m| + "#{m[0].inspect}, #{m[1]}" + } + puts <