rproc_handle_trace(9)
πΈ rproc_handle_trace β Kernel API Manual energy π
okay so bestie, welcome to the rproc_handle_trace(9) page π
this is the one that deals with a shared trace buffer resource, and honestly? it's giving "quietly doing the most important job in the room" β¨
β¨ NAME β¨
rproc_handle_trace β handle a shared trace buffer resource π«Ά
π« SYNOPSIS π«
int rproc_handle_trace (struct rproc *rproc , void *ptr , int offset ,
int avail );
π ARGUMENTS π
rprocβ the remote processor π like, the whole reason we're hereptrβ the trace resource descriptor πoffsetβ offset of the resource entry πavailβ size of available data (for sanity checking the image) π§ β¨
π¦ DESCRIPTION π¦
so when the remote processor dumps trace logs into memory, this function's whole gig is exporting it via debugfs π periodt.
rn, the 'da' member of rsc should contain the device address where the remote processor is dumping the traces π no cap, that's where the juice lives.
later we could also support dynamically allocating this address using the generic DMA API π but lowkey, currently there isn't a use case for that π so we're not doing it.
π RETURN π
0 on success, or an appropriate error code otherwise π bestie either it ate or it didn't, there is no in between.
π₯ SEE ALSO π₯
Kernel file ./drivers/remoteproc/remoteproc_core.c β go read it, iykyk πβ¨
the whole friend group, in order π«Ά:
rproc_da_to_va(9)rproc_find_carveout_by_name(9)rproc_check_carveout_da(9)rproc_handle_vdev(9)rproc_handle_devmem(9)rproc_alloc_carveout(9)rproc_release_carveout(9)rproc_handle_carveout(9)rproc_add_carveout(9)rproc_mem_entry_init(9)rproc_of_resm_mem_entry_init(9)rproc_of_parse_firmware(9)rproc_alloc_registered_carveouts(9)rproc_resource_cleanup(9)rproc_trigger_recovery(9)rproc_crash_handler_work(9)rproc_boot(9)rproc_shutdown(9)rproc_detach(9)rproc_get_by_phandle(9)rproc_set_firmware(9)rproc_add(9)devm_rproc_add(9)rproc_type_release(9)rproc_alloc(9)rproc_free(9)rproc_put(9)rproc_del(9)devm_rproc_alloc(9)rproc_add_subdev(9)rproc_remove_subdev(9)rproc_get_by_child(9)rproc_report_crash(9)
and that's the page bestie π it lives in ./drivers/remoteproc, it's dated October 2026, and it will always be rproc_handle_trace(9) to me πβ¨ slay, go unload your trace buffers responsibly π
πΈ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms