aboutsummaryrefslogtreecommitdiff
path: root/gprofng/libcollector
diff options
context:
space:
mode:
authorVladimir Mezentsev <vladimir.mezentsev@oracle.com>2024-02-01 13:21:38 -0800
committerVladimir Mezentsev <vladimir.mezentsev@oracle.com>2024-02-01 13:22:52 -0800
commitb3c670a6ba31dcd98ba92e5739b12467aba6645a (patch)
tree42268bc869cec3064832d21855f1cadf03e7fa02 /gprofng/libcollector
parent49ba125f96b2ad3ad26187c3b2b95dc352c5d942 (diff)
downloadgdb-b3c670a6ba31dcd98ba92e5739b12467aba6645a.zip
gdb-b3c670a6ba31dcd98ba92e5739b12467aba6645a.tar.gz
gdb-b3c670a6ba31dcd98ba92e5739b12467aba6645a.tar.bz2
gprofng: Remove unused macros
gprofng/ChangeLog 2024-02-01 Vladimir Mezentsev <vladimir.mezentsev@oracle.com> * common/gp-experiment.h: Remove SP_REMOTE_PROTOCOL_VERSION. * common/hwctable.c: Remove DBG_LT* macros. * libcollector/envmgmt.c: Likewise. * libcollector/hwprofile.c: Likewise. * libcollector/iolib.c: Likewise. * libcollector/jprofile.c: Likewise. * libcollector/memmgr.c: Likewise. * libcollector/profile.c: Likewise. * libcollector/tsd.c: Likewise. * libcollector/unwind.c: Likewise.
Diffstat (limited to 'gprofng/libcollector')
-rw-r--r--gprofng/libcollector/envmgmt.c7
-rw-r--r--gprofng/libcollector/hwprofile.c8
-rw-r--r--gprofng/libcollector/iolib.c6
-rw-r--r--gprofng/libcollector/jprofile.c6
-rw-r--r--gprofng/libcollector/memmgr.c7
-rw-r--r--gprofng/libcollector/profile.c8
-rw-r--r--gprofng/libcollector/tsd.c6
-rw-r--r--gprofng/libcollector/unwind.c6
8 files changed, 1 insertions, 53 deletions
diff --git a/gprofng/libcollector/envmgmt.c b/gprofng/libcollector/envmgmt.c
index ebe08f8..a399c0d 100644
--- a/gprofng/libcollector/envmgmt.c
+++ b/gprofng/libcollector/envmgmt.c
@@ -27,13 +27,6 @@
#define MAX_LD_PRELOADS 2
-/* TprintfT(<level>,...) definitions. Adjust per module as needed */
-#define DBG_LT0 0 // for high-level configuration, unexpected errors/warnings
-#define DBG_LT1 1 // for configuration details, warnings
-#define DBG_LT2 2
-#define DBG_LT3 3
-#define DBG_LT4 4
-
/* original environment settings to be saved for later restoration */
static char *sp_preloads[MAX_LD_PRELOADS];
static char *sp_libpaths[MAX_LD_PRELOADS];
diff --git a/gprofng/libcollector/hwprofile.c b/gprofng/libcollector/hwprofile.c
index 841a371..364c600 100644
--- a/gprofng/libcollector/hwprofile.c
+++ b/gprofng/libcollector/hwprofile.c
@@ -41,14 +41,6 @@
#include "ABS.h"
#include "tsd.h"
-/* TprintfT(<level>,...) definitions. Adjust per module as needed */
-#define DBG_LT0 0 // for high-level configuration, unexpected errors/warnings
-#define DBG_LT1 1 // for configuration details, warnings
-#define DBG_LT2 2
-#define DBG_LT3 3
-#define DBG_LT4 4
-#define DBG_LT5 5
-
#define SD_OFF 0 /* before start or after close she shut down process */
#define SD_PENDING 1 /* before running real_detach_experiment() */
#define SD_COMPLETE 2 /* after running real_detach_experiment() */
diff --git a/gprofng/libcollector/iolib.c b/gprofng/libcollector/iolib.c
index a671781..9f21058 100644
--- a/gprofng/libcollector/iolib.c
+++ b/gprofng/libcollector/iolib.c
@@ -36,12 +36,6 @@
#include "gp-experiment.h"
#include "memmgr.h"
-/* TprintfT(<level>,...) definitions. Adjust per module as needed */
-#define DBG_LT0 0 // for high-level configuration, unexpected errors/warnings
-#define DBG_LT1 1 // for configuration details, warnings
-#define DBG_LT2 2
-#define DBG_LT3 3
-
/* ------------- Data and prototypes for block management --------- */
#define IO_BLK 0 /* Concurrent requests */
#define IO_SEQ 1 /* All requests are sequential, f.e. JAVA_CLASSES */
diff --git a/gprofng/libcollector/jprofile.c b/gprofng/libcollector/jprofile.c
index 1bacacc..2cabb1a 100644
--- a/gprofng/libcollector/jprofile.c
+++ b/gprofng/libcollector/jprofile.c
@@ -37,12 +37,6 @@
#include "gp-experiment.h"
#include "tsd.h"
-/* TprintfT(<level>,...) definitions. Adjust per module as needed */
-#define DBG_LT0 0 // for high-level configuration, unexpected errors/warnings
-#define DBG_LT1 1 // for configuration details, warnings
-#define DBG_LT2 2
-#define DBG_LT3 3
-
/* ARCH_STRLEN is defined in dbe, copied here */
#define ARCH_STRLEN(s) ((CALL_UTIL(strlen)(s) + 4 ) & ~0x3)
diff --git a/gprofng/libcollector/memmgr.c b/gprofng/libcollector/memmgr.c
index 6a8b086..c4109b6 100644
--- a/gprofng/libcollector/memmgr.c
+++ b/gprofng/libcollector/memmgr.c
@@ -30,13 +30,6 @@
#include "gp-experiment.h"
#include "memmgr.h"
-/* TprintfT(<level>,...) definitions. Adjust per module as needed */
-#define DBG_LT0 0 // for high-level configuration, unexpected errors/warnings
-#define DBG_LT1 1 // for configuration details, warnings
-#define DBG_LT2 2
-#define DBG_LT3 3
-#define DBG_LT4 4
-
/*
* Memory allocation.
*
diff --git a/gprofng/libcollector/profile.c b/gprofng/libcollector/profile.c
index dbaa36d..127fd69 100644
--- a/gprofng/libcollector/profile.c
+++ b/gprofng/libcollector/profile.c
@@ -41,12 +41,6 @@
#include "hwprofile.h"
#include "tsd.h"
-/* TprintfT(<level>,...) definitions. Adjust per module as needed */
-#define DBG_LT0 0 // for high-level configuration, unexpected errors/warnings
-#define DBG_LT1 1 // for configuration details, warnings
-#define DBG_LT2 2
-#define DBG_LT3 3
-
static int init_interface (CollectorInterface*);
static int open_experiment (const char *);
static int start_data_collection (void);
@@ -268,7 +262,7 @@ __collector_ext_profile_handler (siginfo_t *info, ucontext_t *context)
return;
}
PUSH_REENTRANCE (guard);
- TprintfT (DBG_LT3, "__collector_ext_profile_handler\n");
+ TprintfT (0, "__collector_ext_profile_handler\n");
ucontext_t uctxmem;
if (context == NULL)
{
diff --git a/gprofng/libcollector/tsd.c b/gprofng/libcollector/tsd.c
index 80d6a1c..a92e35a 100644
--- a/gprofng/libcollector/tsd.c
+++ b/gprofng/libcollector/tsd.c
@@ -26,12 +26,6 @@
#include "tsd.h"
#include "memmgr.h"
-/* TprintfT(<level>,...) definitions. Adjust per module as needed */
-#define DBG_LT0 0 // for high-level configuration, unexpected errors/warnings
-#define DBG_LT1 1 // for configuration details, warnings
-#define DBG_LT2 2
-#define DBG_LT3 3
-
/*
* Build our thread-specific-data support on pthread interfaces.
*/
diff --git a/gprofng/libcollector/unwind.c b/gprofng/libcollector/unwind.c
index 91678b1..e62da04 100644
--- a/gprofng/libcollector/unwind.c
+++ b/gprofng/libcollector/unwind.c
@@ -60,12 +60,6 @@ struct frame
};
#endif
-/* Set the debug trace level */
-#define DBG_LT0 0
-#define DBG_LT1 1
-#define DBG_LT2 2
-#define DBG_LT3 3
-
int (*__collector_VM_ReadByteInstruction)(unsigned char *) = NULL;
#define VM_NO_ACCESS (-1)
#define VM_NOT_VM_MEMORY (-2)