~/talk

RISC-V ftrace: working with preemption

name:Tao Chiu
links:none on file
slides:none on file

RISC-V ftrace currently patches a reserved area at each function (usually reserve 16 bytes per function) using a stop-the-world stop_machine approach; enabling preemption exposes partially-updated four-instruction trampolines that corrupt return frames. Proposed work replaces stop_machine with aligned trampolines and atomic stores (needs functions aligned at 4/8 bytes and GCC falign), plus a runtime trampoline allocator; prototype shows roughly ~500KB code growth and requires expensive synchronization like synchronize_rcu_tasks to be safe.

AI-written summary · about

  1. 0:00Introduction to RISC-V ftrace
  2. 1:06Current ftrace implementation
  3. 3:14Stop machine limitations
  4. 6:29Preemption and atomicity issues
  5. 9:17Alternative solutions explored
  6. 10:44ARM64 and x86 approaches
  7. 13:37Prior art and atomicity
  8. 16:56RISC-V specific challenges
  9. 18:48PPC-RISK comparison
  10. 21:15RCU tasks synchronization
  11. 23:01Breakpoint atomicity debate
  12. 24:45Hardware vendor coordination
  13. 26:33Proposed RISC-V solution
  14. 27:40Troline approach details
  15. 30:20Code size impact
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.