COSCUP 2022

ロケール設定が保存されました。pretalxでは英語のサポートが充実していると思っていますが、問題やエラーが発生した場合は、ぜひご連絡ください。

RISC-V ftrace: working with preemption
2022/07/30 , TR213
言語: 漢語

We found several issues linked inherently with ISA of RISC-V itself when using ftrace after turning on kernel preemption. In RISC-V, we must use 2 instructions to perform a jump to a target which is further than 4KB, and we cannot promise any 2 instructions being executed on the same process context if preemption is enabled. However, this is how we patch code in ftrace in current implementation. Thus, we proposed a change that could possibly solve it, making kernel preemption work with ftrace. The patch has been published on the mailing list. We would like to share and discuss our thoughts on LPC. And the talk will cover following content:

Current Implementation of RISC-V ftrace
How does stop_machine() work
Reviews of ftrace Implementations on other Architectures
Mixing with Kernel Preemption
Limitation of RISC-V ftrace due to RISC-V ISA
Possible Solutions to Enable ftrace with a Preemptible Kernel
Proposed Solution
Experiment and Results


Talk Length (30/45/90 mins)

30 minutes

Proposal Type

Talk (15 mins)

Way to participate

On-site participation

Target Audience

Linux users, RISC-V related industry

Difficulty

Skilled

Andy is currently an employee of the leading RISC-V IP provider : SiFive.