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

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