Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2018 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Maciej Żenczykowski | 23c436f | 2021-01-21 14:24:15 -0800 | [diff] [blame] | 17 | #pragma once |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 18 | |
| 19 | #include <linux/bpf.h> |
| 20 | |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 21 | #include <android-base/result.h> |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 22 | #include <android-base/stringprintf.h> |
| 23 | #include <android-base/unique_fd.h> |
| 24 | #include <utils/Log.h> |
| 25 | #include "bpf/BpfUtils.h" |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 26 | |
| 27 | namespace android { |
| 28 | namespace bpf { |
| 29 | |
| 30 | // This is a class wrapper for eBPF maps. The eBPF map is a special in-kernel |
| 31 | // data structure that stores data in <Key, Value> pairs. It can be read/write |
| 32 | // from userspace by passing syscalls with the map file descriptor. This class |
| 33 | // is used to generalize the procedure of interacting with eBPF maps and hide |
| 34 | // the implementation detail from other process. Besides the basic syscalls |
| 35 | // wrapper, it also provides some useful helper functions as well as an iterator |
| 36 | // nested class to iterate the map more easily. |
| 37 | // |
| 38 | // NOTE: A kernel eBPF map may be accessed by both kernel and userspace |
| 39 | // processes at the same time. Or if the map is pinned as a virtual file, it can |
| 40 | // be obtained by multiple eBPF map class object and accessed concurrently. |
| 41 | // Though the map class object and the underlying kernel map are thread safe, it |
| 42 | // is not safe to iterate over a map while another thread or process is deleting |
| 43 | // from it. In this case the iteration can return duplicate entries. |
| 44 | template <class Key, class Value> |
| 45 | class BpfMap { |
| 46 | public: |
Maciej Żenczykowski | e6cbd40 | 2019-08-09 18:20:26 -0700 | [diff] [blame] | 47 | BpfMap<Key, Value>() {}; |
Maciej Żenczykowski | e6cbd40 | 2019-08-09 18:20:26 -0700 | [diff] [blame] | 48 | |
Maciej Żenczykowski | dfd941f | 2020-01-20 03:18:26 -0800 | [diff] [blame] | 49 | protected: |
| 50 | // flag must be within BPF_OBJ_FLAG_MASK, ie. 0, BPF_F_RDONLY, BPF_F_WRONLY |
| 51 | BpfMap<Key, Value>(const char* pathname, uint32_t flags) { |
| 52 | int map_fd = mapRetrieve(pathname, flags); |
| 53 | if (map_fd >= 0) mMapFd.reset(map_fd); |
| 54 | } |
| 55 | |
| 56 | public: |
| 57 | explicit BpfMap<Key, Value>(const char* pathname) : BpfMap<Key, Value>(pathname, 0) {} |
Maciej Żenczykowski | e6cbd40 | 2019-08-09 18:20:26 -0700 | [diff] [blame] | 58 | |
Hungming Chen | 6161ff2 | 2020-03-05 14:47:53 +0800 | [diff] [blame] | 59 | BpfMap<Key, Value>(bpf_map_type map_type, uint32_t max_entries, uint32_t map_flags = 0) { |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 60 | int map_fd = createMap(map_type, sizeof(Key), sizeof(Value), max_entries, map_flags); |
Maciej Żenczykowski | dfd941f | 2020-01-20 03:18:26 -0800 | [diff] [blame] | 61 | if (map_fd >= 0) mMapFd.reset(map_fd); |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 62 | } |
| 63 | |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 64 | base::Result<Key> getFirstKey() const { |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 65 | Key firstKey; |
| 66 | if (getFirstMapKey(mMapFd, &firstKey)) { |
Tom Cherry | a7146db | 2020-02-04 15:27:30 -0800 | [diff] [blame] | 67 | return ErrnoErrorf("Get firstKey map {} failed", mMapFd.get()); |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 68 | } |
| 69 | return firstKey; |
| 70 | } |
| 71 | |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 72 | base::Result<Key> getNextKey(const Key& key) const { |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 73 | Key nextKey; |
Maciej Żenczykowski | 79365da | 2020-01-17 19:07:37 -0800 | [diff] [blame] | 74 | if (getNextMapKey(mMapFd, &key, &nextKey)) { |
Tom Cherry | a7146db | 2020-02-04 15:27:30 -0800 | [diff] [blame] | 75 | return ErrnoErrorf("Get next key of map {} failed", mMapFd.get()); |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 76 | } |
| 77 | return nextKey; |
| 78 | } |
| 79 | |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 80 | base::Result<void> writeValue(const Key& key, const Value& value, uint64_t flags) { |
Maciej Żenczykowski | 79365da | 2020-01-17 19:07:37 -0800 | [diff] [blame] | 81 | if (writeToMapEntry(mMapFd, &key, &value, flags)) { |
Tom Cherry | a7146db | 2020-02-04 15:27:30 -0800 | [diff] [blame] | 82 | return ErrnoErrorf("Write to map {} failed", mMapFd.get()); |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 83 | } |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 84 | return {}; |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 85 | } |
| 86 | |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 87 | base::Result<Value> readValue(const Key key) const { |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 88 | Value value; |
Maciej Żenczykowski | 79365da | 2020-01-17 19:07:37 -0800 | [diff] [blame] | 89 | if (findMapEntry(mMapFd, &key, &value)) { |
Tom Cherry | a7146db | 2020-02-04 15:27:30 -0800 | [diff] [blame] | 90 | return ErrnoErrorf("Read value of map {} failed", mMapFd.get()); |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 91 | } |
| 92 | return value; |
| 93 | } |
| 94 | |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 95 | base::Result<void> deleteValue(const Key& key) { |
Maciej Żenczykowski | 79365da | 2020-01-17 19:07:37 -0800 | [diff] [blame] | 96 | if (deleteMapEntry(mMapFd, &key)) { |
Tom Cherry | a7146db | 2020-02-04 15:27:30 -0800 | [diff] [blame] | 97 | return ErrnoErrorf("Delete entry from map {} failed", mMapFd.get()); |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 98 | } |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 99 | return {}; |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 100 | } |
| 101 | |
Maciej Żenczykowski | 52108bf | 2019-04-01 10:41:13 -0700 | [diff] [blame] | 102 | // Function that tries to get map from a pinned path. |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 103 | base::Result<void> init(const char* path); |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 104 | |
| 105 | // Iterate through the map and handle each key retrieved based on the filter |
| 106 | // without modification of map content. |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 107 | base::Result<void> iterate( |
| 108 | const std::function<base::Result<void>(const Key& key, const BpfMap<Key, Value>& map)>& |
| 109 | filter) const; |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 110 | |
| 111 | // Iterate through the map and get each <key, value> pair, handle each <key, |
| 112 | // value> pair based on the filter without modification of map content. |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 113 | base::Result<void> iterateWithValue( |
| 114 | const std::function<base::Result<void>(const Key& key, const Value& value, |
| 115 | const BpfMap<Key, Value>& map)>& filter) const; |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 116 | |
| 117 | // Iterate through the map and handle each key retrieved based on the filter |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 118 | base::Result<void> iterate( |
| 119 | const std::function<base::Result<void>(const Key& key, BpfMap<Key, Value>& map)>& |
| 120 | filter); |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 121 | |
| 122 | // Iterate through the map and get each <key, value> pair, handle each <key, |
| 123 | // value> pair based on the filter. |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 124 | base::Result<void> iterateWithValue( |
| 125 | const std::function<base::Result<void>(const Key& key, const Value& value, |
| 126 | BpfMap<Key, Value>& map)>& filter); |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 127 | |
| 128 | const base::unique_fd& getMap() const { return mMapFd; }; |
| 129 | |
Hungming Chen | 4008da9 | 2020-02-27 17:26:40 +0800 | [diff] [blame] | 130 | // Copy assignment operator |
Maciej Żenczykowski | 54a7e76 | 2020-04-24 08:02:21 -0700 | [diff] [blame] | 131 | BpfMap<Key, Value>& operator=(const BpfMap<Key, Value>& other) { |
| 132 | if (this != &other) mMapFd.reset(fcntl(other.mMapFd.get(), F_DUPFD_CLOEXEC, 0)); |
| 133 | return *this; |
Hungming Chen | 4008da9 | 2020-02-27 17:26:40 +0800 | [diff] [blame] | 134 | } |
| 135 | |
Maciej Żenczykowski | 8ed7c0f | 2021-01-14 13:20:41 -0800 | [diff] [blame] | 136 | // Move assignment operator |
| 137 | BpfMap<Key, Value>& operator=(BpfMap<Key, Value>&& other) noexcept { |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 138 | mMapFd = std::move(other.mMapFd); |
Maciej Żenczykowski | 4f65739 | 2020-01-20 15:06:22 -0800 | [diff] [blame] | 139 | other.reset(-1); |
Maciej Żenczykowski | 8ed7c0f | 2021-01-14 13:20:41 -0800 | [diff] [blame] | 140 | return *this; |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 141 | } |
| 142 | |
Maciej Żenczykowski | 4f65739 | 2020-01-20 15:06:22 -0800 | [diff] [blame] | 143 | void reset(base::unique_fd fd) = delete; |
| 144 | |
| 145 | void reset(int fd) { mMapFd.reset(fd); } |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 146 | |
| 147 | bool isValid() const { return mMapFd != -1; } |
| 148 | |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 149 | base::Result<void> clear() { |
Maciej Żenczykowski | b7176fb | 2020-02-19 10:59:09 -0800 | [diff] [blame] | 150 | while (true) { |
| 151 | auto key = getFirstKey(); |
| 152 | if (!key.ok()) { |
| 153 | if (key.error().code() == ENOENT) return {}; // empty: success |
| 154 | return key.error(); // Anything else is an error |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 155 | } |
Maciej Żenczykowski | b7176fb | 2020-02-19 10:59:09 -0800 | [diff] [blame] | 156 | auto res = deleteValue(key.value()); |
| 157 | if (!res.ok()) { |
| 158 | // Someone else could have deleted the key, so ignore ENOENT |
| 159 | if (res.error().code() == ENOENT) continue; |
| 160 | ALOGE("Failed to delete data %s", strerror(res.error().code())); |
| 161 | return res.error(); |
| 162 | } |
| 163 | } |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 164 | } |
| 165 | |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 166 | base::Result<bool> isEmpty() const { |
Maciej Żenczykowski | b7176fb | 2020-02-19 10:59:09 -0800 | [diff] [blame] | 167 | auto key = getFirstKey(); |
Bernie Innocenti | 43d2538 | 2020-02-10 07:25:16 +0900 | [diff] [blame] | 168 | if (!key.ok()) { |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 169 | // Return error code ENOENT means the map is empty |
| 170 | if (key.error().code() == ENOENT) return true; |
| 171 | return key.error(); |
| 172 | } |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 173 | return false; |
| 174 | } |
| 175 | |
| 176 | private: |
| 177 | base::unique_fd mMapFd; |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 178 | }; |
| 179 | |
| 180 | template <class Key, class Value> |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 181 | base::Result<void> BpfMap<Key, Value>::init(const char* path) { |
Maciej Żenczykowski | aa295c8 | 2020-06-16 17:02:48 -0700 | [diff] [blame] | 182 | mMapFd = base::unique_fd(mapRetrieveRW(path)); |
Maciej Żenczykowski | 52108bf | 2019-04-01 10:41:13 -0700 | [diff] [blame] | 183 | if (mMapFd == -1) { |
Tom Cherry | a7146db | 2020-02-04 15:27:30 -0800 | [diff] [blame] | 184 | return ErrnoErrorf("Pinned map not accessible or does not exist: ({})", path); |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 185 | } |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 186 | return {}; |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 187 | } |
| 188 | |
| 189 | template <class Key, class Value> |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 190 | base::Result<void> BpfMap<Key, Value>::iterate( |
| 191 | const std::function<base::Result<void>(const Key& key, const BpfMap<Key, Value>& map)>& |
| 192 | filter) const { |
| 193 | base::Result<Key> curKey = getFirstKey(); |
Bernie Innocenti | 5953dee | 2020-02-06 04:22:41 +0900 | [diff] [blame] | 194 | while (curKey.ok()) { |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 195 | const base::Result<Key>& nextKey = getNextKey(curKey.value()); |
| 196 | base::Result<void> status = filter(curKey.value(), *this); |
Bernie Innocenti | 5953dee | 2020-02-06 04:22:41 +0900 | [diff] [blame] | 197 | if (!status.ok()) return status; |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 198 | curKey = nextKey; |
| 199 | } |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 200 | if (curKey.error().code() == ENOENT) return {}; |
| 201 | return curKey.error(); |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 202 | } |
| 203 | |
| 204 | template <class Key, class Value> |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 205 | base::Result<void> BpfMap<Key, Value>::iterateWithValue( |
| 206 | const std::function<base::Result<void>(const Key& key, const Value& value, |
| 207 | const BpfMap<Key, Value>& map)>& filter) const { |
| 208 | base::Result<Key> curKey = getFirstKey(); |
Bernie Innocenti | 5953dee | 2020-02-06 04:22:41 +0900 | [diff] [blame] | 209 | while (curKey.ok()) { |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 210 | const base::Result<Key>& nextKey = getNextKey(curKey.value()); |
Maciej Żenczykowski | b7176fb | 2020-02-19 10:59:09 -0800 | [diff] [blame] | 211 | base::Result<Value> curValue = readValue(curKey.value()); |
Bernie Innocenti | 5953dee | 2020-02-06 04:22:41 +0900 | [diff] [blame] | 212 | if (!curValue.ok()) return curValue.error(); |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 213 | base::Result<void> status = filter(curKey.value(), curValue.value(), *this); |
Bernie Innocenti | 5953dee | 2020-02-06 04:22:41 +0900 | [diff] [blame] | 214 | if (!status.ok()) return status; |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 215 | curKey = nextKey; |
| 216 | } |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 217 | if (curKey.error().code() == ENOENT) return {}; |
| 218 | return curKey.error(); |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 219 | } |
| 220 | |
| 221 | template <class Key, class Value> |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 222 | base::Result<void> BpfMap<Key, Value>::iterate( |
| 223 | const std::function<base::Result<void>(const Key& key, BpfMap<Key, Value>& map)>& filter) { |
| 224 | base::Result<Key> curKey = getFirstKey(); |
Bernie Innocenti | 5953dee | 2020-02-06 04:22:41 +0900 | [diff] [blame] | 225 | while (curKey.ok()) { |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 226 | const base::Result<Key>& nextKey = getNextKey(curKey.value()); |
| 227 | base::Result<void> status = filter(curKey.value(), *this); |
Bernie Innocenti | 5953dee | 2020-02-06 04:22:41 +0900 | [diff] [blame] | 228 | if (!status.ok()) return status; |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 229 | curKey = nextKey; |
| 230 | } |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 231 | if (curKey.error().code() == ENOENT) return {}; |
| 232 | return curKey.error(); |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 233 | } |
| 234 | |
| 235 | template <class Key, class Value> |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 236 | base::Result<void> BpfMap<Key, Value>::iterateWithValue( |
| 237 | const std::function<base::Result<void>(const Key& key, const Value& value, |
| 238 | BpfMap<Key, Value>& map)>& filter) { |
| 239 | base::Result<Key> curKey = getFirstKey(); |
Bernie Innocenti | 5953dee | 2020-02-06 04:22:41 +0900 | [diff] [blame] | 240 | while (curKey.ok()) { |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 241 | const base::Result<Key>& nextKey = getNextKey(curKey.value()); |
Maciej Żenczykowski | b7176fb | 2020-02-19 10:59:09 -0800 | [diff] [blame] | 242 | base::Result<Value> curValue = readValue(curKey.value()); |
Bernie Innocenti | 5953dee | 2020-02-06 04:22:41 +0900 | [diff] [blame] | 243 | if (!curValue.ok()) return curValue.error(); |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 244 | base::Result<void> status = filter(curKey.value(), curValue.value(), *this); |
Bernie Innocenti | 5953dee | 2020-02-06 04:22:41 +0900 | [diff] [blame] | 245 | if (!status.ok()) return status; |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 246 | curKey = nextKey; |
| 247 | } |
Steven Moreland | e7cd2a7 | 2020-01-10 17:49:35 -0800 | [diff] [blame] | 248 | if (curKey.error().code() == ENOENT) return {}; |
| 249 | return curKey.error(); |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 250 | } |
| 251 | |
Maciej Żenczykowski | dfd941f | 2020-01-20 03:18:26 -0800 | [diff] [blame] | 252 | template <class Key, class Value> |
| 253 | class BpfMapRO : public BpfMap<Key, Value> { |
| 254 | public: |
| 255 | explicit BpfMapRO<Key, Value>(const char* pathname) |
| 256 | : BpfMap<Key, Value>(pathname, BPF_F_RDONLY) {} |
| 257 | }; |
| 258 | |
Chenbo Feng | 75b410b | 2018-10-10 15:01:19 -0700 | [diff] [blame] | 259 | } // namespace bpf |
| 260 | } // namespace android |