Home
last modified time | relevance | path

Searched refs:PacketTrace (Results 1 – 8 of 8) sorted by relevance

/packages/modules/Connectivity/service-t/native/libs/libnetworkstats/
DNetworkTraceHandlerTest.cpp85 bool TraceAndSortPackets(const std::vector<PacketTrace>& input, in TraceAndSortPackets()
110 std::vector<PacketTrace> input = { in TEST_F()
111 PacketTrace{ in TEST_F()
135 std::vector<PacketTrace> input = { in TEST_F()
136 PacketTrace{ in TEST_F()
143 PacketTrace{ in TEST_F()
167 std::vector<PacketTrace> input = { in TEST_F()
168 PacketTrace{ in TEST_F()
175 PacketTrace{ in TEST_F()
208 std::vector<PacketTrace> input = { in TEST_F()
[all …]
DNetworkTracePollerTest.cpp68 const std::vector<PacketTrace>& data;
73 for (const PacketTrace& info : d.data) { in operator <<()
105 NetworkTracePoller handler([&](const std::vector<PacketTrace>& pkt) {}); in TEST_F()
118 NetworkTracePoller handler([&](const std::vector<PacketTrace>& pkt) {}); in TEST_F()
135 std::vector<PacketTrace> packets, unmatched; in TEST_F()
140 NetworkTracePoller handler([&](const std::vector<PacketTrace>& pkts) { in TEST_F()
141 for (const PacketTrace& pkt : pkts) { in TEST_F()
210 EXPECT_THAT(packets, Each(Field(&PacketTrace::ipProto, Eq(IPPROTO_TCP)))); in TEST_F()
DNetworkTracePoller.cpp73 auto rb = BpfRingbuf<PacketTrace>::Create(PACKET_TRACE_RINGBUF_PATH); in Start()
125 void NetworkTracePoller::TraceIfaces(const std::vector<PacketTrace>& packets) { in TraceIfaces()
129 for (const PacketTrace& pkt : packets) { in TraceIfaces()
158 std::vector<PacketTrace> packets; in ConsumeAllLocked()
160 [&](const PacketTrace& pkt) { packets.push_back(pkt); }); in ConsumeAllLocked()
DNetworkTraceHandler.cpp79 BundleKey::BundleKey(const PacketTrace& pkt) in BundleKey()
143 [](const std::vector<PacketTrace>& packets) { in __anonbecfadfa0102()
200 void NetworkTraceHandler::Write(const std::vector<PacketTrace>& packets, in Write()
204 for (const PacketTrace& pkt : packets) { in Write()
216 for (const PacketTrace& pkt : packets) { in Write()
/packages/modules/Connectivity/service-t/native/libs/libnetworkstats/include/netdbpf/
DNetworkTracePoller.h41 using EventSink = std::function<void(const std::vector<PacketTrace>&)>;
67 void TraceIfaces(const std::vector<PacketTrace>& packets) REQUIRES(mMutex);
84 std::unique_ptr<BpfRingbuf<PacketTrace>> mRingBuffer GUARDED_BY(mMutex);
DNetworkTraceHandler.h37 explicit BundleKey(const PacketTrace& pkt);
101 void Write(const std::vector<PacketTrace>& packets,
/packages/modules/Connectivity/bpf_progs/
Dnetd.h90 } PacketTrace; typedef
91 STRUCT_SIZE(PacketTrace, 8+4+4 + 4+4 + 2+2 + 1+1+1+1);
Dnetd.c113 DEFINE_BPF_RINGBUF_EXT(packet_trace_ringbuf, PacketTrace, PACKET_TRACE_BUF_SIZE,
260 PacketTrace* pkt = bpf_packet_trace_ringbuf_reserve(); in do_packet_tracing()