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

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