From b476ae0de777c0d9f4f133bee088ef1c79c7c9b3 Mon Sep 17 00:00:00 2001 From: Vignesh Babu Date: Sun, 19 Jul 2020 13:01:39 -0700 Subject: [PATCH] restructuring the tests slightly --- src/core/hooked_functions.c | 2 +- src/tracer/libperf/Makefile | 2 +- src/tracer/libperf/autom4te.cache/requests | 722 +++++++++---------- src/tracer/libperf/config.status | 8 +- src/tracer/libperf/libtool | 6 +- src/tracer/libperf/src/.deps/libperf.Plo | 12 +- src/tracer/libperf/src/Makefile | 2 +- src/tracer/tests/repeatability-test/Makefile | 1 - src/tracer/tests/repeatability-test/test.s | 42 -- tests/Makefile | 7 +- tests/alarm_test/Makefile | 9 - tests/alarm_test/alarm.c | 40 - tests/alarm_test/run_test.sh | 8 - tests/producer_consumer_test/run_test.sh | 11 +- tests/socket_test/run_test.sh | 13 +- tests/socket_test/socket_test.c | 4 +- tests/timerfd_test/run_test.sh | 11 +- tests/usleep_test/run_test.sh | 13 +- tests/usleep_test/usleep.c | 10 +- tests/usleep_test/usleep_test.c | 6 +- 20 files changed, 416 insertions(+), 513 deletions(-) delete mode 100644 src/tracer/tests/repeatability-test/test.s delete mode 100644 tests/alarm_test/Makefile delete mode 100644 tests/alarm_test/alarm.c delete mode 100755 tests/alarm_test/run_test.sh diff --git a/src/core/hooked_functions.c b/src/core/hooked_functions.c index 4e7e0f5..398ab0b 100644 --- a/src/core/hooked_functions.c +++ b/src/core/hooked_functions.c @@ -393,7 +393,7 @@ asmlinkage long sys_sleep_new(struct timespec __user *rqtp, wake_up_interruptible(&expstop_call_proc_wqueue); rmt = ktime_to_timespec(rem); - if (copy_to_user(rmtp, &rmt, sizeof(*rmtp))) + if (rmtp && copy_to_user(rmtp, &rmt, sizeof(*rmtp))) return -EFAULT; return 0; diff --git a/src/tracer/libperf/Makefile b/src/tracer/libperf/Makefile index f525b84..ea6cbd3 100644 --- a/src/tracer/libperf/Makefile +++ b/src/tracer/libperf/Makefile @@ -245,7 +245,7 @@ INSTALL_DATA = ${INSTALL} -m 644 INSTALL_PROGRAM = ${INSTALL} INSTALL_SCRIPT = ${INSTALL} INSTALL_STRIP_PROGRAM = $(install_sh) -c -s -LD = /usr/bin/x86_64-linux-gnu-ld -m elf_x86_64 +LD = /usr/bin/ld -m elf_x86_64 LDFLAGS = LIBOBJS = LIBPERF_API_VERSION = 1.0 diff --git a/src/tracer/libperf/autom4te.cache/requests b/src/tracer/libperf/autom4te.cache/requests index a588633..36b4510 100644 --- a/src/tracer/libperf/autom4te.cache/requests +++ b/src/tracer/libperf/autom4te.cache/requests @@ -42,186 +42,186 @@ 'configure.ac' ], { - '_LT_AC_PROG_ECHO_BACKSLASH' => 1, - 'LT_SYS_MODULE_EXT' => 1, - 'AM_CONDITIONAL' => 1, - 'AU_DEFUN' => 1, - 'AC_LTDL_PREOPEN' => 1, - 'AC_CHECK_LIBM' => 1, - 'AC_LIB_LTDL' => 1, - '_LT_AC_LANG_F77' => 1, - 'AC_LIBTOOL_PROG_COMPILER_NO_RTTI' => 1, - 'LT_AC_PROG_SED' => 1, - '_LT_AC_TAGCONFIG' => 1, - 'AC_LIBTOOL_DLOPEN' => 1, - '_AM_AUTOCONF_VERSION' => 1, - 'AC_LIBTOOL_SYS_MAX_CMD_LEN' => 1, - 'AM_SET_LEADING_DOT' => 1, - '_LT_REQUIRED_DARWIN_CHECKS' => 1, - 'AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE' => 1, - '_LT_AC_TRY_DLOPEN_SELF' => 1, - 'LT_SYS_DLOPEN_SELF' => 1, - 'AC_PROG_EGREP' => 1, - 'AC_LIBTOOL_OBJDIR' => 1, - 'AC_ENABLE_SHARED' => 1, - 'AC_PROG_LD' => 1, - 'AC_LTDL_SHLIBEXT' => 1, - '_LT_AC_LANG_GCJ' => 1, - '_LTDL_SETUP' => 1, - 'AC_LIBLTDL_CONVENIENCE' => 1, '_m4_warn' => 1, - 'LT_AC_PROG_EGREP' => 1, - '_LT_CC_BASENAME' => 1, - '_LT_LINKER_BOILERPLATE' => 1, - 'AC_PATH_MAGIC' => 1, - 'AC_LIBTOOL_F77' => 1, - 'LT_WITH_LTDL' => 1, - '_LT_LIBOBJ' => 1, - 'AC_PROG_LIBTOOL' => 1, - '_LT_PROG_LTMAIN' => 1, - 'LT_SUPPORTED_TAG' => 1, - 'AM_ENABLE_STATIC' => 1, - 'AC_LIBTOOL_GCJ' => 1, - 'AC_LIBLTDL_INSTALLABLE' => 1, - 'LT_SYS_DLOPEN_DEPLIBS' => 1, - 'AM_PROG_NM' => 1, - 'AC_LIBTOOL_SYS_DYNAMIC_LINKER' => 1, - 'AM_MISSING_PROG' => 1, - '_AM_IF_OPTION' => 1, - 'AM_AUTOMAKE_VERSION' => 1, - 'AC_PROG_LD_GNU' => 1, - 'AM_RUN_LOG' => 1, - 'LT_LIB_M' => 1, - '_LT_AC_LANG_GCJ_CONFIG' => 1, + 'LT_AC_PROG_GCJ' => 1, + 'LT_AC_PROG_SED' => 1, '_AM_MANGLE_OPTION' => 1, + '_LT_AC_SYS_LIBPATH_AIX' => 1, + '_AM_SUBST_NOTMAKE' => 1, '_LT_AC_FILE_LTDLL_C' => 1, - 'AM_SET_CURRENT_AUTOMAKE_VERSION' => 1, - 'AC_PROG_NM' => 1, - '_AM_DEPENDENCIES' => 1, - 'AC_LTDL_SYS_DLOPEN_DEPLIBS' => 1, - '_LT_AC_TAGVAR' => 1, - 'AC_LIBTOOL_DLOPEN_SELF' => 1, + 'AM_DISABLE_STATIC' => 1, '_LT_PROG_CXX' => 1, - '_LT_AC_LOCK' => 1, - 'AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, - 'm4_include' => 1, - '_LT_AC_LANG_C_CONFIG' => 1, - '_LT_AC_LANG_CXX_CONFIG' => 1, - 'AC_LIBTOOL_POSTDEP_PREDEP' => 1, - 'AC_LIBTOOL_FC' => 1, - 'LT_PROG_GCJ' => 1, - 'AC_LIBTOOL_CXX' => 1, - '_LT_PATH_TOOL_PREFIX' => 1, - 'AC_LTDL_DLSYM_USCORE' => 1, - 'AM_SUBST_NOTMAKE' => 1, - 'LTDL_CONVENIENCE' => 1, - 'LT_OUTPUT' => 1, - 'AC_LTDL_SYMBOL_USCORE' => 1, - 'LT_PATH_LD' => 1, - 'LTOPTIONS_VERSION' => 1, - 'm4_pattern_allow' => 1, - 'AM_INIT_AUTOMAKE' => 1, - 'AM_SET_DEPDIR' => 1, - 'LT_PATH_NM' => 1, - 'AC_LIBTOOL_SYS_LIB_STRIP' => 1, - 'AM_PROG_LIBTOOL' => 1, - 'LT_INIT' => 1, - 'AM_AUX_DIR_EXPAND' => 1, + '_LT_PROG_F77' => 1, + '_AM_PROG_CC_C_O' => 1, + 'AC_LTDL_ENABLE_INSTALL' => 1, + '_LT_AC_LANG_GCJ_CONFIG' => 1, + '_LT_REQUIRED_DARWIN_CHECKS' => 1, 'AC_PROG_LD_RELOAD_FLAG' => 1, - 'AC_LIBTOOL_LINKER_OPTION' => 1, - 'AC_WITH_LTDL' => 1, - '_AC_AM_CONFIG_HEADER_HOOK' => 1, - '_AM_CONFIG_MACRO_DIRS' => 1, - 'AC_CONFIG_MACRO_DIR' => 1, + 'AM_RUN_LOG' => 1, '_LT_AC_LANG_CXX' => 1, - '_LT_PROG_ECHO_BACKSLASH' => 1, - 'LT_SYS_MODULE_PATH' => 1, - '_AM_SET_OPTION' => 1, - '_LT_DLL_DEF_P' => 1, - 'include' => 1, - 'AC_ENABLE_FAST_INSTALL' => 1, - 'AC_LIBTOOL_RC' => 1, - 'AC_LIBTOOL_PROG_CC_C_O' => 1, - 'AC_LTDL_OBJDIR' => 1, - 'LT_PROG_RC' => 1, + 'AC_LIBTOOL_LANG_GCJ_CONFIG' => 1, + '_LT_CC_BASENAME' => 1, + 'AC_LIBTOOL_COMPILER_OPTION' => 1, + 'AC_LIBTOOL_LANG_CXX_CONFIG' => 1, + 'LT_INIT' => 1, 'm4_pattern_forbid' => 1, - 'AC_DEFUN_ONCE' => 1, - '_AC_PROG_LIBTOOL' => 1, - 'AC_LIBTOOL_PROG_LD_SHLIBS' => 1, + 'AC_CONFIG_MACRO_DIR' => 1, + 'AM_SILENT_RULES' => 1, + 'AC_LIBTOOL_GCJ' => 1, + 'AC_PROG_NM' => 1, + 'AC_LTDL_SYSSEARCHPATH' => 1, + 'AM_PROG_LD' => 1, + '_AM_AUTOCONF_VERSION' => 1, + 'LT_PROG_GO' => 1, + 'AC_LTDL_SYS_DLOPEN_DEPLIBS' => 1, + 'LT_SYS_SYMBOL_USCORE' => 1, + 'AM_MISSING_HAS_RUN' => 1, + 'AC_LIBTOOL_SYS_OLD_ARCHIVE' => 1, + 'AC_PROG_LIBTOOL' => 1, + 'AC_LTDL_SHLIBPATH' => 1, + '_LT_WITH_SYSROOT' => 1, + 'AC_CONFIG_MACRO_DIR_TRACE' => 1, 'LT_FUNC_ARGZ' => 1, - '_LT_PROG_F77' => 1, - '_LT_AC_SYS_COMPILER' => 1, - 'AM_PROG_INSTALL_STRIP' => 1, + 'AC_LIB_LTDL' => 1, + 'AC_LIBTOOL_PROG_COMPILER_PIC' => 1, + '_AM_PROG_TAR' => 1, + '_LT_AC_LANG_GCJ' => 1, + '_LT_COMPILER_BOILERPLATE' => 1, + 'LT_AC_PROG_EGREP' => 1, + 'AM_SANITY_CHECK' => 1, + 'AC_DISABLE_FAST_INSTALL' => 1, 'AC_DEFUN' => 1, - 'AC_LTDL_SYSSEARCHPATH' => 1, + 'AC_LIBTOOL_WIN32_DLL' => 1, + 'AM_PROG_INSTALL_STRIP' => 1, + 'LT_AC_PROG_RC' => 1, + 'LT_LIB_DLLOAD' => 1, + 'AC_WITH_LTDL' => 1, + '_LT_AC_SYS_COMPILER' => 1, 'AC_LIBTOOL_CONFIG' => 1, - 'AC_LTDL_DLLIB' => 1, + 'AC_LIBTOOL_FC' => 1, + 'AC_DISABLE_SHARED' => 1, + 'AM_INIT_AUTOMAKE' => 1, + 'AC_LIBTOOL_SYS_LIB_STRIP' => 1, 'LTDL_INSTALLABLE' => 1, - 'AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH' => 1, - 'AM_PROG_INSTALL_SH' => 1, - 'AC_LIBTOOL_LANG_CXX_CONFIG' => 1, - '_LT_AC_LANG_F77_CONFIG' => 1, - 'LT_CONFIG_LTDL_DIR' => 1, - 'AM_SILENT_RULES' => 1, - 'AC_DISABLE_FAST_INSTALL' => 1, 'AM_DISABLE_SHARED' => 1, - '_LT_COMPILER_BOILERPLATE' => 1, - 'AC_LIBTOOL_WIN32_DLL' => 1, - '_LT_WITH_SYSROOT' => 1, - '_LT_AC_SHELL_INIT' => 1, - 'AC_LIBTOOL_SYS_HARD_LINK_LOCKS' => 1, - '_AM_SUBST_NOTMAKE' => 1, + 'AC_LIBTOOL_RC' => 1, + 'AC_PATH_MAGIC' => 1, + 'AC_PATH_TOOL_PREFIX' => 1, + 'include' => 1, + 'LTOBSOLETE_VERSION' => 1, + 'LT_SYS_DLSEARCH_PATH' => 1, + 'AC_LIBLTDL_CONVENIENCE' => 1, + 'AC_LIBTOOL_LANG_RC_CONFIG' => 1, + '_LT_LINKER_BOILERPLATE' => 1, + 'AC_LTDL_SHLIBEXT' => 1, + 'AC_LTDL_SYMBOL_USCORE' => 1, + 'AC_LIBTOOL_PICMODE' => 1, + 'AC_LTDL_DLSYM_USCORE' => 1, + '_LT_AC_LANG_C_CONFIG' => 1, + '_LT_AC_TRY_DLOPEN_SELF' => 1, + 'LT_PATH_NM' => 1, + 'LT_CMD_MAX_LEN' => 1, + '_LT_AC_LANG_F77_CONFIG' => 1, + 'AM_MISSING_PROG' => 1, + 'AC_PROG_LD' => 1, + 'AC_CHECK_LIBM' => 1, + 'LT_FUNC_DLSYM_USCORE' => 1, 'AM_PROG_CC_C_O' => 1, - '_AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, + '_AC_PROG_LIBTOOL' => 1, + '_LT_AC_PROG_CXXCPP' => 1, + 'AC_LIBTOOL_PROG_COMPILER_NO_RTTI' => 1, + '_LT_AC_TAGVAR' => 1, + '_LT_AC_TAGCONFIG' => 1, + 'LT_SYS_MODULE_EXT' => 1, + 'AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE' => 1, + 'AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH' => 1, + '_LT_COMPILER_OPTION' => 1, + 'AM_ENABLE_STATIC' => 1, + '_LT_AC_LANG_RC_CONFIG' => 1, + 'AC_PROG_LD_GNU' => 1, + 'AC_LIBTOOL_CXX' => 1, + 'AC_LTDL_DLLIB' => 1, 'AC_LIBTOOL_SETUP' => 1, - 'AC_DISABLE_STATIC' => 1, - 'AM_DISABLE_STATIC' => 1, - '_LT_PROG_FC' => 1, - 'LT_AC_PROG_RC' => 1, - '_LT_PREPARE_SED_QUOTE_VARS' => 1, - 'LT_CMD_MAX_LEN' => 1, - 'AC_ENABLE_STATIC' => 1, - '_LT_AC_SYS_LIBPATH_AIX' => 1, + 'LTDL_INIT' => 1, + 'LT_SYS_DLOPEN_SELF' => 1, + 'AM_PROG_LIBTOOL' => 1, + '_LT_LIBOBJ' => 1, + 'AC_LIBTOOL_F77' => 1, 'LTVERSION_VERSION' => 1, - 'AC_LTDL_ENABLE_INSTALL' => 1, - '_AM_PROG_CC_C_O' => 1, - 'AM_DEP_TRACK' => 1, - 'AC_LIBTOOL_SYS_OLD_ARCHIVE' => 1, - 'LT_PROG_GO' => 1, - 'LT_SYS_DLSEARCH_PATH' => 1, - 'AC_DEPLIBS_CHECK_METHOD' => 1, - 'AC_DISABLE_SHARED' => 1, - '_LT_AC_CHECK_DLFCN' => 1, + 'AC_LTDL_OBJDIR' => 1, + '_LT_PROG_LTMAIN' => 1, + 'AM_ENABLE_SHARED' => 1, + '_LT_PREPARE_SED_QUOTE_VARS' => 1, + 'AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, + 'AM_SET_DEPDIR' => 1, + '_LT_PROG_ECHO_BACKSLASH' => 1, + 'AC_LTDL_PREOPEN' => 1, + 'AC_ENABLE_SHARED' => 1, + 'AC_LIBTOOL_LINKER_OPTION' => 1, + 'm4_pattern_allow' => 1, + 'AM_PROG_NM' => 1, 'LTSUGAR_VERSION' => 1, + '_AM_CONFIG_MACRO_DIRS' => 1, + 'AC_LIBTOOL_SYS_MAX_CMD_LEN' => 1, + 'AM_DEP_TRACK' => 1, + 'AU_DEFUN' => 1, + 'AC_LIBTOOL_SYS_HARD_LINK_LOCKS' => 1, + 'LT_SYS_MODULE_PATH' => 1, + 'AC_LIBTOOL_DLOPEN' => 1, '_AM_SET_OPTIONS' => 1, - 'AM_ENABLE_SHARED' => 1, - '_LT_COMPILER_OPTION' => 1, - 'AM_PROG_AR' => 1, - 'AC_LIBTOOL_PROG_COMPILER_PIC' => 1, + '_LTDL_SETUP' => 1, + 'LTOPTIONS_VERSION' => 1, + 'LT_PROG_RC' => 1, + 'AC_ENABLE_FAST_INSTALL' => 1, + '_LT_AC_CHECK_DLFCN' => 1, 'AM_MAKE_INCLUDE' => 1, - '_LT_AC_PROG_CXXCPP' => 1, - '_LT_LINKER_OPTION' => 1, - 'AC_LIBTOOL_COMPILER_OPTION' => 1, - 'AM_SANITY_CHECK' => 1, - 'AC_LIBTOOL_PICMODE' => 1, - '_LT_AC_LANG_RC_CONFIG' => 1, - 'AC_LIBTOOL_LANG_GCJ_CONFIG' => 1, - 'AC_LIBTOOL_LANG_RC_CONFIG' => 1, - 'LT_SYS_SYMBOL_USCORE' => 1, - 'AC_CONFIG_MACRO_DIR_TRACE' => 1, - 'AC_LIBTOOL_LANG_C_CONFIG' => 1, - '_AM_PROG_TAR' => 1, - 'LT_LANG' => 1, - 'AC_PATH_TOOL_PREFIX' => 1, - 'LT_FUNC_DLSYM_USCORE' => 1, - 'AC_LTDL_SHLIBPATH' => 1, - 'LTOBSOLETE_VERSION' => 1, - 'LTDL_INIT' => 1, - 'LT_LIB_DLLOAD' => 1, - 'AM_MISSING_HAS_RUN' => 1, - 'AM_PROG_LD' => 1, + '_AM_DEPENDENCIES' => 1, + 'AC_ENABLE_STATIC' => 1, + 'AC_LIBLTDL_INSTALLABLE' => 1, + 'LT_CONFIG_LTDL_DIR' => 1, + 'AM_PROG_INSTALL_SH' => 1, + 'AM_AUX_DIR_EXPAND' => 1, + 'm4_include' => 1, + 'AM_SET_CURRENT_AUTOMAKE_VERSION' => 1, + 'AC_LIBTOOL_PROG_CC_C_O' => 1, + '_LT_AC_SHELL_INIT' => 1, 'AC_LIBTOOL_LANG_F77_CONFIG' => 1, - 'LT_AC_PROG_GCJ' => 1 + 'AC_DISABLE_STATIC' => 1, + 'LT_PATH_LD' => 1, + 'AM_SET_LEADING_DOT' => 1, + 'LT_LANG' => 1, + 'LT_LIB_M' => 1, + 'AM_AUTOMAKE_VERSION' => 1, + 'LTDL_CONVENIENCE' => 1, + 'AM_PROG_AR' => 1, + '_AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, + 'AC_PROG_EGREP' => 1, + '_AM_SET_OPTION' => 1, + '_LT_AC_LANG_F77' => 1, + 'AC_LIBTOOL_PROG_LD_SHLIBS' => 1, + 'AC_LIBTOOL_OBJDIR' => 1, + 'AC_LIBTOOL_LANG_C_CONFIG' => 1, + '_LT_AC_LANG_CXX_CONFIG' => 1, + 'AC_DEPLIBS_CHECK_METHOD' => 1, + 'AM_SUBST_NOTMAKE' => 1, + '_AM_IF_OPTION' => 1, + '_LT_LINKER_OPTION' => 1, + 'AC_LIBTOOL_POSTDEP_PREDEP' => 1, + 'LT_WITH_LTDL' => 1, + 'LT_SYS_DLOPEN_DEPLIBS' => 1, + 'LT_PROG_GCJ' => 1, + 'AC_LIBTOOL_SYS_DYNAMIC_LINKER' => 1, + 'AM_CONDITIONAL' => 1, + '_LT_DLL_DEF_P' => 1, + '_LT_AC_LOCK' => 1, + '_AC_AM_CONFIG_HEADER_HOOK' => 1, + '_LT_AC_PROG_ECHO_BACKSLASH' => 1, + '_LT_PROG_FC' => 1, + 'LT_OUTPUT' => 1, + 'AC_DEFUN_ONCE' => 1, + 'AC_LIBTOOL_DLOPEN_SELF' => 1, + 'LT_SUPPORTED_TAG' => 1, + '_LT_PATH_TOOL_PREFIX' => 1 } ], 'Autom4te::Request' ), bless( [ @@ -236,66 +236,66 @@ 'configure.ac' ], { + 'm4_sinclude' => 1, + 'AM_PROG_MOC' => 1, '_LT_AC_TAGCONFIG' => 1, + '_AM_COND_IF' => 1, + 'AC_CONFIG_FILES' => 1, + 'LT_CONFIG_LTDL_DIR' => 1, + 'LT_SUPPORTED_TAG' => 1, + 'AC_CANONICAL_SYSTEM' => 1, 'AC_CANONICAL_HOST' => 1, - 'm4_pattern_forbid' => 1, - 'AM_POT_TOOLS' => 1, + 'AC_CONFIG_HEADERS' => 1, + 'AC_PROG_LIBTOOL' => 1, + 'AC_DEFINE_TRACE_LITERAL' => 1, 'AC_INIT' => 1, - 'AC_FC_PP_SRCEXT' => 1, + 'AC_FC_PP_DEFINE' => 1, + 'AC_CANONICAL_BUILD' => 1, 'AC_SUBST_TRACE' => 1, - 'AC_CONFIG_AUX_DIR' => 1, - 'AC_REQUIRE_AUX_FILE' => 1, - 'AM_GNU_GETTEXT' => 1, - 'AH_OUTPUT' => 1, - 'm4_sinclude' => 1, - 'AM_XGETTEXT_OPTION' => 1, - 'AM_AUTOMAKE_VERSION' => 1, - 'AC_CONFIG_LINKS' => 1, 'AM_ENABLE_MULTILIB' => 1, + 'AC_FC_SRCEXT' => 1, + 'AM_PROG_CC_C_O' => 1, + 'AM_PROG_CXX_C_O' => 1, 'AM_MAINTAINER_MODE' => 1, 'AM_CONDITIONAL' => 1, - 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1, - 'AC_FC_PP_DEFINE' => 1, - 'AC_CANONICAL_SYSTEM' => 1, - 'sinclude' => 1, - 'include' => 1, - 'AM_PATH_GUILE' => 1, - '_AM_COND_ENDIF' => 1, - 'AM_SILENT_RULES' => 1, - '_AM_COND_ELSE' => 1, '_AM_MAKEFILE_INCLUDE' => 1, - 'AC_CONFIG_SUBDIRS' => 1, - 'AC_SUBST' => 1, - '_AM_COND_IF' => 1, + 'include' => 1, 'm4_pattern_allow' => 1, - 'AM_INIT_AUTOMAKE' => 1, - 'AC_DEFINE_TRACE_LITERAL' => 1, - 'AM_PROG_CC_C_O' => 1, + 'AM_PROG_MKDIR_P' => 1, 'LT_INIT' => 1, + 'AC_CONFIG_AUX_DIR' => 1, 'AC_FC_FREEFORM' => 1, - 'AC_CANONICAL_BUILD' => 1, - 'AC_FC_SRCEXT' => 1, - '_AM_SUBST_NOTMAKE' => 1, - 'AM_PROG_LIBTOOL' => 1, + 'm4_pattern_forbid' => 1, + 'AM_GNU_GETTEXT' => 1, + 'AH_OUTPUT' => 1, + '_AM_COND_ELSE' => 1, + 'sinclude' => 1, + 'AM_PROG_AR' => 1, + 'AM_NLS' => 1, + 'AC_SUBST' => 1, 'AM_PROG_F77_C_O' => 1, 'AM_PROG_FC_C_O' => 1, - 'AC_CONFIG_FILES' => 1, - 'LT_SUPPORTED_TAG' => 1, - 'AM_EXTRA_RECURSIVE_TARGETS' => 1, - 'AC_PROG_LIBTOOL' => 1, + 'AM_SILENT_RULES' => 1, + 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1, + 'AM_PROG_LIBTOOL' => 1, + 'AC_CONFIG_LINKS' => 1, + '_m4_warn' => 1, + 'AC_CONFIG_SUBDIRS' => 1, 'm4_include' => 1, - 'AC_CANONICAL_TARGET' => 1, - 'AC_LIBSOURCE' => 1, - 'AM_MAKEFILE_INCLUDE' => 1, - 'AM_PROG_AR' => 1, - 'AM_PROG_MOC' => 1, - 'AC_CONFIG_HEADERS' => 1, - 'AM_PROG_CXX_C_O' => 1, + 'AM_PATH_GUILE' => 1, + 'AM_XGETTEXT_OPTION' => 1, 'AC_CONFIG_LIBOBJ_DIR' => 1, - 'AM_NLS' => 1, - 'AM_PROG_MKDIR_P' => 1, - '_m4_warn' => 1, - 'LT_CONFIG_LTDL_DIR' => 1 + 'AC_FC_PP_SRCEXT' => 1, + 'AM_MAKEFILE_INCLUDE' => 1, + 'AC_LIBSOURCE' => 1, + 'AM_AUTOMAKE_VERSION' => 1, + '_AM_COND_ENDIF' => 1, + 'AC_CANONICAL_TARGET' => 1, + '_AM_SUBST_NOTMAKE' => 1, + 'AC_REQUIRE_AUX_FILE' => 1, + 'AM_INIT_AUTOMAKE' => 1, + 'AM_POT_TOOLS' => 1, + 'AM_EXTRA_RECURSIVE_TARGETS' => 1 } ], 'Autom4te::Request' ), bless( [ @@ -337,186 +337,186 @@ 'configure.ac' ], { - 'AC_CHECK_LIBM' => 1, - 'AC_LTDL_PREOPEN' => 1, - 'AM_CONDITIONAL' => 1, - 'AU_DEFUN' => 1, - 'LT_SYS_MODULE_EXT' => 1, - '_LT_AC_PROG_ECHO_BACKSLASH' => 1, - 'LT_AC_PROG_SED' => 1, - '_LT_AC_LANG_F77' => 1, - 'AC_LIBTOOL_PROG_COMPILER_NO_RTTI' => 1, - 'AC_LIB_LTDL' => 1, - 'AM_SET_LEADING_DOT' => 1, - 'AC_LIBTOOL_SYS_MAX_CMD_LEN' => 1, - '_LT_AC_TAGCONFIG' => 1, - 'AC_LIBTOOL_DLOPEN' => 1, - '_AM_AUTOCONF_VERSION' => 1, - 'AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE' => 1, - '_LT_REQUIRED_DARWIN_CHECKS' => 1, - 'AC_ENABLE_SHARED' => 1, - 'AC_PROG_LD' => 1, + '_AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, 'AC_PROG_EGREP' => 1, + 'AC_LIBTOOL_PROG_LD_SHLIBS' => 1, + '_AM_SET_OPTION' => 1, + '_LT_AC_LANG_F77' => 1, + 'LTDL_CONVENIENCE' => 1, + 'AM_PROG_AR' => 1, + 'AM_SUBST_NOTMAKE' => 1, + '_LT_AC_LANG_CXX_CONFIG' => 1, + 'AC_DEPLIBS_CHECK_METHOD' => 1, 'AC_LIBTOOL_OBJDIR' => 1, - '_LT_AC_TRY_DLOPEN_SELF' => 1, - 'LT_SYS_DLOPEN_SELF' => 1, - '_m4_warn' => 1, - 'AC_LIBLTDL_CONVENIENCE' => 1, - '_LTDL_SETUP' => 1, - 'AC_LTDL_SHLIBEXT' => 1, - '_LT_AC_LANG_GCJ' => 1, - '_LT_LINKER_BOILERPLATE' => 1, - 'LT_AC_PROG_EGREP' => 1, - '_LT_CC_BASENAME' => 1, - 'AC_LIBTOOL_GCJ' => 1, - 'AM_ENABLE_STATIC' => 1, - 'LT_SUPPORTED_TAG' => 1, - 'AC_LIBLTDL_INSTALLABLE' => 1, - 'AC_PROG_LIBTOOL' => 1, - '_LT_PROG_LTMAIN' => 1, - '_LT_LIBOBJ' => 1, - 'AC_LIBTOOL_F77' => 1, - 'AC_PATH_MAGIC' => 1, - 'LT_WITH_LTDL' => 1, + 'AC_LIBTOOL_LANG_C_CONFIG' => 1, + '_LT_AC_SHELL_INIT' => 1, + 'AC_LIBTOOL_LANG_F77_CONFIG' => 1, + 'AC_DISABLE_STATIC' => 1, + 'AM_SET_CURRENT_AUTOMAKE_VERSION' => 1, + 'm4_include' => 1, + 'AM_AUX_DIR_EXPAND' => 1, + 'AC_LIBTOOL_PROG_CC_C_O' => 1, 'AM_AUTOMAKE_VERSION' => 1, - '_AM_IF_OPTION' => 1, - 'AM_MISSING_PROG' => 1, - 'AC_LIBTOOL_SYS_DYNAMIC_LINKER' => 1, - 'AM_PROG_NM' => 1, - 'LT_SYS_DLOPEN_DEPLIBS' => 1, - '_AM_MANGLE_OPTION' => 1, - 'AM_RUN_LOG' => 1, 'LT_LIB_M' => 1, - '_LT_AC_LANG_GCJ_CONFIG' => 1, - 'AC_PROG_LD_GNU' => 1, - 'AC_PROG_NM' => 1, - 'AM_SET_CURRENT_AUTOMAKE_VERSION' => 1, - '_LT_AC_FILE_LTDLL_C' => 1, + 'AM_SET_LEADING_DOT' => 1, + 'LT_PATH_LD' => 1, + 'LT_LANG' => 1, + 'AC_DEFUN_ONCE' => 1, 'AC_LIBTOOL_DLOPEN_SELF' => 1, - '_AM_DEPENDENCIES' => 1, - 'AC_LTDL_SYS_DLOPEN_DEPLIBS' => 1, - '_LT_AC_TAGVAR' => 1, - 'AC_LIBTOOL_POSTDEP_PREDEP' => 1, - 'm4_include' => 1, - '_LT_AC_LANG_C_CONFIG' => 1, - '_LT_AC_LANG_CXX_CONFIG' => 1, - '_LT_AC_LOCK' => 1, - '_LT_PROG_CXX' => 1, - 'AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, - 'LTDL_CONVENIENCE' => 1, 'LT_OUTPUT' => 1, - 'AM_SUBST_NOTMAKE' => 1, - 'AC_LTDL_DLSYM_USCORE' => 1, - 'AC_LIBTOOL_FC' => 1, + '_LT_PROG_FC' => 1, + 'LT_SUPPORTED_TAG' => 1, '_LT_PATH_TOOL_PREFIX' => 1, + 'AC_LIBTOOL_POSTDEP_PREDEP' => 1, + 'LT_WITH_LTDL' => 1, + '_AM_IF_OPTION' => 1, + '_LT_LINKER_OPTION' => 1, + '_AC_AM_CONFIG_HEADER_HOOK' => 1, + '_LT_AC_LOCK' => 1, + '_LT_AC_PROG_ECHO_BACKSLASH' => 1, + 'AM_CONDITIONAL' => 1, + '_LT_DLL_DEF_P' => 1, 'LT_PROG_GCJ' => 1, - 'AC_LIBTOOL_CXX' => 1, + 'LT_SYS_DLOPEN_DEPLIBS' => 1, + 'AC_LIBTOOL_SYS_DYNAMIC_LINKER' => 1, 'm4_pattern_allow' => 1, - 'AM_INIT_AUTOMAKE' => 1, - 'LTOPTIONS_VERSION' => 1, - 'AC_LTDL_SYMBOL_USCORE' => 1, - 'LT_PATH_LD' => 1, - 'LT_INIT' => 1, - 'AM_AUX_DIR_EXPAND' => 1, - 'AM_SET_DEPDIR' => 1, - 'AM_PROG_LIBTOOL' => 1, - 'AC_LIBTOOL_SYS_LIB_STRIP' => 1, - 'LT_PATH_NM' => 1, 'AC_LIBTOOL_LINKER_OPTION' => 1, - 'AC_PROG_LD_RELOAD_FLAG' => 1, - 'AC_LIBTOOL_RC' => 1, - 'AC_LIBTOOL_PROG_CC_C_O' => 1, - '_AM_SET_OPTION' => 1, - 'include' => 1, - '_LT_DLL_DEF_P' => 1, - 'LT_SYS_MODULE_PATH' => 1, - 'AC_ENABLE_FAST_INSTALL' => 1, - 'AC_CONFIG_MACRO_DIR' => 1, - '_LT_AC_LANG_CXX' => 1, + 'AC_ENABLE_SHARED' => 1, + 'AM_PROG_NM' => 1, + 'AM_SET_DEPDIR' => 1, + 'AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, '_LT_PROG_ECHO_BACKSLASH' => 1, - 'AC_WITH_LTDL' => 1, + 'AC_LTDL_PREOPEN' => 1, + 'LTSUGAR_VERSION' => 1, '_AM_CONFIG_MACRO_DIRS' => 1, - '_AC_AM_CONFIG_HEADER_HOOK' => 1, - '_AC_PROG_LIBTOOL' => 1, - 'AC_DEFUN_ONCE' => 1, + 'LT_SYS_DLOPEN_SELF' => 1, + 'AC_LIBTOOL_SETUP' => 1, + 'LTDL_INIT' => 1, + 'AM_PROG_LIBTOOL' => 1, + 'AM_ENABLE_STATIC' => 1, + '_LT_AC_LANG_RC_CONFIG' => 1, + 'AC_PROG_LD_GNU' => 1, + 'AC_LIBTOOL_CXX' => 1, + 'AC_LTDL_DLLIB' => 1, + '_LT_PROG_LTMAIN' => 1, + '_LT_PREPARE_SED_QUOTE_VARS' => 1, + 'AM_ENABLE_SHARED' => 1, + '_LT_LIBOBJ' => 1, 'AC_LTDL_OBJDIR' => 1, + 'AC_LIBTOOL_F77' => 1, + 'LTVERSION_VERSION' => 1, + 'LTOPTIONS_VERSION' => 1, + '_LT_AC_CHECK_DLFCN' => 1, + 'AC_ENABLE_FAST_INSTALL' => 1, + 'AC_ENABLE_STATIC' => 1, + 'AC_LIBLTDL_INSTALLABLE' => 1, + 'AM_PROG_INSTALL_SH' => 1, + 'LT_CONFIG_LTDL_DIR' => 1, + '_AM_DEPENDENCIES' => 1, + 'AM_MAKE_INCLUDE' => 1, 'LT_PROG_RC' => 1, - 'm4_pattern_forbid' => 1, - 'AM_PROG_INSTALL_STRIP' => 1, + 'AU_DEFUN' => 1, + 'AC_LIBTOOL_SYS_HARD_LINK_LOCKS' => 1, + 'AC_LIBTOOL_SYS_MAX_CMD_LEN' => 1, + 'AM_DEP_TRACK' => 1, + '_AM_SET_OPTIONS' => 1, + '_LTDL_SETUP' => 1, + 'LT_SYS_MODULE_PATH' => 1, + 'AC_LIBTOOL_DLOPEN' => 1, + 'include' => 1, + 'AC_PATH_MAGIC' => 1, + 'AC_PATH_TOOL_PREFIX' => 1, + '_LT_LINKER_BOILERPLATE' => 1, + 'AC_LIBTOOL_LANG_RC_CONFIG' => 1, + 'LT_SYS_DLSEARCH_PATH' => 1, + 'LTOBSOLETE_VERSION' => 1, + 'AC_LIBLTDL_CONVENIENCE' => 1, + 'LT_LIB_DLLOAD' => 1, + 'AC_WITH_LTDL' => 1, '_LT_AC_SYS_COMPILER' => 1, - '_LT_PROG_F77' => 1, - 'LT_FUNC_ARGZ' => 1, - 'AC_LIBTOOL_PROG_LD_SHLIBS' => 1, - 'AC_LTDL_DLLIB' => 1, - 'LTDL_INSTALLABLE' => 1, 'AC_LIBTOOL_CONFIG' => 1, - 'AC_DEFUN' => 1, - 'AC_LTDL_SYSSEARCHPATH' => 1, - 'AM_PROG_INSTALL_SH' => 1, - 'LT_CONFIG_LTDL_DIR' => 1, - 'AC_LIBTOOL_LANG_CXX_CONFIG' => 1, - '_LT_AC_LANG_F77_CONFIG' => 1, - 'AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH' => 1, - '_LT_AC_SHELL_INIT' => 1, 'AM_DISABLE_SHARED' => 1, - '_LT_COMPILER_BOILERPLATE' => 1, - 'AC_LIBTOOL_WIN32_DLL' => 1, - '_LT_WITH_SYSROOT' => 1, - 'AC_DISABLE_FAST_INSTALL' => 1, - 'AM_SILENT_RULES' => 1, - 'AM_DISABLE_STATIC' => 1, - 'AC_DISABLE_STATIC' => 1, - '_LT_PROG_FC' => 1, - 'AC_LIBTOOL_SETUP' => 1, + 'LTDL_INSTALLABLE' => 1, + 'AC_LIBTOOL_RC' => 1, + 'AC_DISABLE_SHARED' => 1, + 'AC_LIBTOOL_FC' => 1, + 'AC_LIBTOOL_SYS_LIB_STRIP' => 1, + 'AM_INIT_AUTOMAKE' => 1, + 'AC_LIBTOOL_PROG_COMPILER_NO_RTTI' => 1, + '_LT_AC_TAGCONFIG' => 1, + '_LT_AC_TAGVAR' => 1, + '_LT_AC_PROG_CXXCPP' => 1, + '_AC_PROG_LIBTOOL' => 1, + '_LT_COMPILER_OPTION' => 1, + 'AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH' => 1, + 'LT_SYS_MODULE_EXT' => 1, + 'AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE' => 1, + 'AC_LTDL_DLSYM_USCORE' => 1, + 'AC_LIBTOOL_PICMODE' => 1, + 'AC_LTDL_SYMBOL_USCORE' => 1, + 'AC_LTDL_SHLIBEXT' => 1, + 'AC_CHECK_LIBM' => 1, 'AM_PROG_CC_C_O' => 1, - '_AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, - 'AC_LIBTOOL_SYS_HARD_LINK_LOCKS' => 1, - '_AM_SUBST_NOTMAKE' => 1, - 'AC_ENABLE_STATIC' => 1, + 'LT_FUNC_DLSYM_USCORE' => 1, + 'LT_PATH_NM' => 1, 'LT_CMD_MAX_LEN' => 1, - '_LT_PREPARE_SED_QUOTE_VARS' => 1, - 'LT_AC_PROG_RC' => 1, - 'LTVERSION_VERSION' => 1, - '_LT_AC_SYS_LIBPATH_AIX' => 1, - 'AC_LIBTOOL_SYS_OLD_ARCHIVE' => 1, - 'LT_PROG_GO' => 1, - 'LT_SYS_DLSEARCH_PATH' => 1, - 'AM_DEP_TRACK' => 1, - '_AM_PROG_CC_C_O' => 1, + '_LT_AC_LANG_C_CONFIG' => 1, + '_LT_AC_TRY_DLOPEN_SELF' => 1, + 'AC_PROG_LD' => 1, + 'AM_MISSING_PROG' => 1, + '_LT_AC_LANG_F77_CONFIG' => 1, + '_LT_CC_BASENAME' => 1, + 'AC_LIBTOOL_LANG_GCJ_CONFIG' => 1, + 'm4_pattern_forbid' => 1, + 'LT_INIT' => 1, + 'AC_LIBTOOL_COMPILER_OPTION' => 1, + 'AC_LIBTOOL_LANG_CXX_CONFIG' => 1, + '_LT_REQUIRED_DARWIN_CHECKS' => 1, + 'AC_PROG_LD_RELOAD_FLAG' => 1, + 'AM_RUN_LOG' => 1, + '_LT_AC_LANG_CXX' => 1, + 'AC_LIBTOOL_GCJ' => 1, + 'AM_SILENT_RULES' => 1, + 'AC_CONFIG_MACRO_DIR' => 1, + 'LT_AC_PROG_SED' => 1, + '_AM_MANGLE_OPTION' => 1, + '_m4_warn' => 1, + 'LT_AC_PROG_GCJ' => 1, 'AC_LTDL_ENABLE_INSTALL' => 1, - 'LTSUGAR_VERSION' => 1, - '_LT_AC_CHECK_DLFCN' => 1, - 'AC_DISABLE_SHARED' => 1, - 'AC_DEPLIBS_CHECK_METHOD' => 1, + '_AM_PROG_CC_C_O' => 1, + '_LT_AC_LANG_GCJ_CONFIG' => 1, + '_LT_AC_SYS_LIBPATH_AIX' => 1, + '_AM_SUBST_NOTMAKE' => 1, + '_LT_PROG_CXX' => 1, + '_LT_PROG_F77' => 1, + '_LT_AC_FILE_LTDLL_C' => 1, + 'AM_DISABLE_STATIC' => 1, 'AM_SANITY_CHECK' => 1, - 'AC_LIBTOOL_COMPILER_OPTION' => 1, - 'AC_LIBTOOL_PICMODE' => 1, - '_LT_AC_LANG_RC_CONFIG' => 1, - '_LT_AC_PROG_CXXCPP' => 1, - '_LT_LINKER_OPTION' => 1, - 'AM_MAKE_INCLUDE' => 1, - '_AM_SET_OPTIONS' => 1, - 'AM_ENABLE_SHARED' => 1, - 'AM_PROG_AR' => 1, - 'AC_LIBTOOL_PROG_COMPILER_PIC' => 1, - '_LT_COMPILER_OPTION' => 1, - 'AC_LIBTOOL_LANG_C_CONFIG' => 1, - 'LT_LANG' => 1, + 'LT_AC_PROG_EGREP' => 1, + '_LT_COMPILER_BOILERPLATE' => 1, '_AM_PROG_TAR' => 1, + '_LT_AC_LANG_GCJ' => 1, + 'AC_LIBTOOL_WIN32_DLL' => 1, + 'AC_DEFUN' => 1, + 'LT_AC_PROG_RC' => 1, + 'AM_PROG_INSTALL_STRIP' => 1, + 'AC_DISABLE_FAST_INSTALL' => 1, + 'AC_LIBTOOL_SYS_OLD_ARCHIVE' => 1, + 'AM_MISSING_HAS_RUN' => 1, + 'AC_LTDL_SYS_DLOPEN_DEPLIBS' => 1, 'LT_SYS_SYMBOL_USCORE' => 1, - 'AC_CONFIG_MACRO_DIR_TRACE' => 1, - 'AC_LIBTOOL_LANG_GCJ_CONFIG' => 1, - 'AC_LIBTOOL_LANG_RC_CONFIG' => 1, - 'LTDL_INIT' => 1, - 'LT_FUNC_DLSYM_USCORE' => 1, 'AC_LTDL_SHLIBPATH' => 1, - 'LTOBSOLETE_VERSION' => 1, - 'AC_PATH_TOOL_PREFIX' => 1, - 'AC_LIBTOOL_LANG_F77_CONFIG' => 1, - 'LT_AC_PROG_GCJ' => 1, + 'AC_PROG_LIBTOOL' => 1, 'AM_PROG_LD' => 1, - 'LT_LIB_DLLOAD' => 1, - 'AM_MISSING_HAS_RUN' => 1 + 'AC_LTDL_SYSSEARCHPATH' => 1, + 'AC_PROG_NM' => 1, + 'LT_PROG_GO' => 1, + '_AM_AUTOCONF_VERSION' => 1, + 'AC_LIB_LTDL' => 1, + 'AC_LIBTOOL_PROG_COMPILER_PIC' => 1, + 'AC_CONFIG_MACRO_DIR_TRACE' => 1, + 'LT_FUNC_ARGZ' => 1, + '_LT_WITH_SYSROOT' => 1 } ], 'Autom4te::Request' ) ); diff --git a/src/tracer/libperf/config.status b/src/tracer/libperf/config.status index e6a2a8b..658e6f2 100755 --- a/src/tracer/libperf/config.status +++ b/src/tracer/libperf/config.status @@ -571,7 +571,7 @@ Xsed='/bin/sed -e 1s/^X//' GREP='/bin/grep' EGREP='/bin/grep -E' FGREP='/bin/grep -F' -LD='/usr/bin/x86_64-linux-gnu-ld -m elf_x86_64' +LD='/usr/bin/ld -m elf_x86_64' NM='/usr/bin/nm -B' LN_S='ln -s' max_cmd_len='1572864' @@ -679,8 +679,8 @@ postuninstall_cmds='' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' finish_eval='' hardcode_into_libs='yes' -sys_lib_search_path_spec='/usr/lib/gcc/x86_64-linux-gnu/6 /usr/lib/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib ' -configure_time_dlsearch_path='/lib /usr/lib /usr/lib/x86_64-linux-gnu/libfakeroot /usr/local/lib /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/mesa-egl /usr/lib/x86_64-linux-gnu/mesa /lib32 /usr/lib32 ' +sys_lib_search_path_spec='/usr/lib/gcc/x86_64-linux-gnu/5 /usr/lib/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib ' +configure_time_dlsearch_path='/lib /usr/lib /usr/lib/x86_64-linux-gnu/libfakeroot /usr/local/lib /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/mesa-egl /usr/lib/x86_64-linux-gnu/mesa ' configure_time_lt_sys_library_path='' hardcode_action='immediate' enable_dlopen='unknown' @@ -839,7 +839,7 @@ S["LN_S"]="ln -s" S["NM"]="/usr/bin/nm -B" S["ac_ct_DUMPBIN"]="" S["DUMPBIN"]="" -S["LD"]="/usr/bin/x86_64-linux-gnu-ld -m elf_x86_64" +S["LD"]="/usr/bin/ld -m elf_x86_64" S["FGREP"]="/bin/grep -F" S["EGREP"]="/bin/grep -E" S["GREP"]="/bin/grep" diff --git a/src/tracer/libperf/libtool b/src/tracer/libperf/libtool index ac7328d..3ff14da 100755 --- a/src/tracer/libperf/libtool +++ b/src/tracer/libperf/libtool @@ -282,10 +282,10 @@ finish_eval="" hardcode_into_libs=yes # Compile-time system search path for libraries. -sys_lib_search_path_spec="/usr/lib/gcc/x86_64-linux-gnu/6 /usr/lib/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib " +sys_lib_search_path_spec="/usr/lib/gcc/x86_64-linux-gnu/5 /usr/lib/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib " # Detected run-time system search path for libraries. -sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/lib/x86_64-linux-gnu/libfakeroot /usr/local/lib /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/mesa-egl /usr/lib/x86_64-linux-gnu/mesa /lib32 /usr/lib32 " +sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/lib/x86_64-linux-gnu/libfakeroot /usr/local/lib /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/mesa-egl /usr/lib/x86_64-linux-gnu/mesa " # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. configure_time_lt_sys_library_path="" @@ -305,7 +305,7 @@ striplib="strip --strip-unneeded" # The linker used to build libraries. -LD="/usr/bin/x86_64-linux-gnu-ld -m elf_x86_64" +LD="/usr/bin/ld -m elf_x86_64" # How to create reloadable object files. reload_flag=" -r" diff --git a/src/tracer/libperf/src/.deps/libperf.Plo b/src/tracer/libperf/src/.deps/libperf.Plo index 2975a22..030f461 100644 --- a/src/tracer/libperf/src/.deps/libperf.Plo +++ b/src/tracer/libperf/src/.deps/libperf.Plo @@ -9,7 +9,7 @@ libperf.lo: libperf.c /usr/include/stdc-predef.h /usr/include/assert.h \ /usr/include/x86_64-linux-gnu/bits/fcntl-linux.h /usr/include/time.h \ /usr/include/x86_64-linux-gnu/bits/stat.h \ /usr/include/x86_64-linux-gnu/bits/fcntl2.h /usr/include/inttypes.h \ - /usr/lib/gcc/x86_64-linux-gnu/6/include/stdint.h /usr/include/stdint.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdint.h /usr/include/stdint.h \ /usr/include/x86_64-linux-gnu/bits/wchar.h /usr/include/math.h \ /usr/include/x86_64-linux-gnu/bits/math-vector.h \ /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ @@ -21,9 +21,9 @@ libperf.lo: libperf.c /usr/include/stdc-predef.h /usr/include/assert.h \ /usr/include/x86_64-linux-gnu/bits/mathdef.h \ /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ /usr/include/x86_64-linux-gnu/bits/mathinline.h /usr/include/stdio.h \ - /usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h /usr/include/libio.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/libio.h \ /usr/include/_G_config.h /usr/include/wchar.h \ - /usr/lib/gcc/x86_64-linux-gnu/6/include/stdarg.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ /usr/include/x86_64-linux-gnu/bits/stdio.h \ @@ -109,7 +109,7 @@ libperf.lo: libperf.c /usr/include/stdc-predef.h /usr/include/assert.h \ /usr/include/inttypes.h: -/usr/lib/gcc/x86_64-linux-gnu/6/include/stdint.h: +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdint.h: /usr/include/stdint.h: @@ -139,7 +139,7 @@ libperf.lo: libperf.c /usr/include/stdc-predef.h /usr/include/assert.h \ /usr/include/stdio.h: -/usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h: +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: /usr/include/libio.h: @@ -147,7 +147,7 @@ libperf.lo: libperf.c /usr/include/stdc-predef.h /usr/include/assert.h \ /usr/include/wchar.h: -/usr/lib/gcc/x86_64-linux-gnu/6/include/stdarg.h: +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: /usr/include/x86_64-linux-gnu/bits/stdio_lim.h: diff --git a/src/tracer/libperf/src/Makefile b/src/tracer/libperf/src/Makefile index aa98892..f04cfd9 100644 --- a/src/tracer/libperf/src/Makefile +++ b/src/tracer/libperf/src/Makefile @@ -254,7 +254,7 @@ INSTALL_DATA = ${INSTALL} -m 644 INSTALL_PROGRAM = ${INSTALL} INSTALL_SCRIPT = ${INSTALL} INSTALL_STRIP_PROGRAM = $(install_sh) -c -s -LD = /usr/bin/x86_64-linux-gnu-ld -m elf_x86_64 +LD = /usr/bin/ld -m elf_x86_64 LDFLAGS = LIBOBJS = LIBPERF_API_VERSION = 1.0 diff --git a/src/tracer/tests/repeatability-test/Makefile b/src/tracer/tests/repeatability-test/Makefile index 279f040..450e406 100644 --- a/src/tracer/tests/repeatability-test/Makefile +++ b/src/tracer/tests/repeatability-test/Makefile @@ -15,7 +15,6 @@ build: -I${tracer_dir}/utils ${test_dir}/insn_tester.c ${tracer_dir}/utils/linkedlist.c \ ${tracer_dir}/utils/hashmap.c -o ${test_dir}/insn_tester -lperf @gcc ${test_dir}/test.c -fno-asynchronous-unwind-tables -fno-dwarf2-cfi-asm -o ${test_dir}/test - @gcc ${test_dir}/test.c -S -fno-asynchronous-unwind-tables -fno-dwarf2-cfi-asm -o ${test_dir}/test.s @echo ${test_dir}/test > cmds.txt @chmod 777 ${test_dir}/test @chmod 777 ${test_dir}/insn_tester diff --git a/src/tracer/tests/repeatability-test/test.s b/src/tracer/tests/repeatability-test/test.s deleted file mode 100644 index 64e8731..0000000 --- a/src/tracer/tests/repeatability-test/test.s +++ /dev/null @@ -1,42 +0,0 @@ - .file "test.c" - .text - .globl fibonacci - .type fibonacci, @function -fibonacci: - pushq %rbp - movq %rsp, %rbp - movq %rdi, -8(%rbp) - movq %rsi, -16(%rbp) - movq -16(%rbp), %rdx - movq -8(%rbp), %rax - addq %rdx, %rax - popq %rbp - ret - .size fibonacci, .-fibonacci - .globl main - .type main, @function -main: - pushq %rbp - movq %rsp, %rbp - subq $32, %rsp - movl $1, -32(%rbp) - movq $0, -24(%rbp) - movq $1, -16(%rbp) - movl $1000, -28(%rbp) - movq $1, -8(%rbp) -.L4: - movq -24(%rbp), %rdx - movq -16(%rbp), %rax - movq %rdx, %rsi - movq %rax, %rdi - call fibonacci - movq %rax, -8(%rbp) - movq -16(%rbp), %rax - movq %rax, -24(%rbp) - movq -8(%rbp), %rax - movq %rax, -16(%rbp) - addl $1, -32(%rbp) - jmp .L4 - .size main, .-main - .ident "GCC: (Ubuntu 6.5.0-2ubuntu1~16.04) 6.5.0 20181026" - .section .note.GNU-stack,"",@progbits diff --git a/tests/Makefile b/tests/Makefile index 1332741..13f309b 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -10,7 +10,6 @@ clean: @cd usleep_test && make clean @cd socket_test && make clean @cd timerfd_test && make clean - @cd alarm_test && make clean @cd producer_consumer_test && make clean @rm -f /usr/bin/run_test @@ -20,13 +19,9 @@ build: @cd integration_test && make build @cd usleep_test && make build @cd socket_test && make build - @cd alarm_test && make build @cd timerfd_test && make build @cd producer_consumer_test && make build -run_alarm_test: - @cd alarm_test && echo "Running Alarm Test: " && chmod 777 run_test.sh && sudo ./run_test.sh - run_timerfd_test: @cd timerfd_test && echo "Running Timerfd Test: " && chmod 777 run_test.sh && sudo ./run_test.sh @@ -44,5 +39,5 @@ run: @cd usleep_test && echo "Running usleep Test: " && chmod 777 run_test.sh && sudo ./run_test.sh @cd socket_test && echo "Running Socket Test: " && chmod 777 run_test.sh && sudo ./run_test.sh @cd producer_consumer_test && echo "Running Producer Consumer Test: " && chmod 777 run_test.sh && sudo ./run_test.sh - + @sudo chmod -R 775 /tmp/*_test diff --git a/tests/alarm_test/Makefile b/tests/alarm_test/Makefile deleted file mode 100644 index 92dbcf4..0000000 --- a/tests/alarm_test/Makefile +++ /dev/null @@ -1,9 +0,0 @@ - - -clean: - @rm -f cmd - @rm -f *.txt - -build: - @gcc -w alarm.c -o cmd - @chmod 777 cmd diff --git a/tests/alarm_test/alarm.c b/tests/alarm_test/alarm.c deleted file mode 100644 index 2717fc5..0000000 --- a/tests/alarm_test/alarm.c +++ /dev/null @@ -1,40 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include - -volatile sig_atomic_t print_flag = false; - -void handle_alarm( int sig ) { - print_flag = true; -} - -int main() { - - char fmt[64], buf[64]; - struct timeval tv; - struct tm *t1; - signal( SIGALRM, handle_alarm ); // Install handler first, - alarm( 1 ); // before scheduling it to be called. - - for (;;) { - if ( print_flag ) { - printf( "Hello\n" ); - gettimeofday(&tv, NULL); - if(( t1 = (struct tm *)localtime(&tv.tv_sec))!= NULL) - { - - strftime(fmt, sizeof fmt, "%Y-%m-%d %H:%M:%S.%%06u ", t1); - snprintf(buf, sizeof buf, fmt, tv.tv_usec); - printf("%s\n", buf); - fflush(stdout); - } - print_flag = false; - alarm( 1 ); - } - } -} \ No newline at end of file diff --git a/tests/alarm_test/run_test.sh b/tests/alarm_test/run_test.sh deleted file mode 100755 index 82578b9..0000000 --- a/tests/alarm_test/run_test.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -sudo run_test 1 1 10000 1000000 > /tmp/alarm_test.log -if grep -nr "Succeeded" /tmp/alarm_test.log; then - echo "STATUS: COMPLETED. Check Logs at /tmp/alarm_test.log" -else - echo "STATUS: FAILED. Check Logs at /tmp/alarm_test.log" -fi diff --git a/tests/producer_consumer_test/run_test.sh b/tests/producer_consumer_test/run_test.sh index 955576f..513add9 100755 --- a/tests/producer_consumer_test/run_test.sh +++ b/tests/producer_consumer_test/run_test.sh @@ -1,8 +1,11 @@ #!/bin/bash -sudo run_test 1 1 1000 1000000 > /tmp/pc_test.log -if grep -nr "Succeeded" /tmp/pc_test.log; then - echo "STATUS: COMPLETED. Check Logs at /tmp/pc_test.log" +sudo rm -f /tmp/tracer* +mkdir -p /tmp/pc_test +sudo run_test 1 1 1000 1000000 > /tmp/pc_test/pc_test.log +sudo cp /tmp/tracer* /tmp/pc_test 2> /dev/null +if grep -nr "Succeeded" /tmp/pc_test/pc_test.log; then + echo "STATUS: COMPLETED. Check Logs inside /tmp/pc_test" else - echo "STATUS: FAILED. Check Logs at /tmp/pc_test.log" + echo "STATUS: FAILED. Check Logs inside /tmp/pc_test" fi diff --git a/tests/socket_test/run_test.sh b/tests/socket_test/run_test.sh index 411909f..0c2bbdf 100755 --- a/tests/socket_test/run_test.sh +++ b/tests/socket_test/run_test.sh @@ -1,8 +1,11 @@ #!/bin/bash -sudo ./socket_test > /tmp/socket_test.log -if grep -nr "Succeeded" /tmp/socket_test.log; then - echo "STATUS: COMPLETED. Check Logs at /tmp/socket_test.log" +sudo rm -f /tmp/tracer* +sudo mkdir -p /tmp/socket_test +sudo ./socket_test > /tmp/socket_test/socket_test.log +sudo cp /tmp/tracer* /tmp/socket_test 2> /dev/null +if grep -nr "Succeeded" /tmp/socket_test/socket_test.log; then + echo "STATUS: COMPLETED. Check Logs inside /tmp/socket_test" else - echo "STATUS: FAILED. Check Logs at /tmp/socket_test.log" -fi \ No newline at end of file + echo "STATUS: FAILED. Check Logs inside /tmp/socket_test" +fi diff --git a/tests/socket_test/socket_test.c b/tests/socket_test/socket_test.c index 838e64a..bfd4f0d 100644 --- a/tests/socket_test/socket_test.c +++ b/tests/socket_test/socket_test.c @@ -204,9 +204,9 @@ int main(int argc, char * argv[]) { usleep(1000000); - printf("Progress Experiment for 200 Rounds !\n"); + printf("Progress Experiment for 2000 Rounds !\n"); fflush(stdout); - for (i = 0; i < 200; i++) { + for (i = 0; i < 2000; i++) { printf("%d,", i); progress_n_rounds(1); } diff --git a/tests/timerfd_test/run_test.sh b/tests/timerfd_test/run_test.sh index 05f5c04..d8d5c5a 100755 --- a/tests/timerfd_test/run_test.sh +++ b/tests/timerfd_test/run_test.sh @@ -1,8 +1,11 @@ #!/bin/bash -sudo run_test 1 1 10000 1000000 > /tmp/tfd_test.log -if grep -nr "Succeeded" /tmp/tfd_test.log; then - echo "STATUS: COMPLETED. Check Logs at /tmp/tfd_test.log" +sudo rm -f /tmp/tracer* +sudo mkdir -p /tmp/tfd_test +sudo run_test 1 1 10000 1000000 > /tmp/tfd_test/tfd_test.log +sudo cp /tmp/tracer* /tmp/tfd_test 2> /dev/null +if grep -nr "Succeeded" /tmp/tfd_test/tfd_test.log; then + echo "STATUS: COMPLETED. Check Logs inside /tmp/tfd_test" else - echo "STATUS: FAILED. Check Logs at /tmp/tfd_test.log" + echo "STATUS: FAILED. Check Logs at /tmp/tfd_test" fi diff --git a/tests/usleep_test/run_test.sh b/tests/usleep_test/run_test.sh index eaf2a78..773d151 100755 --- a/tests/usleep_test/run_test.sh +++ b/tests/usleep_test/run_test.sh @@ -1,8 +1,11 @@ #!/bin/bash -sudo ./usleep_test 1 > /tmp/usleep_test.log -if grep -nr "Succeeded" /tmp/usleep_test.log; then - echo "STATUS: COMPLETED. Check Logs at /tmp/usleep_test.log" +sudo rm -f /tmp/tracer* +sudo mkdir -p /tmp/usleep_test +sudo ./usleep_test 1 > /tmp/usleep_test/usleep_test.log +sudo cp /tmp/tracer* /tmp/usleep_test 2> /dev/null +if grep -nr "Succeeded" /tmp/usleep_test/usleep_test.log; then + echo "STATUS: COMPLETED. Check Logs inside /tmp/usleep_test" else - echo "STATUS: FAILED. Check Logs at /tmp/usleep_test.log" -fi \ No newline at end of file + echo "STATUS: FAILED. Check Logs inside /tmp/usleep_test" +fi diff --git a/tests/usleep_test/usleep.c b/tests/usleep_test/usleep.c index 7a9ae7f..f06aacc 100644 --- a/tests/usleep_test/usleep.c +++ b/tests/usleep_test/usleep.c @@ -43,15 +43,11 @@ int main(int argc, char *argv[]) // printf("Sleeping for %d\n", sleep_usec); - if(usleep( sleep_usec ) == -1) - { - printf("Usleep Error\n"); - printf("Oh dear, something went wrong with usleep()! %s\n", strerror(errno)); - + if (usleep( sleep_usec ) == -1) { + printf("Oh dear, something went wrong with usleep !\n"); fflush(stdout); - exit(1); + exit(0); } - printf("Woke up after sleep\n"); fflush(stdout); diff --git a/tests/usleep_test/usleep_test.c b/tests/usleep_test/usleep_test.c index 1e992d1..2cec5ca 100644 --- a/tests/usleep_test/usleep_test.c +++ b/tests/usleep_test/usleep_test.c @@ -64,7 +64,7 @@ int main(int argc, char * argv[]) { pid_t ret_val; int n_exited_tracers = 0; int status; - int test_n_insns = 1000000; + int test_n_insns = 100000; if (argc < 2 || !strcmp(argv[1], "-h") || !strcmp(argv[1], "--help")) { fprintf(stderr, "\n"); @@ -213,9 +213,9 @@ int main(int argc, char * argv[]) { usleep(1000000); - printf("Progress Experiment for 100000 Rounds !\n"); + printf("Progress Experiment for 2000 Rounds !\n"); fflush(stdout); - progress_n_rounds(100000); + progress_n_rounds(2000); fflush(stdout); printf("Stopping Experiment ... \n"); fflush(stdout);