diff mbox series

[v1] xenalyze: remove unused defines

Message ID 20230601081331.436-1-olaf@aepfle.de (mailing list archive)
State New, archived
Headers show
Series [v1] xenalyze: remove unused defines | expand

Commit Message

Olaf Hering June 1, 2023, 8:13 a.m. UTC
These defines are not used by xenalyze.
NR_CPUS will not match what was used for building Xen itself.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
---
 tools/xentrace/analyze.h | 13 -------------
 1 file changed, 13 deletions(-)

Comments

George Dunlap July 28, 2023, 8:50 p.m. UTC | #1
On Thu, Jun 1, 2023 at 9:13 AM Olaf Hering <olaf@aepfle.de> wrote:

> These defines are not used by xenalyze.
> NR_CPUS will not match what was used for building Xen itself.
>
> Signed-off-by: Olaf Hering <olaf@aepfle.de>
>

Reviewed-by: George Dunlap <george.dunlap@cloud.com>
diff mbox series

Patch

diff --git a/tools/xentrace/analyze.h b/tools/xentrace/analyze.h
index 6fefa19639..89217026a7 100644
--- a/tools/xentrace/analyze.h
+++ b/tools/xentrace/analyze.h
@@ -16,19 +16,6 @@ 
 
 #define TRC_LOST_RECORDS_END    (TRC_GEN + 50)
 
-#define NR_CPUS 128
-#if __x86_64__
-# define BITS_PER_LONG 64
-#else
-# define BITS_PER_LONG 32
-#endif
-
-#define BITS_TO_LONGS(bits) \
-    (((bits)+BITS_PER_LONG-1)/BITS_PER_LONG)
-#define DECLARE_BITMAP(name,bits) \
-    unsigned long name[BITS_TO_LONGS(bits)]
-typedef struct cpumask{ DECLARE_BITMAP(bits, NR_CPUS); } cpumask_t;
-
 enum {
     TRCE_SFLAG_SET_AD,
     TRCE_SFLAG_SET_A,