| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* SMBUS message transfer tracepoints |
|---|
| 2 | 3 | * |
|---|
| 3 | 4 | * Copyright (C) 2013 Red Hat, Inc. All Rights Reserved. |
|---|
| 4 | 5 | * 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. |
|---|
| 10 | 6 | */ |
|---|
| 11 | 7 | #undef TRACE_SYSTEM |
|---|
| 12 | 8 | #define TRACE_SYSTEM smbus |
|---|
| .. | .. |
|---|
| 138 | 134 | TP_PROTO(const struct i2c_adapter *adap, |
|---|
| 139 | 135 | u16 addr, unsigned short flags, |
|---|
| 140 | 136 | 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), |
|---|
| 144 | 140 | TP_STRUCT__entry( |
|---|
| 145 | 141 | __field(int, adapter_nr ) |
|---|
| 146 | 142 | __field(__u16, addr ) |
|---|