Closed bet4it closed 5 years ago
According to https://github.com/torvalds/linux/commit/1627314fb54a33ebd23bd08f2e215eaed0f44712, in Linux after 4.20, PERF_RECORD_AUX won't supply enough information for us, we should use aux_head and aux_tail to collect traces. As I have said in https://github.com/hase-project/hase/pull/91#issuecomment-471319641, we assume the size of collected records will not greater than the buffer holds them now, so the implement here is really simple. We can add more checks in the future.
4.20
PERF_RECORD_AUX
aux_head
aux_tail
In case you have not seen: https://github.com/hase-project/hase/issues/90#issue-406030112
According to https://github.com/torvalds/linux/commit/1627314fb54a33ebd23bd08f2e215eaed0f44712, in Linux after
4.20
,PERF_RECORD_AUX
won't supply enough information for us, we should useaux_head
andaux_tail
to collect traces. As I have said in https://github.com/hase-project/hase/pull/91#issuecomment-471319641, we assume the size of collected records will not greater than the buffer holds them now, so the implement here is really simple. We can add more checks in the future.