[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 3/3] hw/i2c/smbus_eeprom: Trace reset() event
From: |
Philippe Mathieu-Daudé |
Subject: |
[RFC PATCH 3/3] hw/i2c/smbus_eeprom: Trace reset() event |
Date: |
Fri, 26 Jun 2020 12:27:44 +0200 |
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
hw/i2c/smbus_eeprom.c | 2 ++
hw/i2c/trace-events | 3 +++
2 files changed, 5 insertions(+)
diff --git a/hw/i2c/smbus_eeprom.c b/hw/i2c/smbus_eeprom.c
index 22ba7b20d4..7a0e1e7455 100644
--- a/hw/i2c/smbus_eeprom.c
+++ b/hw/i2c/smbus_eeprom.c
@@ -31,6 +31,7 @@
#include "hw/qdev-properties.h"
#include "migration/vmstate.h"
#include "hw/i2c/smbus_eeprom.h"
+#include "trace.h"
//#define DEBUG
@@ -124,6 +125,7 @@ static void smbus_eeprom_reset(DeviceState *dev)
{
SMBusEEPROMDevice *eeprom = SMBUS_EEPROM(dev);
+ trace_smbus_eeprom_reset(eeprom->description);
memcpy(eeprom->data, eeprom->init_data, SMBUS_EEPROM_SIZE);
eeprom->offset = 0;
}
diff --git a/hw/i2c/trace-events b/hw/i2c/trace-events
index 08db8fa689..0539c9e111 100644
--- a/hw/i2c/trace-events
+++ b/hw/i2c/trace-events
@@ -14,3 +14,6 @@ aspeed_i2c_bus_read(uint32_t busid, uint64_t offset, unsigned
size, uint64_t val
aspeed_i2c_bus_write(uint32_t busid, uint64_t offset, unsigned size, uint64_t
value) "bus[%d]: To 0x%" PRIx64 " of size %u: 0x%" PRIx64
aspeed_i2c_bus_send(const char *mode, int i, int count, uint8_t byte) "%s send
%d/%d 0x%02x"
aspeed_i2c_bus_recv(const char *mode, int i, int count, uint8_t byte) "%s recv
%d/%d 0x%02x"
+
+# smbus_eeprom.c
+smbus_eeprom_reset(const char *description) "'%s': reset"
--
2.21.3
- Re: [RFC PATCH 1/3] hw/i2c/smbus_eeprom: Set QOM parent, (continued)
- Re: [RFC PATCH 1/3] hw/i2c/smbus_eeprom: Set QOM parent, BALATON Zoltan, 2020/06/26
- Re: [RFC PATCH 1/3] hw/i2c/smbus_eeprom: Set QOM parent, BALATON Zoltan, 2020/06/26
- Re: [RFC PATCH 1/3] hw/i2c/smbus_eeprom: Set QOM parent, Philippe Mathieu-Daudé, 2020/06/26
- Re: [RFC PATCH 1/3] hw/i2c/smbus_eeprom: Set QOM parent, BALATON Zoltan, 2020/06/26
- Re: [RFC PATCH 1/3] hw/i2c/smbus_eeprom: Set QOM parent, Philippe Mathieu-Daudé, 2020/06/26
- Re: [RFC PATCH 1/3] hw/i2c/smbus_eeprom: Set QOM parent, BALATON Zoltan, 2020/06/26
- Re: [RFC PATCH 1/3] hw/i2c/smbus_eeprom: Set QOM parent, Philippe Mathieu-Daudé, 2020/06/26
[RFC PATCH 2/3] hw/i2c/smbus_eeprom: Add description based on child name, Philippe Mathieu-Daudé, 2020/06/26
[RFC PATCH 3/3] hw/i2c/smbus_eeprom: Trace reset() event,
Philippe Mathieu-Daudé <=
Re: [RFC PATCH 0/3] Use object_get_canonical_path_component to get child description, no-reply, 2020/06/26
Re: [RFC PATCH 0/3] Use object_get_canonical_path_component to get child description, no-reply, 2020/06/26
Re: [RFC PATCH 0/3] Use object_get_canonical_path_component to get child description, Aleksandar Markovic, 2020/06/26
Re: [RFC PATCH 0/3] Use object_get_canonical_path_component to get child description, Markus Armbruster, 2020/06/27