Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a5a4504 authored by Maciej Żenczykowski's avatar Maciej Żenczykowski Committed by Gerrit Code Review
Browse files

Merge "Fix log message when failing to open bpf maps"

parents 5c72552e 17750cb4
Loading
Loading
Loading
Loading
+5 −5
Original line number Original line Diff line number Diff line
@@ -565,7 +565,7 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
                return new BpfMap<U32, U8>(UID_COUNTERSET_MAP_PATH, BpfMap.BPF_F_RDWR,
                return new BpfMap<U32, U8>(UID_COUNTERSET_MAP_PATH, BpfMap.BPF_F_RDWR,
                        U32.class, U8.class);
                        U32.class, U8.class);
            } catch (ErrnoException e) {
            } catch (ErrnoException e) {
                Log.wtf(TAG, "Cannot create uid counter set map: " + e);
                Log.wtf(TAG, "Cannot open uid counter set map: " + e);
                return null;
                return null;
            }
            }
        }
        }
@@ -576,7 +576,7 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
                return new BpfMap<CookieTagMapKey, CookieTagMapValue>(COOKIE_TAG_MAP_PATH,
                return new BpfMap<CookieTagMapKey, CookieTagMapValue>(COOKIE_TAG_MAP_PATH,
                        BpfMap.BPF_F_RDWR, CookieTagMapKey.class, CookieTagMapValue.class);
                        BpfMap.BPF_F_RDWR, CookieTagMapKey.class, CookieTagMapValue.class);
            } catch (ErrnoException e) {
            } catch (ErrnoException e) {
                Log.wtf(TAG, "Cannot create cookie tag map: " + e);
                Log.wtf(TAG, "Cannot open cookie tag map: " + e);
                return null;
                return null;
            }
            }
        }
        }
@@ -587,7 +587,7 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
                return new BpfMap<StatsMapKey, StatsMapValue>(STATS_MAP_A_PATH,
                return new BpfMap<StatsMapKey, StatsMapValue>(STATS_MAP_A_PATH,
                        BpfMap.BPF_F_RDWR, StatsMapKey.class, StatsMapValue.class);
                        BpfMap.BPF_F_RDWR, StatsMapKey.class, StatsMapValue.class);
            } catch (ErrnoException e) {
            } catch (ErrnoException e) {
                Log.wtf(TAG, "Cannot create stats map A: " + e);
                Log.wtf(TAG, "Cannot open stats map A: " + e);
                return null;
                return null;
            }
            }
        }
        }
@@ -598,7 +598,7 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
                return new BpfMap<StatsMapKey, StatsMapValue>(STATS_MAP_B_PATH,
                return new BpfMap<StatsMapKey, StatsMapValue>(STATS_MAP_B_PATH,
                        BpfMap.BPF_F_RDWR, StatsMapKey.class, StatsMapValue.class);
                        BpfMap.BPF_F_RDWR, StatsMapKey.class, StatsMapValue.class);
            } catch (ErrnoException e) {
            } catch (ErrnoException e) {
                Log.wtf(TAG, "Cannot create stats map B: " + e);
                Log.wtf(TAG, "Cannot open stats map B: " + e);
                return null;
                return null;
            }
            }
        }
        }
@@ -609,7 +609,7 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
                return new BpfMap<UidStatsMapKey, StatsMapValue>(APP_UID_STATS_MAP_PATH,
                return new BpfMap<UidStatsMapKey, StatsMapValue>(APP_UID_STATS_MAP_PATH,
                        BpfMap.BPF_F_RDWR, UidStatsMapKey.class, StatsMapValue.class);
                        BpfMap.BPF_F_RDWR, UidStatsMapKey.class, StatsMapValue.class);
            } catch (ErrnoException e) {
            } catch (ErrnoException e) {
                Log.wtf(TAG, "Cannot create app uid stats map: " + e);
                Log.wtf(TAG, "Cannot open app uid stats map: " + e);
                return null;
                return null;
            }
            }
        }
        }