]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gprofng: Remove unused macros
authorVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Thu, 1 Feb 2024 21:21:38 +0000 (13:21 -0800)
committerVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Thu, 1 Feb 2024 21:22:52 +0000 (13:22 -0800)
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.

gprofng/common/gp-experiment.h
gprofng/common/hwctable.c
gprofng/libcollector/envmgmt.c
gprofng/libcollector/hwprofile.c
gprofng/libcollector/iolib.c
gprofng/libcollector/jprofile.c
gprofng/libcollector/memmgr.c
gprofng/libcollector/profile.c
gprofng/libcollector/tsd.c
gprofng/libcollector/unwind.c

index 210ec60c98eb1f112ba9340acd9dd3605b28156a..41aaebe5162605696d1fed09e08fc5938e608f01 100644 (file)
@@ -30,8 +30,6 @@
 
 #include "Emsgnum.h" /* for COL_ERROR_*, etc. symbols */
 
-#define SP_REMOTE_PROTOCOL_VERSION "12.4.1"
-
 #define SP_GROUP_HEADER         "#analyzer experiment group"
 
 /* Experiment name macro definitions */
index d0735132facf608edeafa1b00e58fe52b2feb887..567f49f80d533fd1333fff4667fbdf728532cdd1 100644 (file)
 
 #include "hwcdrv.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
-
 /*---------------------------------------------------------------------------*/
 /* compile options */
 
index ebe08f820072488db9ebd1359697064836029c68..a399c0d0cb49f21491be10c817c67b20c1821049 100644 (file)
 
 #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];
index 841a3717e371876ca0a07a7ca56d01a2a471dd02..364c600968ac6b8d5d8e6465638ad095faf0eb0d 100644 (file)
 #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() */
index a671781fcdacb0502f38619a2183b9a58e7aae39..9f210589dfa79916ddb696519c4fc2ffffe547af 100644 (file)
 #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 */
index 1bacacc1a2a95e373513f2ff227a1a4fbfd6b287..2cabb1a08de542900e689904b2c33cce14d9fcba 100644 (file)
 #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)
 
index 6a8b0861bd3353e75532902bd621192e88628357..c4109b656e313a9faabd859612c44cafb7365e86 100644 (file)
 #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.
  *
index dbaa36d251c99cfd07a3eec3a5d55b1da7324678..127fd6917bb99ac3a07766ca2a2cdb47299d86ce 100644 (file)
 #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)
     {
index 80d6a1cc8a42b0d6d7e42fc5fcf2ed664e1b431d..a92e35a98fcd939222c4b72787493ad600b9540d 100644 (file)
 #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.
  */
index 91678b1e334218f90763a4775f2f50c09e252e4b..e62da04433c9eb8e5dff278a2762f503666d5f4d 100644 (file)
@@ -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)