xref: /openbmc/qemu/backends/tpm/trace-events (revision 99bdcd2c)
1d0fb9657SStefano Garzarella# See docs/devel/tracing.rst for syntax documentation.
2ca64b086SPhilippe Mathieu-Daudé
3ca64b086SPhilippe Mathieu-Daudé# tpm_passthrough.c
4ca64b086SPhilippe Mathieu-Daudétpm_passthrough_handle_request(void *cmd) "processing command %p"
5ca64b086SPhilippe Mathieu-Daudétpm_passthrough_reset(void) "reset"
6ca64b086SPhilippe Mathieu-Daudé
7ca64b086SPhilippe Mathieu-Daudé# tpm_util.c
8ca64b086SPhilippe Mathieu-Daudétpm_util_get_buffer_size_hdr_len(uint32_t len, size_t expected) "tpm_resp->hdr.len = %u, expected = %zu"
9ca64b086SPhilippe Mathieu-Daudétpm_util_get_buffer_size_len(uint32_t len, size_t expected) "tpm_resp->len = %u, expected = %zu"
10ca64b086SPhilippe Mathieu-Daudétpm_util_get_buffer_size_hdr_len2(uint32_t len, size_t expected) "tpm2_resp->hdr.len = %u, expected = %zu"
11ca64b086SPhilippe Mathieu-Daudétpm_util_get_buffer_size_len2(uint32_t len, size_t expected) "tpm2_resp->len = %u, expected = %zu"
12ca64b086SPhilippe Mathieu-Daudétpm_util_get_buffer_size(size_t len) "buffersize of device: %zu"
13ca64b086SPhilippe Mathieu-Daudétpm_util_show_buffer(const char *direction, size_t len, const char *buf) "direction: %s len: %zu\n%s"
14ca64b086SPhilippe Mathieu-Daudé
15ca64b086SPhilippe Mathieu-Daudé# tpm_emulator.c
16ca64b086SPhilippe Mathieu-Daudétpm_emulator_set_locality(uint8_t locty) "setting locality to %d"
17ca64b086SPhilippe Mathieu-Daudétpm_emulator_handle_request(void) "processing TPM command"
18ca64b086SPhilippe Mathieu-Daudétpm_emulator_probe_caps(uint64_t caps) "capabilities: 0x%"PRIx64
19ca64b086SPhilippe Mathieu-Daudétpm_emulator_set_buffer_size(uint32_t buffersize, uint32_t minsize, uint32_t maxsize) "buffer size: %u, min: %u, max: %u"
20ca64b086SPhilippe Mathieu-Daudétpm_emulator_startup_tpm_resume(bool is_resume, size_t buffersize) "is_resume: %d, buffer size: %zu"
21ca64b086SPhilippe Mathieu-Daudétpm_emulator_get_tpm_established_flag(uint8_t flag) "got established flag: %d"
22ca64b086SPhilippe Mathieu-Daudétpm_emulator_cancel_cmd_not_supt(void) "Backend does not support CANCEL_TPM_CMD"
23*99bdcd2cSStefan Bergertpm_emulator_lock_storage_cmd_not_supt(void) "Backend does not support LOCK_STORAGE"
24*99bdcd2cSStefan Bergertpm_emulator_vm_state_change(int running, int state) "state change to running %d state %d"
25ca64b086SPhilippe Mathieu-Daudétpm_emulator_handle_device_opts_tpm12(void) "TPM Version 1.2"
26ca64b086SPhilippe Mathieu-Daudétpm_emulator_handle_device_opts_tpm2(void) "TPM Version 2"
27ca64b086SPhilippe Mathieu-Daudétpm_emulator_handle_device_opts_unspec(void) "TPM Version Unspecified"
28ca64b086SPhilippe Mathieu-Daudétpm_emulator_handle_device_opts_startup_error(void) "Startup error"
29ca64b086SPhilippe Mathieu-Daudétpm_emulator_get_state_blob(uint8_t type, uint32_t size, uint32_t flags) "got state blob type %d, %u bytes, flags 0x%08x"
30ca64b086SPhilippe Mathieu-Daudétpm_emulator_set_state_blob(uint8_t type, uint32_t size, uint32_t flags) "set state blob type %d, %u bytes, flags 0x%08x"
31ca64b086SPhilippe Mathieu-Daudétpm_emulator_set_state_blobs(void) "setting state blobs"
32ca64b086SPhilippe Mathieu-Daudétpm_emulator_set_state_blobs_error(const char *msg) "error while setting state blobs: %s"
33ca64b086SPhilippe Mathieu-Daudétpm_emulator_set_state_blobs_done(void) "Done setting state blobs"
34ca64b086SPhilippe Mathieu-Daudétpm_emulator_pre_save(void) ""
35ca64b086SPhilippe Mathieu-Daudétpm_emulator_inst_init(void) ""
36