diff options
author | Jakub Kicinski <[email protected]> | 2023-06-05 12:01:08 -0700 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-06-06 12:31:32 -0700 |
commit | ee0202e2e731d074639461b3db2296bf44d847ce (patch) | |
tree | 65b79b41b3c90757860329b086e354d2b68312fc /tools/perf/scripts/python/stackcollapse.py | |
parent | d75fdfbc6f260f50cde5d1d566ab010a370df62e (diff) |
tools: ynl: add sample for netdev
Add a sample application using the C library.
My main goal is to make writing selftests easier but until
I have some of those ready I think it's useful to show off
the functionality and let people poke and tinker.
Sample outputs - dump:
$ ./netdev
Select ifc ($ifindex; or 0 = dump; or -2 ntf check): 0
lo[1] 0:
enp1s0[2] 23: basic redirect rx-sg
Notifications (watching veth pair getting added and deleted):
$ ./netdev
Select ifc ($ifindex; or 0 = dump; or -2 ntf check): -2
[53] 0: (ntf: dev-add-ntf)
[54] 0: (ntf: dev-add-ntf)
[54] 23: basic redirect rx-sg (ntf: dev-change-ntf)
[53] 23: basic redirect rx-sg (ntf: dev-change-ntf)
[53] 23: basic redirect rx-sg (ntf: dev-del-ntf)
[54] 23: basic redirect rx-sg (ntf: dev-del-ntf)
Reviewed-by: Willem de Bruijn <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions