/external/bcc/src/cc/ |
D | file_desc.h | 25 class FileDesc { 27 explicit FileDesc(int fd = -1) : fd_(fd) {} in fd_() 28 FileDesc(FileDesc &&that) : fd_(-1) { *this = std::move(that); } in FileDesc() function 29 FileDesc(const FileDesc &that) = delete; 31 ~FileDesc() { in ~FileDesc() 36 FileDesc &operator=(int fd) { 42 FileDesc &operator=(FileDesc &&that) { 49 FileDesc &operator=(const FileDesc &that) = delete; 51 FileDesc dup() const { in dup() 53 return FileDesc(dup_fd); in dup()
|
D | ns_guard.h | 39 ebpf::FileDesc self_fd_; 40 ebpf::FileDesc target_fd_;
|
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()
|
D | table_desc.h | 71 TableDesc(const std::string &name, FileDesc &&fd, int type, size_t key_size, in TableDesc() 90 FileDesc fd;
|
D | bpf_module.cc | 344 FileDesc fd(open(buf, O_CREAT | O_WRONLY | O_TRUNC, 0644)); in annotate_prog_tag()
|
/external/bcc/src/cc/includes/ |
D | file_desc.h | 25 class FileDesc { 27 explicit FileDesc(int fd = -1) : fd_(fd) {} in fd_() 28 FileDesc(FileDesc &&that) : fd_(-1) { *this = std::move(that); } in FileDesc() function 29 FileDesc(const FileDesc &that) = delete; 31 ~FileDesc() { in ~FileDesc() 36 FileDesc &operator=(int fd) { 42 FileDesc &operator=(FileDesc &&that) { 49 FileDesc &operator=(const FileDesc &that) = delete; 51 FileDesc dup() const { in dup() 53 return FileDesc(dup_fd); in dup()
|
D | ns_guard.h | 39 ebpf::FileDesc self_fd_; 40 ebpf::FileDesc target_fd_;
|
D | table_desc.h | 71 TableDesc(const std::string &name, FileDesc &&fd, int type, size_t key_size, in TableDesc() 90 FileDesc fd;
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
D | SimpleStreamChecker.cpp | 126 SymbolRef FileDesc = Call.getReturnValue().getAsSymbol(); in checkPostCall() local 127 if (!FileDesc) in checkPostCall() 132 State = State->set<StreamMap>(FileDesc, StreamState::getOpened()); in checkPostCall() 145 SymbolRef FileDesc = Call.getArgSVal(0).getAsSymbol(); in checkPreCall() local 146 if (!FileDesc) in checkPreCall() 151 const StreamState *SS = State->get<StreamMap>(FileDesc); in checkPreCall() 153 reportDoubleClose(FileDesc, Call, C); in checkPreCall() 158 State = State->set<StreamMap>(FileDesc, StreamState::getClosed()); in checkPreCall()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | SimpleStreamChecker.cpp | 127 SymbolRef FileDesc = Call.getReturnValue().getAsSymbol(); in checkPostCall() local 128 if (!FileDesc) in checkPostCall() 133 State = State->set<StreamMap>(FileDesc, StreamState::getOpened()); in checkPostCall() 146 SymbolRef FileDesc = Call.getArgSVal(0).getAsSymbol(); in checkPreCall() local 147 if (!FileDesc) in checkPreCall() 152 const StreamState *SS = State->get<StreamMap>(FileDesc); in checkPreCall() 154 reportDoubleClose(FileDesc, Call, C); in checkPreCall() 159 State = State->set<StreamMap>(FileDesc, StreamState::getClosed()); in checkPreCall()
|
/external/llvm-project/compiler-rt/lib/scudo/standalone/ |
D | linux.cpp | 167 const int FileDesc = open("/dev/urandom", O_RDONLY); in getRandom() local 168 if (FileDesc == -1) in getRandom() 170 ReadBytes = read(FileDesc, Buffer, Length); in getRandom() 171 close(FileDesc); in getRandom()
|
/external/scudo/standalone/ |
D | linux.cpp | 206 const int FileDesc = open("/dev/urandom", O_RDONLY); in getRandom() local 207 if (FileDesc == -1) in getRandom() 209 ReadBytes = read(FileDesc, Buffer, Length); in getRandom() 210 close(FileDesc); in getRandom()
|
/external/rust/crates/grpcio-sys/grpc/third_party/upb/benchmarks/ |
D | benchmark.cc | 195 using FileDesc = ::upb_benchmark::FileDescriptorProto; typedef 218 BENCHMARK_TEMPLATE(BM_Parse_Proto2, FileDesc, NoArena, Copy); 219 BENCHMARK_TEMPLATE(BM_Parse_Proto2, FileDesc, UseArena, Copy); 220 BENCHMARK_TEMPLATE(BM_Parse_Proto2, FileDesc, InitBlock, Copy);
|
/external/bcc/examples/cpp/ |
D | UseExternalMap.cc | 91 ebpf::TableDesc table_desc("control", ebpf::FileDesc(ctrl_map_fd), in main()
|
/external/bcc/src/python/bcc/ |
D | table.py | 492 class FileDesc: class 521 with FileDesc(os.open(leaf, os.O_RDONLY)) as f:
|
/external/bcc/src/cc/api/ |
D | BPFTable.cc | 551 FileDesc f(::open(cgroup2_path.c_str(), O_RDONLY | O_CLOEXEC)); in update_value()
|
/external/bcc/src/cc/frontends/b/ |
D | codegen_llvm.cc | 1255 table.first->id_->name_, FileDesc(table_fds_[table.first]), map_type, in visit()
|