summaryrefslogtreecommitdiffstats
path: root/samples/bpf/ibumad_kern.c
Commit message (Collapse)AuthorAgeFilesLines
* samples: bpf: Remove bpf_debug macro in favor of bpf_printkMichal Rostecki2019-06-241-12/+6
| | | | | | | | | | | ibumad example was implementing the bpf_debug macro which is exactly the same as the bpf_printk macro available in bpf_helpers.h. This change makes use of bpf_printk instead of bpf_debug. Signed-off-by: Michal Rostecki <mrostecki@opensuse.org> Acked-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
* BPF: Add sample code for new ib_umad tracepointIra Weiny2019-03-271-0/+144
Provide a count of class types for a summary of MAD packets. The example shows one way to filter the trace data based on management class. Signed-off-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>