Home
last modified time | relevance | path

Searched refs:cmplt_event (Results 1 – 3 of 3) sorted by relevance

/developtools/profiler/hiebpf/src/
Dbpf_event_receiver.cpp77 struct fstrace_cmplt_event_t cmplt_event {}; in ReceiveFSTraceEvent() struct
78 size_t dataSize = buf_->Get((char*)&cmplt_event, sizeof(cmplt_event)); in ReceiveFSTraceEvent()
79 if (dataSize != sizeof(cmplt_event)) { in ReceiveFSTraceEvent()
83 WriteEventMaps(cmplt_event.tgid); in ReceiveFSTraceEvent()
89 __u32 tlvItemSize = GetFSTraceTLVItemSize(cmplt_event); in ReceiveFSTraceEvent()
95 if (EncodeFSTraceEvent(&cmplt_event, dest, tlvItemSize) != 0) { in ReceiveFSTraceEvent()
105 struct pftrace_cmplt_event_t cmplt_event {}; in ReceivePFTraceEvent() struct
106 buf_->Get((char*)&cmplt_event, sizeof(cmplt_event)); in ReceivePFTraceEvent()
107 WriteEventMaps(cmplt_event.tgid); in ReceivePFTraceEvent()
113 __u32 tlvItemSize = GetPFTraceTLVItemSize(cmplt_event); in ReceivePFTraceEvent()
[all …]
Dhiebpf.bpf.c120 … struct fstrace_cmplt_event_t *cmplt_event = bpf_ringbuf_reserve(&bpf_ringbuf_map, event_size, 0); in emit_fstrace_event() local
121 if (cmplt_event == NULL) { in emit_fstrace_event()
125 __builtin_memset(cmplt_event, 0, event_size); in emit_fstrace_event()
128 …int err = bpf_probe_read_kernel(&cmplt_event->start_event, sizeof(struct fstrace_start_event_t), s… in emit_fstrace_event()
131 bpf_ringbuf_discard(cmplt_event, BPF_RB_NO_WAKEUP); in emit_fstrace_event()
134 if (cmplt_event->start_event.type == 0) { in emit_fstrace_event()
136 bpf_ringbuf_discard(cmplt_event, BPF_RB_NO_WAKEUP); in emit_fstrace_event()
140 cmplt_event->ctime = ctime; in emit_fstrace_event()
141 cmplt_event->tracer = FSTRACE; in emit_fstrace_event()
142 cmplt_event->pid = (u32) pid_tgid; in emit_fstrace_event()
[all …]
/developtools/profiler/hiebpf/include/
Dbpf_event_receiver.h202 const struct fstrace_cmplt_event_t *cmplt_event,
206 const struct pftrace_cmplt_event_t *cmplt_event,
210 const struct biotrace_cmplt_event_t *cmplt_event,
214 const struct strtrace_cmplt_event_t *cmplt_event,
227 inline __u32 GetFSTraceTLVItemSize(const struct fstrace_cmplt_event_t &cmplt_event) in GetFSTraceTLVItemSize() argument
230 size += cmplt_event.nips * sizeof(__u64); in GetFSTraceTLVItemSize()
234 inline __u32 GetPFTraceTLVItemSize(const struct pftrace_cmplt_event_t &cmplt_event) in GetPFTraceTLVItemSize() argument
237 size += cmplt_event.nips * sizeof(__u64); in GetPFTraceTLVItemSize()
241 inline __u32 GetBIOTraceTLVItemSize(const struct biotrace_cmplt_event_t &cmplt_event) in GetBIOTraceTLVItemSize() argument
244 size += cmplt_event.nips * sizeof(__u64); in GetBIOTraceTLVItemSize()
[all …]