/external/bcc/src/cc/ |
D | bpf_common.cc | 21 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 …]
|
D | ns_guard.h | 39 ebpf::FileDesc self_fd_; 40 ebpf::FileDesc target_fd_;
|
D | usdt.h | 29 namespace ebpf { 237 friend class ::ebpf::BPF; 238 friend class ::ebpf::USDT; 283 friend class ::ebpf::BPF; 284 friend class ::ebpf::USDT;
|
D | ns_guard.cc | 33 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/ |
D | test_shared_table.cc | 30 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");
|
D | test_bpf_table.cc | 29 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 …]
|
D | test_array_table.cc | 33 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();
|
D | test_hash_table.cc | 28 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();
|
D | test_prog_table.cc | 32 ebpf::StatusTuple res(0); 34 ebpf::BPF bpf; 38 ebpf::BPFProgTable t = bpf.get_prog_table("myprog"); 40 ebpf::BPF bpf2;
|
D | test_perf_event.cc | 56 ebpf::BPF bpf; 57 ebpf::StatusTuple res(0); 113 ebpf::BPF bpf; 114 ebpf::StatusTuple res(0);
|
D | test_usdt_probes.cc | 60 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/ |
D | UseExternalMap.cc | 65 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()
|
D | FollyRequestContextSwitch.cc | 90 ebpf::USDT u(binary, pid, "folly", "request_context_switch_before", in main() 93 ebpf::BPF* bpf = new ebpf::BPF(); in main()
|
D | RandomRead.cc | 74 ebpf::BPF* bpf; 92 bpf = new ebpf::BPF(); in main()
|
/external/bcc/src/cc/frontends/b/ |
D | loader.cc | 26 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()
|
D | parser.yy | 19 %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/ |
D | LINKS.md | 1 …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/ |
D | ns_guard.h | 39 ebpf::FileDesc self_fd_; 40 ebpf::FileDesc target_fd_;
|
D | usdt.h | 29 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/ |
D | filelife.py | 119 if debug or args.ebpf: 121 if args.ebpf:
|
D | ttysnoop.py | 96 if debug or args.ebpf: 98 if args.ebpf:
|
D | killsnoop.py | 108 if debug or args.ebpf: 110 if args.ebpf:
|
D | softirqs.py | 114 if debug or args.ebpf: 116 if args.ebpf:
|
D | slabratetop.py | 101 if debug or args.ebpf: 103 if args.ebpf:
|
D | biolatency.py | 109 if debug or args.ebpf: 111 if args.ebpf:
|