Home
last modified time | relevance | path

Searched refs:StatusTuple (Results 1 – 22 of 22) sorted by relevance

/external/bcc/src/cc/api/
DBPFTable.cc42 StatusTuple BPFTable::get_value(const std::string& key_str, in get_value()
47 StatusTuple r(0); in get_value()
54 return StatusTuple(-1, "error getting value"); in get_value()
59 StatusTuple BPFTable::get_value(const std::string& key_str, in get_value()
65 StatusTuple r(0); in get_value()
72 return StatusTuple(-1, "error getting value"); in get_value()
81 return StatusTuple(0); in get_value()
84 StatusTuple BPFTable::update_value(const std::string& key_str, in update_value()
89 StatusTuple r(0); in update_value()
100 return StatusTuple(-1, "error updating element"); in update_value()
[all …]
DBPFTable.h43 StatusTuple string_to_key(const std::string& key_str, KeyType* key) { in string_to_key()
47 StatusTuple string_to_leaf(const std::string& value_str, ValueType* value) { in string_to_leaf()
51 StatusTuple key_to_string(const KeyType* key, std::string& key_str) { in key_to_string()
53 StatusTuple rc = desc.key_snprintf(buf, sizeof(buf), key); in key_to_string()
59 StatusTuple leaf_to_string(const ValueType* value, std::string& value_str) { in leaf_to_string()
61 StatusTuple rc = desc.leaf_snprintf(buf, sizeof(buf), value); in leaf_to_string()
95 StatusTuple get_value(const std::string& key_str, std::string& value);
96 StatusTuple get_value(const std::string& key_str,
99 StatusTuple update_value(const std::string& key_str,
101 StatusTuple update_value(const std::string& key_str,
[all …]
DBPF.cc57 StatusTuple BPF::init(const std::string& bpf_program, in init()
78 return StatusTuple(-1, "Unable to initialize BPF program"); in init()
80 return StatusTuple(0); in init()
90 StatusTuple BPF::detach_all() { in detach_all()
159 return StatusTuple(-1, error_msg); in detach_all()
161 return StatusTuple(0); in detach_all()
164 StatusTuple BPF::attach_kprobe(const std::string& kernel_func, in attach_kprobe()
170 return StatusTuple(-1, "kprobe %s already attached", probe_event.c_str()); in attach_kprobe()
180 return StatusTuple(-1, "Unable to attach %skprobe for %s using %s", in attach_kprobe()
189 return StatusTuple(0); in attach_kprobe()
[all …]
DBPF.h53 StatusTuple init(const std::string& bpf_program,
58 StatusTuple detach_all();
60 StatusTuple attach_kprobe(const std::string& kernel_func,
64 StatusTuple detach_kprobe(
68 StatusTuple attach_uprobe(const std::string& binary_path,
74 StatusTuple detach_uprobe(const std::string& binary_path,
78 StatusTuple attach_usdt(const USDT& usdt, pid_t pid = -1);
79 StatusTuple detach_usdt(const USDT& usdt, pid_t pid = -1);
81 StatusTuple attach_tracepoint(const std::string& tracepoint,
83 StatusTuple detach_tracepoint(const std::string& tracepoint);
[all …]
/external/bcc/src/cc/frontends/b/
Dprinter.cc28 StatusTuple Printer::visit_block_stmt_node(BlockStmtNode* n) { in visit_block_stmt_node()
41 return StatusTuple(0); in visit_block_stmt_node()
44 StatusTuple Printer::visit_if_stmt_node(IfStmtNode* n) { in visit_if_stmt_node()
53 return StatusTuple(0); in visit_if_stmt_node()
56 StatusTuple Printer::visit_onvalid_stmt_node(OnValidStmtNode* n) { in visit_onvalid_stmt_node()
65 return StatusTuple(0); in visit_onvalid_stmt_node()
68 StatusTuple Printer::visit_switch_stmt_node(SwitchStmtNode* n) { in visit_switch_stmt_node()
73 return StatusTuple(0); in visit_switch_stmt_node()
76 StatusTuple Printer::visit_case_stmt_node(CaseStmtNode* n) { in visit_case_stmt_node()
84 return StatusTuple(0); in visit_case_stmt_node()
[all …]
Dtype_check.cc29 StatusTuple TypeCheck::visit_block_stmt_node(BlockStmtNode *n) { in visit_block_stmt_node()
40 return StatusTuple(0); in visit_block_stmt_node()
43 StatusTuple TypeCheck::visit_if_stmt_node(IfStmtNode *n) { in visit_if_stmt_node()
51 return StatusTuple(0); in visit_if_stmt_node()
54 StatusTuple TypeCheck::visit_onvalid_stmt_node(OnValidStmtNode *n) { in visit_onvalid_stmt_node()
63 return StatusTuple(0); in visit_onvalid_stmt_node()
66 StatusTuple TypeCheck::visit_switch_stmt_node(SwitchStmtNode *n) { in visit_switch_stmt_node()
74 return StatusTuple(0); in visit_switch_stmt_node()
77 StatusTuple TypeCheck::visit_case_stmt_node(CaseStmtNode *n) { in visit_case_stmt_node()
84 return StatusTuple(0); in visit_case_stmt_node()
[all …]
Dcodegen_llvm.cc115 StatusTuple CodegenLLVM::visit_block_stmt_node(BlockStmtNode *n) { in visit_block_stmt_node()
129 return StatusTuple(0); in visit_block_stmt_node()
132 StatusTuple CodegenLLVM::visit_if_stmt_node(IfStmtNode *n) { in visit_if_stmt_node()
162 return StatusTuple(0); in visit_if_stmt_node()
165 StatusTuple CodegenLLVM::visit_onvalid_stmt_node(OnValidStmtNode *n) { in visit_onvalid_stmt_node()
195 return StatusTuple(0); in visit_onvalid_stmt_node()
198 StatusTuple CodegenLLVM::visit_switch_stmt_node(SwitchStmtNode *n) { in visit_switch_stmt_node()
216 return StatusTuple(0); in visit_switch_stmt_node()
219 StatusTuple CodegenLLVM::visit_case_stmt_node(CaseStmtNode *n) { in visit_case_stmt_node()
239 return StatusTuple(0); in visit_case_stmt_node()
[all …]
Dnode.h43 #define STATUS_RETURN __attribute((warn_unused_result)) StatusTuple
103 virtual StatusTuple accept(Visitor* v);
110 virtual StatusTuple accept(Visitor* v) = 0;
117 StatusTuple mkstatus_(Node *n, const char *fmt, Args... args) { in mkstatus_()
118 StatusTuple status = StatusTuple(n->line_ ? n->line_ : -1, fmt, args...); in mkstatus_()
124 static inline StatusTuple mkstatus_(Node *n, const char *msg) { in mkstatus_()
125 StatusTuple status = StatusTuple(n->line_ ? n->line_ : -1, msg); in mkstatus_()
134 virtual StatusTuple accept(Visitor* v) = 0;
142 virtual StatusTuple accept(Visitor* v) = 0;
432 virtual StatusTuple accept(Visitor* v) = 0;
[all …]
Dcodegen_llvm.h102 StatusTuple lookup_var(Node *n, const std::string &name, Scopes::VarScope *scope,
104 StatusTuple lookup_struct_type(StructDeclStmtNode *decl, llvm::StructType **stype) const;
105 StatusTuple lookup_struct_type(VariableDeclStmtNode *n, llvm::StructType **stype,
/external/bcc/src/cc/
Dbcc_exception.h24 class StatusTuple {
26 StatusTuple(int ret) : ret_(ret) {} in StatusTuple() function
28 StatusTuple(int ret, const char *msg) : ret_(ret), msg_(msg) {} in StatusTuple() function
30 StatusTuple(int ret, const std::string &msg) : ret_(ret), msg_(msg) {} in StatusTuple() function
33 StatusTuple(int ret, const char *fmt, Args... args) : ret_(ret) { in StatusTuple() function
54 StatusTuple __stp = (CMD); \
Dbpf_module.cc130 static StatusTuple unimplemented_sscanf(const char *, void *) { in unimplemented_sscanf()
131 return StatusTuple(-1, "sscanf unimplemented"); in unimplemented_sscanf()
133 static StatusTuple unimplemented_snprintf(char *, size_t, const void *) { in unimplemented_snprintf()
134 return StatusTuple(-1, "snprintf unimplemented"); in unimplemented_snprintf()
554 StatusTuple BPFModule::sscanf(string fn_name, const char *str, void *val) { in sscanf()
556 return StatusTuple(-1, "rw_engine not enabled"); in sscanf()
560 return StatusTuple(-1, "sscanf not available"); in sscanf()
563 return StatusTuple(rc, "error in sscanf: %s", std::strerror(errno)); in sscanf()
564 return StatusTuple(rc); in sscanf()
567 StatusTuple BPFModule::snprintf(string fn_name, char *str, size_t sz, in snprintf()
[all …]
Dtable_desc.h35 typedef std::function<StatusTuple(const char *, void *)> sscanf_fn;
36 typedef std::function<StatusTuple(char *, size_t, const void *)> snprintf_fn;
Dbpf_module.h74 StatusTuple sscanf(std::string fn_name, const char *str, void *val);
75 StatusTuple snprintf(std::string fn_name, char *str, size_t sz,
/external/bcc/src/cc/includes/
Dbcc_exception.h24 class StatusTuple {
26 StatusTuple(int ret) : ret_(ret) {} in StatusTuple() function
28 StatusTuple(int ret, const char *msg) : ret_(ret), msg_(msg) {} in StatusTuple() function
30 StatusTuple(int ret, const std::string &msg) : ret_(ret), msg_(msg) {} in StatusTuple() function
33 StatusTuple(int ret, const char *fmt, Args... args) : ret_(ret) { in StatusTuple() function
54 StatusTuple __stp = (CMD); \
Dtable_desc.h35 typedef std::function<StatusTuple(const char *, void *)> sscanf_fn;
36 typedef std::function<StatusTuple(char *, size_t, const void *)> snprintf_fn;
Dbpf_module.h74 StatusTuple sscanf(std::string fn_name, const char *str, void *val);
75 StatusTuple snprintf(std::string fn_name, char *str, size_t sz,
/external/bcc/tests/cc/
Dtest_bpf_table.cc30 ebpf::StatusTuple res(0);
101 ebpf::StatusTuple res(0);
131 ebpf::StatusTuple res(0);
192 ebpf::StatusTuple res(0);
Dtest_perf_event.cc57 ebpf::StatusTuple res(0);
114 ebpf::StatusTuple res(0);
Dtest_array_table.cc34 ebpf::StatusTuple res(0);
106 ebpf::StatusTuple res(0);
Dtest_hash_table.cc29 ebpf::StatusTuple res(0);
102 ebpf::StatusTuple res(0);
Dtest_prog_table.cc32 ebpf::StatusTuple res(0);
Dtest_shared_table.cc35 ebpf::StatusTuple res(0);