[PATCH v2 1/4] Coresight: Add trace_id function to collect trace ID
Markus Elfring
Markus.Elfring at web.de
Mon Jul 8 05:36:22 PDT 2024
> Add 'trace_id' function pointer in ops. It's responsible for collect the
…
It is? collecting?
…
> +++ b/drivers/hwtracing/coresight/coresight-etm-perf.c
…
> + sink_data = kzalloc(sizeof(*sink_data), GFP_KERNEL);
> + if (!sink_data)
> + goto fail_end_stop;
…
> + if (coresight_enable_path(path, CS_MODE_PERF, sink_data)) {
> + kfree(sink_data);
> goto fail_end_stop;
> + }
…
Would you like to to benefit any more from further applications of scope-based
resource management by using an attribute like “__free(kfree)”?
https://elixir.bootlin.com/linux/v6.10-rc7/source/include/linux/slab.h#L282
Regards,
Markus
More information about the linux-arm-kernel
mailing list