Home
last modified time | relevance | path

Searched refs:FileDesc (Results 1 – 17 of 17) sorted by relevance

/external/bcc/src/cc/
Dfile_desc.h25 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()
Dns_guard.h39 ebpf::FileDesc self_fd_;
40 ebpf::FileDesc target_fd_;
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()
Dtable_desc.h71 TableDesc(const std::string &name, FileDesc &&fd, int type, size_t key_size, in TableDesc()
90 FileDesc fd;
Dbpf_module.cc344 FileDesc fd(open(buf, O_CREAT | O_WRONLY | O_TRUNC, 0644)); in annotate_prog_tag()
/external/bcc/src/cc/includes/
Dfile_desc.h25 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()
Dns_guard.h39 ebpf::FileDesc self_fd_;
40 ebpf::FileDesc target_fd_;
Dtable_desc.h71 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/
DSimpleStreamChecker.cpp126 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/
DSimpleStreamChecker.cpp127 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/
Dlinux.cpp167 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/
Dlinux.cpp206 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/
Dbenchmark.cc195 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/
DUseExternalMap.cc91 ebpf::TableDesc table_desc("control", ebpf::FileDesc(ctrl_map_fd), in main()
/external/bcc/src/python/bcc/
Dtable.py492 class FileDesc: class
521 with FileDesc(os.open(leaf, os.O_RDONLY)) as f:
/external/bcc/src/cc/api/
DBPFTable.cc551 FileDesc f(::open(cgroup2_path.c_str(), O_RDONLY | O_CLOEXEC)); in update_value()
/external/bcc/src/cc/frontends/b/
Dcodegen_llvm.cc1255 table.first->id_->name_, FileDesc(table_fds_[table.first]), map_type, in visit()