Blame SOURCES/bcc-0.19.0-Define-missing-BPF_-macros.patch

a142d7
From d25f87677b554d9cbdc609c020a2baa59e442443 Mon Sep 17 00:00:00 2001
a142d7
From: Jerome Marchand <jmarchan@redhat.com>
a142d7
Date: Wed, 2 Jun 2021 10:57:43 +0200
a142d7
Subject: [PATCH] Define missing BPF_* macros
a142d7
a142d7
We're currently missing BPF_MAP_TYPE_TASK_STORAGE.  This could be
a142d7
fixed by a future rebase. In the mean time, let's have a temporary
a142d7
fix.
a142d7
a142d7
diff --git a/introspection/bps.c b/introspection/bps.c
a142d7
index 0eae675e..1108e417 100644
a142d7
--- a/introspection/bps.c
a142d7
+++ b/introspection/bps.c
a142d7
@@ -49,6 +49,10 @@ static const char * const prog_type_strings[] = {
a142d7
   [BPF_PROG_TYPE_SK_LOOKUP] = "sk_lookup",
a142d7
 };
a142d7
 
a142d7
+#ifndef BPF_MAP_TYPE_TASK_STORAGE
a142d7
+#define BPF_MAP_TYPE_TASK_STORAGE  (BPF_MAP_TYPE_INODE_STORAGE + 1)
a142d7
+#endif
a142d7
+
a142d7
 static const char * const map_type_strings[] = {
a142d7
   [BPF_MAP_TYPE_UNSPEC] = "unspec",
a142d7
   [BPF_MAP_TYPE_HASH] = "hash",
a142d7
-- 
a142d7
2.31.1
a142d7