Lines Matching +full:event +full:- +full:name
1 # -*- coding: utf-8 -*-
4 Simple built-in backend.
8 __copyright__ = "Copyright 2012-2017, Lluís Vilanova <vilanova@ac.upc.edu>"
31 for event in events:
33 api=event.api(),
34 args=event.args)
38 def generate_h(event, group): argument
40 api=event.api(),
41 args=", ".join(event.args.names()))
44 def generate_h_backend_dstate(event, group): argument
46 event_id="TRACE_" + event.name.upper())
56 def generate_c(event, group): argument
60 api=event.api(),
61 args=event.args)
63 for type_, name in event.args:
65 … out(' size_t arg%(name)s_len = %(name)s ? MIN(strlen(%(name)s), MAX_TRACE_STRLEN) : 0;',
66 name=name)
67 strsizeinfo = "4 + arg%s_len" % name
72 if len(event.args) == 0:
75 event_id = 'TRACE_' + event.name.upper()
76 if "vcpu" in event.properties:
88 ' return; /* Trace Buffer Full, Event Dropped ! */',
91 event_obj=event.api(event.QEMU_EVENT),
94 if len(event.args) > 0:
95 for type_, name in event.args:
98 out(' trace_record_write_str(&rec, %(name)s, arg%(name)s_len);',
99 name=name)
102 out(' trace_record_write_u64(&rec, (uintptr_t)(uint64_t *)%(name)s);',
103 name=name)
106 out(' trace_record_write_u64(&rec, (uint64_t)%(name)s);',
107 name=name)