xref: /openbmc/qemu/hw/tpm/trace-events (revision 6bb817827a32e7e8957fc5d99347af18d6f552d7)
1d0fb9657SStefano Garzarella# See docs/devel/tracing.rst for syntax documentation.
2ec427498SStefan Berger
3500016e5SMarkus Armbruster# tpm_crb.c
4988fa103SMarkus Armbrustertpm_crb_mmio_read(uint64_t addr, unsigned size, uint32_t val) "CRB read 0x%016" PRIx64 " len:%u val: 0x%" PRIx32
5988fa103SMarkus Armbrustertpm_crb_mmio_write(uint64_t addr, unsigned size, uint32_t val) "CRB write 0x%016" PRIx64 " len:%u val: 0x%" PRIx32
649d302feSStefan Berger
7b15e402fSMarkus Armbruster# tpm_tis_common.c
8fcbed221SStefan Bergertpm_tis_raise_irq(uint32_t irqmask) "Raising IRQ for flag 0x%08x"
9fcbed221SStefan Bergertpm_tis_new_active_locality(uint8_t locty) "Active locality is now %d"
10fcbed221SStefan Bergertpm_tis_abort(uint8_t locty) "New active locality is %d"
11fcbed221SStefan Bergertpm_tis_data_read(uint32_t value, uint32_t off) "byte 0x%02x   [%d]"
12fcbed221SStefan Bergertpm_tis_mmio_read(unsigned size, uint32_t addr, uint32_t val)  " read.%u(0x%08x) = 0x%08x"
13fcbed221SStefan Bergertpm_tis_mmio_write(unsigned size, uint32_t addr, uint32_t val) "write.%u(0x%08x) = 0x%08x"
14fcbed221SStefan Bergertpm_tis_mmio_write_locty4(void) "Access to locality 4 only allowed from hardware"
15fcbed221SStefan Bergertpm_tis_mmio_write_release_locty(uint8_t locty) "Releasing locality %d"
16fcbed221SStefan Bergertpm_tis_mmio_write_locty_req_use(uint8_t locty) "Locality %d requests use"
17fcbed221SStefan Bergertpm_tis_mmio_write_next_locty(uint8_t locty) "Next active locality is %d"
18fcbed221SStefan Bergertpm_tis_mmio_write_locty_seized(uint8_t locty, uint8_t active) "Locality %d seized from locality %d"
19fcbed221SStefan Bergertpm_tis_mmio_write_init_abort(void) "Initiating abort"
20fcbed221SStefan Bergertpm_tis_mmio_write_lowering_irq(void) "Lowering IRQ"
21fcbed221SStefan Bergertpm_tis_mmio_write_data2send(uint32_t value, unsigned size) "Data to send to TPM: 0x%08x (size=%d)"
229ec08c48SStefan Bergertpm_tis_pre_save(uint8_t locty, uint32_t rw_offset) "locty: %d, rw_offset = %u"
23ffab1be7SMarc-André Lureau
24500016e5SMarkus Armbruster# tpm_ppi.c
25ffab1be7SMarc-André Lureautpm_ppi_memset(uint8_t *ptr, size_t size) "memset: %p %zu"
263676bc69SStefan Berger
27ca64b086SPhilippe Mathieu-Daudé# tpm_spapr.c
283676bc69SStefan Bergertpm_spapr_do_crq(uint8_t raw1, uint8_t raw2) "1st 2 bytes in CRQ: 0x%02x 0x%02x"
293676bc69SStefan Bergertpm_spapr_do_crq_crq_result(void) "SPAPR_VTPM_INIT_CRQ_RESULT"
303676bc69SStefan Bergertpm_spapr_do_crq_crq_complete_result(void) "SPAPR_VTPM_INIT_CRQ_COMP_RESULT"
313676bc69SStefan Bergertpm_spapr_do_crq_tpm_command(void) "got TPM command payload"
323676bc69SStefan Bergertpm_spapr_do_crq_tpm_get_rtce_buffer_size(size_t buffersize) "response: buffer size is %zu"
333676bc69SStefan Bergertpm_spapr_do_crq_get_version(uint32_t version) "response: version %u"
343676bc69SStefan Bergertpm_spapr_do_crq_prepare_to_suspend(void) "response: preparing to suspend"
353676bc69SStefan Bergertpm_spapr_do_crq_unknown_msg_type(uint8_t type) "Unknown message type 0x%02x"
363676bc69SStefan Bergertpm_spapr_do_crq_unknown_crq(uint8_t raw1, uint8_t raw2) "unknown CRQ 0x%02x 0x%02x ..."
37ee9a8129SStefan Bergertpm_spapr_post_load(void) "Delivering TPM response after resume"
38ee9a8129SStefan Bergertpm_spapr_caught_response(uint32_t v) "Caught response to deliver after resume: %u bytes"
39*6bb81782SNinad Palsule
40*6bb81782SNinad Palsule# tpm_tis_i2c.c
41*6bb81782SNinad Palsuletpm_tis_i2c_recv(uint8_t data) "TPM I2C read: 0x%X"
42*6bb81782SNinad Palsuletpm_tis_i2c_send(uint8_t data) "TPM I2C write: 0x%X"
43*6bb81782SNinad Palsuletpm_tis_i2c_event(const char *event) "TPM I2C event: %s"
44*6bb81782SNinad Palsuletpm_tis_i2c_send_reg(const char *name, int reg) "TPM I2C write register: %s(0x%X)"
45