summaryrefslogtreecommitdiffstats
path: root/include/trace/events/devlink.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2019-01-25 19:53:23 +0100
committerDavid S. Miller <davem@davemloft.net>2019-01-25 19:53:23 +0100
commit30e5c2c6bf285d93dee4c45f23da95d7d50b125a (patch)
treec79112d7dd0198a0572f54ca51ba41568ac96ef1 /include/trace/events/devlink.h
parentbridge: remove duplicated include from br_multicast.c (diff)
downloadlinux-30e5c2c6bf285d93dee4c45f23da95d7d50b125a.tar.xz
linux-30e5c2c6bf285d93dee4c45f23da95d7d50b125a.zip
net: Revert devlink health changes.
This reverts the devlink health changes from 9/17/2019, Jiri wants things to be designed differently and it was agreed that the easiest way to do this is start from the beginning again. Commits reverted: cb5ccfbe73b389470e1dc11061bb185ef4bc9aec 880ee82f0313453ec5a6cb122866ac057263066b c7af343b4e33578b7de91786a3f639c8cfa0d97b ff253fedab961b22117a73ab808fcfa9e6852b50 6f9d56132eb6d2603d4273cfc65bed914ec47acb fcd852c69d776c0f46c8f79e8e431e5cc6ddc7b7 8a66704a13d9713593342e29b4f0c19762f5746b 12bd0dcefe88782ac1c9fff632958dd1b71d27e5 aba25279c10094c5c97d09c3491ca86d00b4ad5e ce019faa70f81555fa17ebc1d5a03651f2e7e15a b8c45a033acc607201588f7665ba84207e5149e0 And the follow-on build fix: o33a0efa4baecd689da9474ce0e8b673eb6931c60 Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/trace/events/devlink.h')
-rw-r--r--include/trace/events/devlink.h62
1 files changed, 0 insertions, 62 deletions
diff --git a/include/trace/events/devlink.h b/include/trace/events/devlink.h
index 7e39d2fc7c75..44acfbca1266 100644
--- a/include/trace/events/devlink.h
+++ b/include/trace/events/devlink.h
@@ -46,65 +46,6 @@ TRACE_EVENT(devlink_hwmsg,
(int) __entry->len, __get_dynamic_array(buf), __entry->len)
);
-TRACE_EVENT(devlink_health_report,
- TP_PROTO(const struct devlink *devlink, const char *reporter_name,
- const char *msg),
-
- TP_ARGS(devlink, reporter_name, msg),
-
- TP_STRUCT__entry(
- __string(bus_name, devlink->dev->bus->name)
- __string(dev_name, dev_name(devlink->dev))
- __string(driver_name, devlink->dev->driver->name)
- __string(reporter_name, msg)
- __string(msg, msg)
- ),
-
- TP_fast_assign(
- __assign_str(bus_name, devlink->dev->bus->name);
- __assign_str(dev_name, dev_name(devlink->dev));
- __assign_str(driver_name, devlink->dev->driver->name);
- __assign_str(reporter_name, reporter_name);
- __assign_str(msg, msg);
- ),
-
- TP_printk("bus_name=%s dev_name=%s driver_name=%s reporter_name=%s: %s",
- __get_str(bus_name), __get_str(dev_name),
- __get_str(driver_name), __get_str(reporter_name),
- __get_str(msg))
-);
-
-TRACE_EVENT(devlink_health_recover_aborted,
- TP_PROTO(const struct devlink *devlink, const char *reporter_name,
- bool health_state, u64 time_since_last_recover),
-
- TP_ARGS(devlink, reporter_name, health_state, time_since_last_recover),
-
- TP_STRUCT__entry(
- __string(bus_name, devlink->dev->bus->name)
- __string(dev_name, dev_name(devlink->dev))
- __string(driver_name, devlink->dev->driver->name)
- __string(reporter_name, reporter_name)
- __field(bool, health_state)
- __field(u64, time_since_last_recover)
- ),
-
- TP_fast_assign(
- __assign_str(bus_name, devlink->dev->bus->name);
- __assign_str(dev_name, dev_name(devlink->dev));
- __assign_str(driver_name, devlink->dev->driver->name);
- __assign_str(reporter_name, reporter_name);
- __entry->health_state = health_state;
- __entry->time_since_last_recover = time_since_last_recover;
- ),
-
- TP_printk("bus_name=%s dev_name=%s driver_name=%s reporter_name=%s: health_state=%d time_since_last_recover = %llu recover aborted",
- __get_str(bus_name), __get_str(dev_name),
- __get_str(driver_name), __get_str(reporter_name),
- __entry->health_state,
- __entry->time_since_last_recover)
-);
-
#endif /* _TRACE_DEVLINK_H */
/* This part must be outside protection */
@@ -123,9 +64,6 @@ static inline void trace_devlink_hwmsg(const struct devlink *devlink,
{
}
-static inline void trace_devlink_health(const char *msg)
-{
-}
#endif /* _TRACE_DEVLINK_H */
#endif