From 77f8e9e3733bbd5cb85984b2dbe34c4996148517 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20=C5=BBenczykowski?= Date: Wed, 16 Jul 2025 08:41:44 -0700 Subject: [PATCH] vendorBpfLoader: remove printing of map/prog ids MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Really just spurious logging code. If you're working on a device (as opposed to looking at bugreports) you can get this information with for example 'bpftool': $ adb shell bpftool map show pinned '/sys/fs/bpf/map_bpfRingbufProg_test_ringbuf' 77: ringbuf name test_ringbuf flags 0x0 key 0B value 0B max_entries 4096 memlock 16696B $ adb shell bpftool prog show pinned /sys/fs/bpf/vendor/prog_filterPowerSupplyEvents_skfilter_power_supply 82: socket_filter name skfilter_power_ tag b8b4693584760391 loaded_at 2025-07-16T08:44:56-0700 uid 0 xlated 848B jited 470B memlock 4096B Test: TreeHugger Flag: EXEMPT cleanup Signed-off-by: Maciej Żenczykowski Change-Id: Ie7baf7cf5df9c25ad2d159767584670361e8c6eb --- loader/Loader.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/loader/Loader.cpp b/loader/Loader.cpp index f683413..97fac23 100644 --- a/loader/Loader.cpp +++ b/loader/Loader.cpp @@ -533,13 +533,6 @@ static int createMaps(const char* elfPath, ifstream& elfFile, vector& } } - int mapId = bpfGetFdMapId(fd); - if (mapId == -1) { - ALOGE("bpfGetFdMapId failed, ret: %d [%d]", mapId, errno); - } else { - ALOGD("map %s id %d", mapPinLoc.c_str(), mapId); - } - mapFds.push_back(std::move(fd)); } @@ -697,13 +690,6 @@ static int loadCodeSections(const char* elfPath, vector& cs, const return -err; } } - - int progId = bpfGetFdProgId(fd); - if (progId == -1) { - ALOGE("bpfGetFdProgId failed, ret: %d [%d]", progId, errno); - } else { - ALOGD("prog %s id %d", progPinLoc.c_str(), progId); - } } return 0;