Lines Matching refs:append
134 buff.append("static void handle_%s(void *data, /* XXX: fill header */)" % event)
135 buff.append("{")
138 … buff.append("\t/* XXX: validate that this event always leads to the initial state */")
141 … buff.append("\t/* XXX: validate that this event is only valid in the initial state */")
144 buff.append("\tstruct task_struct *p = /* XXX: how do I get p? */;");
145 buff.append("\tda_%s_%s(p, %s%s);" % (handle, self.name, event, self.enum_suffix));
147 buff.append("\tda_%s_%s(%s%s);" % (handle, self.name, event, self.enum_suffix));
148 buff.append("}")
149 buff.append("")
155 …buff.append("\trv_attach_trace_probe(\"%s\", /* XXX: tracepoint */, handle_%s);" % (self.name, eve…
161 …buff.append("\trv_detach_trace_probe(\"%s\", /* XXX: tracepoint */, handle_%s);" % (self.name, eve…
190 buff.append("/* SPDX-License-Identifier: GPL-2.0 */")
191 buff.append("/*")
192 buff.append(" * Automatically generated C representation of %s automaton" % (self.name))
193 buff.append(" * For further information about this format, see kernel documentation:")
194 buff.append(" * Documentation/trace/rv/deterministic_automata.rst")
195 buff.append(" */")
196 buff.append("")
242 buff.append(" TP_PROTO(%s)," % tp_proto_c)
243 buff.append(" TP_ARGS(%s)" % tp_args_c)
248 buff.append(" # XXX: add dependencies if there")
250 buff.append(" depends on RV_MON_%s" % self.parent.upper())
251 buff.append(" default y")