Home
last modified time | relevance | path

Searched refs:ebpf (Results 1 – 25 of 142) sorted by relevance

123456

/external/bcc/src/cc/
Dbpf_common.cc21 auto mod = new ebpf::BPFModule(flags); in bpf_module_create_b()
30 auto mod = new ebpf::BPFModule(flags); in bpf_module_create_c()
39 auto mod = new ebpf::BPFModule(flags); in bpf_module_create_c_from_string()
48 auto mod = static_cast<ebpf::BPFModule *>(program); in bpf_module_destroy()
54 auto mod = static_cast<ebpf::BPFModule *>(program); in bpf_num_functions()
60 auto mod = static_cast<ebpf::BPFModule *>(program); in bpf_function_name()
66 auto mod = static_cast<ebpf::BPFModule *>(program); in bpf_function_start()
72 auto mod = static_cast<ebpf::BPFModule *>(program); in bpf_function_start_id()
78 auto mod = static_cast<ebpf::BPFModule *>(program); in bpf_function_size()
84 auto mod = static_cast<ebpf::BPFModule *>(program); in bpf_function_size_id()
[all …]
Dns_guard.h39 ebpf::FileDesc self_fd_;
40 ebpf::FileDesc target_fd_;
Dusdt.h29 namespace ebpf {
237 friend class ::ebpf::BPF;
238 friend class ::ebpf::USDT;
283 friend class ::ebpf::BPF;
284 friend class ::ebpf::USDT;
Dns_guard.cc33 ebpf::FileDesc target_fd(open(target_path.c_str(), O_RDONLY)); in ProcMountNS()
34 ebpf::FileDesc self_fd(open("/proc/self/ns/mnt", O_RDONLY)); in ProcMountNS()
/external/bcc/tests/cc/
Dtest_shared_table.cc30 ebpf::BPF bpf_ns1_a(0, nullptr, false, "ns1");
31 ebpf::BPF bpf_ns1_b(0, nullptr, false, "ns1");
32 ebpf::BPF bpf_ns2_a(0, nullptr, false, "ns2");
33 ebpf::BPF bpf_ns2_b(0, nullptr, false, "ns2");
35 ebpf::StatusTuple res(0);
50 ebpf::BPFArrayTable<int> t_ns1_a = bpf_ns1_a.get_array_table<int>("mysharedtable");
51 ebpf::BPFArrayTable<int> t_ns1_b = bpf_ns1_b.get_array_table<int>("mysharedtable");
52 ebpf::BPFArrayTable<int> t_ns2_a = bpf_ns2_a.get_array_table<int>("mysharedtable");
53 ebpf::BPFArrayTable<int> t_ns2_b = bpf_ns2_b.get_array_table<int>("mysharedtable");
Dtest_bpf_table.cc29 ebpf::BPF *bpf(new ebpf::BPF);
30 ebpf::StatusTuple res(0);
35 ebpf::BPFTable t = bpf->get_table("myhash");
100 ebpf::BPF bpf;
101 ebpf::StatusTuple res(0);
105 ebpf::BPFTable t = bpf.get_table("myhash");
106 size_t ncpus = ebpf::BPFTable::get_possible_cpu_count();
130 ebpf::BPF bpf;
131 ebpf::StatusTuple res(0);
191 ebpf::BPF bpf;
[all …]
Dtest_array_table.cc33 ebpf::BPF bpf(0, nullptr, false);
34 ebpf::StatusTuple res(0);
38 ebpf::BPFArrayTable<int> t = bpf.get_array_table<int>("myarray");
105 ebpf::BPF bpf;
106 ebpf::StatusTuple res(0);
110 ebpf::BPFPercpuArrayTable<uint64_t> t = bpf.get_percpu_array_table<uint64_t>("myarray");
111 size_t ncpus = ebpf::BPFTable::get_possible_cpu_count();
Dtest_hash_table.cc28 ebpf::BPF bpf;
29 ebpf::StatusTuple res(0);
33 ebpf::BPFHashTable<int, int> t = bpf.get_hash_table<int, int>("myhash");
101 ebpf::BPF bpf;
102 ebpf::StatusTuple res(0);
106 ebpf::BPFPercpuHashTable<int, uint64_t> t =
108 size_t ncpus = ebpf::BPFTable::get_possible_cpu_count();
Dtest_prog_table.cc32 ebpf::StatusTuple res(0);
34 ebpf::BPF bpf;
38 ebpf::BPFProgTable t = bpf.get_prog_table("myprog");
40 ebpf::BPF bpf2;
Dtest_perf_event.cc56 ebpf::BPF bpf;
57 ebpf::StatusTuple res(0);
113 ebpf::BPF bpf;
114 ebpf::StatusTuple res(0);
Dtest_usdt_probes.cc60 ebpf::BPF bpf;
61 ebpf::USDT u("/proc/self/exe", "libbcc_test", "sample_probe_1", "on_event");
74 ebpf::BPF bpf;
75 ebpf::USDT u(::getpid(), "libbcc_test", "sample_probe_1", "on_event");
/external/bcc/examples/cpp/
DUseExternalMap.cc65 static void print_counts(ebpf::BPF *bpfp, std::string msg) { in print_counts()
88 std::unique_ptr<ebpf::TableStorage> local_ts = in main()
89 ebpf::createSharedTableStorage(); in main()
90 ebpf::Path global_path({"control"}); in main()
91 ebpf::TableDesc table_desc("control", ebpf::FileDesc(ctrl_map_fd), in main()
97 ebpf::BPF bpf(0, &*local_ts); in main()
DFollyRequestContextSwitch.cc90 ebpf::USDT u(binary, pid, "folly", "request_context_switch_before", in main()
93 ebpf::BPF* bpf = new ebpf::BPF(); in main()
DRandomRead.cc74 ebpf::BPF* bpf;
92 bpf = new ebpf::BPF(); in main()
/external/bcc/src/cc/frontends/b/
Dloader.cc26 namespace ebpf { namespace
39 proto_parser_ = make_unique<ebpf::cc::Parser>(proto_filename); in parse()
46 parser_ = make_unique<ebpf::cc::Parser>(filename); in parse()
56 ebpf::cc::TypeCheck type_check(parser_->scopes_.get(), proto_parser_->scopes_.get()); in parse()
63 …codegen_ = ebpf::make_unique<ebpf::cc::CodegenLLVM>(mod, parser_->scopes_.get(), proto_parser_->sc… in parse()
Dparser.yy19 %define namespace "ebpf::cc"
21 %parse-param { ebpf::cc::Lexer &lexer }
22 %parse-param { ebpf::cc::Parser &parser }
23 %lex-param { ebpf::cc::Lexer &lexer }
32 namespace ebpf { namespace cc {
39 static int yylex(ebpf::cc::BisonParser::semantic_type *yylval,
40 ebpf::cc::BisonParser::location_type *yylloc,
41 ebpf::cc::Lexer &lexer);
618 void ebpf::cc::BisonParser::error(const ebpf::cc::BisonParser::location_type &loc,
624 static int yylex(ebpf::cc::BisonParser::semantic_type *yylval,
[all …]
/external/bcc/
DLINKS.md1 …ux System Monitoring with eBPF](https://www.circonus.com/2018/05/linux-system-monitoring-with-ebpf)
6 …PF](https://blog.yadutaf.fr/2017/07/28/tracing-a-packet-journey-using-linux-tracepoints-perf-ebpf/)
15 …gobpf - Using eBPF from Go](https://kinvolk.io/blog/2016/11/introducing-gobpf---using-ebpf-from-go)
31 …s://www.splunk.com/blog/2016/05/04/tracing-your-tcp-ipv4-connections-with-ebpf-and-bcc-from-the-li…
33 …bes](https://blog.yadutaf.fr/2016/03/30/turn-any-syscall-into-event-introducing-ebpf-kernel-probes)
38 …emleak and argdist](http://blogs.microsoft.co.il/sasha/2016/02/14/two-new-ebpf-tools-memleak-and-a…
39 - 2016-02-08: [Linux eBPF/bcc uprobes](http://www.brendangregg.com/blog/2016-02-08/linux-ebpf-bcc-u…
40 …Linux chain graph prototype)](http://www.brendangregg.com/blog/2016-02-05/ebpf-chaingraph-prototyp…
42 - 2016-01-20: [Linux eBPF Off-CPU Flame Graph](http://www.brendangregg.com/blog/2016-01-20/ebpf-off…
43 - 2016-01-18: [Linux eBPF Stack Trace Hack](http://www.brendangregg.com/blog/2016-01-18/ebpf-stack-…
/external/bcc/src/cc/includes/
Dns_guard.h39 ebpf::FileDesc self_fd_;
40 ebpf::FileDesc target_fd_;
Dusdt.h29 namespace ebpf {
237 friend class ::ebpf::BPF;
238 friend class ::ebpf::USDT;
283 friend class ::ebpf::BPF;
284 friend class ::ebpf::USDT;
/external/bcc/tools/
Dfilelife.py119 if debug or args.ebpf:
121 if args.ebpf:
Dttysnoop.py96 if debug or args.ebpf:
98 if args.ebpf:
Dkillsnoop.py108 if debug or args.ebpf:
110 if args.ebpf:
Dsoftirqs.py114 if debug or args.ebpf:
116 if args.ebpf:
Dslabratetop.py101 if debug or args.ebpf:
103 if args.ebpf:
Dbiolatency.py109 if debug or args.ebpf:
111 if args.ebpf:

123456