Home
last modified time | relevance | path

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

/openbmc/linux/tools/perf/util/bpf_skel/
H A Dlock_contention.bpf.c278 struct tstamp_data *pelem; in contention_begin() local
284 pelem = bpf_map_lookup_elem(&tstamp, &pid); in contention_begin()
285 if (pelem && pelem->lock) in contention_begin()
288 if (pelem == NULL) { in contention_begin()
292 pelem = bpf_map_lookup_elem(&tstamp, &pid); in contention_begin()
293 if (pelem == NULL) { in contention_begin()
299 pelem->timestamp = bpf_ktime_get_ns(); in contention_begin()
300 pelem->lock = (__u64)ctx[0]; in contention_begin()
301 pelem->flags = (__u32)ctx[1]; in contention_begin()
304 pelem->stack_id = bpf_get_stackid(ctx, &stacks, in contention_begin()
[all …]
H A Doff_cpu.bpf.c190 struct tstamp_data *pelem; in off_cpu_stat() local
200 pelem = bpf_task_storage_get(&tstamp, prev, NULL, in off_cpu_stat()
202 if (!pelem) in off_cpu_stat()
205 pelem->timestamp = ts; in off_cpu_stat()
206 pelem->state = state; in off_cpu_stat()
207 pelem->stack_id = stack_id; in off_cpu_stat()
210 pelem = bpf_task_storage_get(&tstamp, next, NULL, 0); in off_cpu_stat()
212 if (pelem && pelem->timestamp) { in off_cpu_stat()
216 .stack_id = pelem->stack_id, in off_cpu_stat()
217 .state = pelem->state, in off_cpu_stat()
[all …]
/openbmc/linux/tools/perf/scripts/python/
H A Dcompaction-times.py191 for i, pelem in enumerate(self.list):
192 sys.stdout.write("%d[%s].%d: %s\n" % (self.pid, self.comm, i+1, pelem))