As far as I know, there is no RISC-V trace support in OpenOCD. In fact, RISC-V trace (or maybe only parts thereof - e.g. trace data protocols as opposed to trace transport(s)?) was only formally standardised recently:
https://wiki.riscv.org/plugins/servlet/mobile?contentId=26574878#content/view/26574878 There are some implementations in existence but they are most likely custom. For example, UltraSoC (now Siemens) do have an implementation for their flavour of trace but that's only of relevance if one's target implements their IP in hardware (the ust_* files here). https://github.com/ultrasoc/riscv-openocd/tree/master/src/jtag/drivers Others may also have custom trace IP and maybe OpenOCD forks too, but UltraSoC is the only one that I have ever worked with. What RISC-V trace implementation are you looking at/interested in?