hase-project / hase

Timeless debugging with symbolic execution and processor trace
BSD 2-Clause "Simplified" License
74 stars 8 forks source link

Collect traces by aux_head and aux_tail #92

Closed bet4it closed 5 years ago

bet4it commented 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.

Mic92 commented 5 years ago

In case you have not seen: https://github.com/hase-project/hase/issues/90#issue-406030112