andrewrk / andrewrk/poop

Getting no perf_event_open stats

Aperta
#63 1 commento 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
Zig
Stelle
2k
Fork
94
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Iam getting no perf_event_open stats from poop but perf stat is working just fine.

I have tracked down a fix but I am not happy with it as it goes against the syscall docs.

Changing:

std.posix.perf_event_open(&attr, 0, -1, perf_fds[0], PERF.FLAG.FD_CLOEXEC)

to

std.posix.perf_event_open(&attr, 0, -1, -1, PERF.FLAG.FD_CLOEXEC)

Makes it work again.

I am on kernel 6.12.1 if it helps to figure out this weirdness.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.