hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/include/trace/events/smbus.h
....@@ -1,12 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /* SMBUS message transfer tracepoints
23 *
34 * Copyright (C) 2013 Red Hat, Inc. All Rights Reserved.
45 * Written by David Howells (dhowells@redhat.com)
5
- *
6
- * This program is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU General Public Licence
8
- * as published by the Free Software Foundation; either version
9
- * 2 of the Licence, or (at your option) any later version.
106 */
117 #undef TRACE_SYSTEM
128 #define TRACE_SYSTEM smbus
....@@ -138,9 +134,9 @@
138134 TP_PROTO(const struct i2c_adapter *adap,
139135 u16 addr, unsigned short flags,
140136 char read_write, u8 command, int protocol,
141
- const union i2c_smbus_data *data),
142
- TP_ARGS(adap, addr, flags, read_write, command, protocol, data),
143
- TP_CONDITION(read_write == I2C_SMBUS_READ),
137
+ const union i2c_smbus_data *data, int res),
138
+ TP_ARGS(adap, addr, flags, read_write, command, protocol, data, res),
139
+ TP_CONDITION(res >= 0 && read_write == I2C_SMBUS_READ),
144140 TP_STRUCT__entry(
145141 __field(int, adapter_nr )
146142 __field(__u16, addr )