• Guido Günther's avatar
    ieee802154: Add trace events for rdev->ops · 1cc800e7
    Guido Günther authored
    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: default avatarGuido Günther <agx@sigxcpu.org>
    Signed-off-by: default avatarAlexander Aring <alex.aring@gmail.com>
    Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
    1cc800e7
Makefile 329 Bytes