Sep 12 – 14, 2022
Europe/Dublin timezone

KUnit: Function Redirection and More

Sep 12, 2022, 5:20 PM
"Ulster & Munster" (Clayton Hotel on Burlington Road)

"Ulster & Munster"

Clayton Hotel on Burlington Road

Kernel Testing & Dependability MC Kernel Testing & Dependability MC


Brendan Higgins (Google LLC) David Gow (Google)


Despite everyone's efforts, there's still more kernel to test. One problem area that keeps popping up is the need to replace functions with 'fake' or 'mock' equivalents in order to test hardware or less-self-contained subsystems. We will discuss two methods of replacing functions: one based on ftrace, and another based on "static stubbing" using a function prologue.

We will also provide a brief "KUnit year in review" retrospective, and a prospective look on what we are doing/what we hope to achieve in the coming year.

I agree to abide by the anti-harassment policy Yes

Primary authors

Brendan Higgins (Google LLC) David Gow (Google)

Presentation materials