mac802154: add trace functionality for driver ops
Subsystems (2)
PATCH 1/1 mac802154: add trace functionality for driver ops
This patch adds trace events for driver operations.
Signed-off-by Varka Bhadram <[email protected]>
--- net/mac802154/Makefile | 4 +- net/mac802154/driver-ops.h | 92 ++++++++++++--- net/mac802154/trace.c | 9 ++ net/mac802154/trace.h | 272 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 362 insertions(+), 15 deletions(-) create mode 100644 net/mac802154/trace.c create mode 100644 net/mac802154/trace.h
net/mac802154/Makefile +3 -1
@@ -1,5 +1,7 @@ obj-$(CONFIG_MAC802154) += mac802154.o mac802154-objs := main.o rx.o tx.o mac_cmd.o mib.o \ - iface.o llsec.o util.o cfg.o + iface.o llsec.o util.o cfg.o trace.o + +CFLAGS_trace.o := -I$(src) ccflags-y += -D__CHECK_ENDIAN__
net/mac802154/driver-ops.h +78 -14
251 lines not on this page · raw message
net/mac802154/trace.c new file +9 -0
@@ -0,0 +1,9 @@ +#include <linux/module.h> + +#ifndef __CHECKER__ +#include <net/cfg802154.h> +#include "driver-ops.h" +#define CREATE_TRACE_POINTS +#include "trace.h" + +#endif
net/mac802154/trace.h new file +272 -0
272 lines not on this page · raw message
Signature · 1 line
1.7.9.5
Quoted 12 lines · Varka Bhadram
This patch adds trace events for driver operations.
Signed-off-by Varka Bhadram <[email protected]>--- net/mac802154/Makefile | 4 +- net/mac802154/driver-ops.h | 92 ++++++++++++--- net/mac802154/trace.c | 9 ++ net/mac802154/trace.h | 272 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 362 insertions(+), 15 deletions(-)create mode 100644
net/mac802154/trace.c
create mode 100644net/mac802154/trace.h
(...)
net/mac802154/trace.h line 196
Quoted 12 lines
net/mac802154/trace.h new file +12
-0+TRACE_EVENT(802154_drv_set_extended_addr, + TP_PROTO(struct ieee802154_local *local, __le64 extended_addr), + TP_ARGS(local, extended_addr), + TP_STRUCT__entry( + LOCAL_ENTRY + __field(__le64, extended_addr) + ), + TP_fast_assign( + LOCAL_ASSIGN; + __entry->extended_addr = extended_addr; + ), + TP_printk(LOCAL_PR_FMT ", extended addr: %0xllx", LOCAL_PR_ARG,
Its my bad. Fix to be done in the format specifier. I will send v2.
Thanks
Signature · 1 line
Varka Bhadram