Lines Matching refs:buff
63 def __buff_to_string(self, buff): argument
66 for line in buff:
73 buff = []
75 buff.append("static void handle_%s(void *data, /* XXX: fill header */)" % event)
76 buff.append("{")
78 buff.append("\tstruct task_struct *p = /* XXX: how do I get p? */;");
79 … buff.append("\tda_handle_event_%s(p, %s%s);" % (self.name, event, self.enum_suffix));
81 buff.append("\tda_handle_event_%s(%s%s);" % (self.name, event, self.enum_suffix));
82 buff.append("}")
83 buff.append("")
84 return self.__buff_to_string(buff)
87 buff = []
89 …buff.append("\trv_attach_trace_probe(\"%s\", /* XXX: tracepoint */, handle_%s);" % (self.name, eve…
90 return self.__buff_to_string(buff)
93 buff = []
95 …buff.append("\trv_detach_trace_probe(\"%s\", /* XXX: tracepoint */, handle_%s);" % (self.name, eve…
96 return self.__buff_to_string(buff)
116 buff = []
117 buff.append("/*")
118 buff.append(" * Automatically generated C representation of %s automaton" % (self.name))
119 buff.append(" * For further information about this format, see kernel documentation:")
120 buff.append(" * Documentation/trace/rv/deterministic_automata.rst")
121 buff.append(" */")
122 buff.append("")
124 return buff
135 buff = self.fill_model_h_header()
136 buff += self.format_model()
138 return self.__buff_to_string(buff)