Blame SOURCES/bcc-0.20.0-Revert-libbpf-tools-remove-unecessary-custom-NULL-de.patch

0fb47c
From aaa39601b756074e9ba8b9a607102a1ae0cb4c94 Mon Sep 17 00:00:00 2001
0fb47c
From: Jerome Marchand <jmarchan@redhat.com>
0fb47c
Date: Mon, 26 Jul 2021 14:45:37 +0200
0fb47c
Subject: [PATCH] Revert "libbpf-tools: remove unecessary custom NULL
0fb47c
 definitions"
0fb47c
0fb47c
Libbpf on RHEL does not define NULL
0fb47c
This reverts commit a9f461d74a84be2f96fd35c02cf98c7251bd4166.
0fb47c
---
0fb47c
 libbpf-tools/biostacks.bpf.c | 1 +
0fb47c
 libbpf-tools/xfsslower.bpf.c | 2 ++
0fb47c
 2 files changed, 3 insertions(+)
0fb47c
0fb47c
diff --git a/libbpf-tools/biostacks.bpf.c b/libbpf-tools/biostacks.bpf.c
0fb47c
index f02a1ac5..6ed0bda6 100644
0fb47c
--- a/libbpf-tools/biostacks.bpf.c
0fb47c
+++ b/libbpf-tools/biostacks.bpf.c
0fb47c
@@ -9,6 +9,7 @@
0fb47c
 #include "maps.bpf.h"
0fb47c
 
0fb47c
 #define MAX_ENTRIES	10240
0fb47c
+#define NULL		0
0fb47c
 
0fb47c
 const volatile bool targ_ms = false;
0fb47c
 const volatile dev_t targ_dev = -1;
0fb47c
diff --git a/libbpf-tools/xfsslower.bpf.c b/libbpf-tools/xfsslower.bpf.c
0fb47c
index 05962f46..2b1c6e4b 100644
0fb47c
--- a/libbpf-tools/xfsslower.bpf.c
0fb47c
+++ b/libbpf-tools/xfsslower.bpf.c
0fb47c
@@ -6,6 +6,8 @@
0fb47c
 #include <bpf/bpf_tracing.h>
0fb47c
 #include "xfsslower.h"
0fb47c
 
0fb47c
+#define NULL	0
0fb47c
+
0fb47c
 const volatile pid_t targ_tgid = 0;
0fb47c
 const volatile __u64 min_lat = 0;
0fb47c
 
0fb47c
-- 
0fb47c
2.31.1
0fb47c