From fba41a916d8b2708b911f48381da6a4a4cbde1e3 Mon Sep 17 00:00:00 2001 From: Kevin Huck Date: Wed, 16 Oct 2024 06:39:48 -0700 Subject: [PATCH 1/2] Removing verbose output in preload --- src/apex/apex_preload.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/apex/apex_preload.cpp b/src/apex/apex_preload.cpp index 401226ad..fa3ea381 100644 --- a/src/apex/apex_preload.cpp +++ b/src/apex/apex_preload.cpp @@ -56,9 +56,11 @@ int apex_preload_main(int argc, char** argv, char** envp) { size_t needle_len{strlen(needle)}; if (len > needle_len && (strncmp(argv[0] + (len - needle_len), needle, needle_len)) == 0) { - fputs("apex: skipping ", stderr); - fputs(argv[0], stderr); - fputs("!\n", stderr); + if (apex::apex_options::use_verbose()) { + fputs("apex: skipping ", stderr); + fputs(argv[0], stderr); + fputs("\n", stderr); + } return true; } return false; @@ -93,9 +95,11 @@ int apex_preload_main(int argc, char** argv, char** envp) { if (apex::apex_options::use_otf2() && apex::apex_options::use_mpi()) { ret = main_real(argc, argv, envp); } else { - fputs("apex: executing ", stderr); - fputs(argv[0], stderr); - fputs("\n", stderr); + if (apex::apex_options::use_verbose()) { + fputs("apex: executing ", stderr); + fputs(argv[0], stderr); + fputs("\n", stderr); + } apex::init("APEX Preload", 0, 1); const std::string timerName{__APEX_FUNCTION__}; auto t = apex::new_task(timerName); From fbd4d84092a886731b64968d08b11e134e5426eb Mon Sep 17 00:00:00 2001 From: Kevin Huck Date: Wed, 16 Oct 2024 09:04:17 -0700 Subject: [PATCH 2/2] Removing debug messages from OTF2 listener --- src/apex/otf2_listener.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apex/otf2_listener.cpp b/src/apex/otf2_listener.cpp index fa403a7e..c13e240c 100644 --- a/src/apex/otf2_listener.cpp +++ b/src/apex/otf2_listener.cpp @@ -489,7 +489,7 @@ namespace apex { } bool otf2_listener::create_archive(void) { - printf("Enter %s\n", __func__); + //printf("Enter %s\n", __func__); /* only one thread per process allowed in here, ever! */ write_lock_type lock(_archive_mutex); /* only open once! */ @@ -535,7 +535,7 @@ namespace apex { /* open the event files for this archive */ OTF2_EC(OTF2_Archive_OpenEvtFiles( archive )); created = true; - printf("Exit %s\n", __func__); + //printf("Exit %s\n", __func__); return created; }