diff options
author | Guido Günther <agx@sigxcpu.org> | 2015-04-30 17:44:55 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-04-30 18:48:09 +0200 |
commit | 1cc800e7aabb40e2d8ffc3d259e6a153007fa9eb (patch) | |
tree | 4f96651ce009ec24d320e8d384a1f1569ca6dcf1 /net/ieee802154/Makefile | |
parent | 42fb23e2f57accbed69804e6d72ea3a88b8a84c4 (diff) | |
download | lwn-1cc800e7aabb40e2d8ffc3d259e6a153007fa9eb.tar.gz lwn-1cc800e7aabb40e2d8ffc3d259e6a153007fa9eb.zip |
ieee802154: Add trace events for rdev->ops
Enabling tracing via
echo 1 > /sys/kernel/debug/tracing/events/cfg802154/enable
enables event tracing like
iwpan dev wpan0 set pan_id 0xbeef
cat /sys/kernel/debug/tracing/trace
# tracer: nop
#
# entries-in-buffer/entries-written: 2/2 #P:1
#
# _-----=> irqs-off
# / _----=> need-resched
# | / _---=> hardirq/softirq
# || / _--=> preempt-depth
# ||| / delay
# TASK-PID CPU# |||| TIMESTAMP FUNCTION
# | | | |||| | |
iwpan-2663 [000] .... 170.369142: 802154_rdev_set_pan_id: phy0, wpan_dev(1), pan id: 0xbeef
iwpan-2663 [000] .... 170.369177: 802154_rdev_return_int: phy0, returned: 0
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/ieee802154/Makefile')
-rw-r--r-- | net/ieee802154/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ieee802154/Makefile b/net/ieee802154/Makefile index 05dab2957cd4..4adfd4d5471b 100644 --- a/net/ieee802154/Makefile +++ b/net/ieee802154/Makefile @@ -3,7 +3,9 @@ obj-$(CONFIG_IEEE802154_SOCKET) += ieee802154_socket.o obj-y += 6lowpan/ ieee802154-y := netlink.o nl-mac.o nl-phy.o nl_policy.o core.o \ - header_ops.o sysfs.o nl802154.o + header_ops.o sysfs.o nl802154.o trace.o ieee802154_socket-y := socket.o +CFLAGS_trace.o := -I$(src) + ccflags-y += -D__CHECK_ENDIAN__ |