// SPDX-License-Identifier: GPL-2.0 /* * Simple kernel driver to link kernel Ftrace and an STM device * Copyright (c) 2016, Linaro Ltd. * * STM Ftrace will be registered as a trace_export.
*/
/** * stm_ftrace_write() - write data to STM via 'stm_ftrace' source * @buf: buffer containing the data packet * @len: length of the data packet
*/ staticvoid notrace
stm_ftrace_write(struct trace_export *export, constvoid *buf, unsignedint len)
{ struct stm_ftrace *stm = container_of(export, struct stm_ftrace, ftrace); /* This is called from trace system with preemption disabled */ unsignedint cpu = smp_processor_id();
stm_ftrace.data.nr_chans = roundup_pow_of_two(num_possible_cpus());
ret = stm_source_register_device(NULL, &stm_ftrace.data); if (ret)
pr_err("Failed to register stm_source - ftrace.\n");
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.