Lines Matching full:append
111 buff.append("static void handle_%s(void *data, /* XXX: fill header */)" % event)
112 buff.append("{")
115 … buff.append("\t/* XXX: validate that this event always leads to the initial state */")
118 … buff.append("\t/* XXX: validate that this event is only valid in the initial state */")
121 buff.append("\tstruct task_struct *p = /* XXX: how do I get p? */;");
122 buff.append("\tda_%s_%s(p, %s%s);" % (handle, self.name, event, self.enum_suffix));
124 buff.append("\tda_%s_%s(%s%s);" % (handle, self.name, event, self.enum_suffix));
125 buff.append("}")
126 buff.append("")
132 …buff.append("\trv_attach_trace_probe(\"%s\", /* XXX: tracepoint */, handle_%s);" % (self.name, eve…
138 …buff.append("\trv_detach_trace_probe(\"%s\", /* XXX: tracepoint */, handle_%s);" % (self.name, eve…
163 buff.append("/*")
164 buff.append(" * Automatically generated C representation of %s automaton" % (self.name))
165 buff.append(" * For further information about this format, see kernel documentation:")
166 buff.append(" * Documentation/trace/rv/deterministic_automata.rst")
167 buff.append(" */")
168 buff.append("")
214 buff.append(" TP_PROTO(%s)," % tp_proto_c)
215 buff.append(" TP_ARGS(%s)" % tp_args_c)