1. 25 5月, 2018 1 次提交
  2. 15 5月, 2018 2 次提交
  3. 18 4月, 2018 1 次提交
  4. 20 1月, 2018 1 次提交
    • J
      samples/bpf: xdp_monitor include cpumap tracepoints in monitoring · 417f1d9f
      Jesper Dangaard Brouer 提交于
      The xdp_redirect_cpu sample have some "builtin" monitoring of the
      tracepoints for xdp_cpumap_*, but it is practical to have an external
      tool that can monitor these transpoint as an easy way to troubleshoot
      an application using XDP + cpumap.
      
      Specifically I need such external tool when working on Suricata and
      XDP cpumap redirect. Extend the xdp_monitor tool sample with
      monitoring of these xdp_cpumap_* tracepoints.  Model the output format
      like xdp_redirect_cpu.
      
      Given I needed to handle per CPU decoding for cpumap, this patch also
      add per CPU info on the existing monitor events.  This resembles part
      of the builtin monitoring output from sample xdp_rxq_info.  Thus, also
      covering part of that sample in an external monitoring tool.
      
      Performance wise, the cpumap tracepoints uses bulking, which cause
      them to have very little overhead.  Thus, they are enabled by default.
      Signed-off-by: NJesper Dangaard Brouer <brouer@redhat.com>
      Signed-off-by: NDaniel Borkmann <daniel@iogearbox.net>
      417f1d9f
  5. 07 10月, 2017 2 次提交
  6. 02 10月, 2017 1 次提交
  7. 30 8月, 2017 1 次提交
    • J
      samples/bpf: xdp_monitor tool based on tracepoints · 3ffab546
      Jesper Dangaard Brouer 提交于
      This tool xdp_monitor demonstrate how to use the different xdp_redirect
      tracepoints xdp_redirect{,_map}{,_err} from a BPF program.
      
      The default mode is to only monitor the error counters, to avoid
      affecting the per packet performance. Tracepoints comes with a base
      overhead of 25 nanosec for an attached bpf_prog, and 48 nanosec for
      using a full perf record (with non-matching filter).  Thus, default
      loading the --stats mode could affect the maximum performance.
      
      This version of the tool is very simple and count all types of errors
      as one.  It will be natural to extend this later with the different
      types of errors that can occur, which should help users quickly
      identify common mistakes.
      
      Because the TP_STRUCT was kept in sync all the tracepoints loads the
      same BPF code.  It would also be natural to extend the map version to
      demonstrate how the map information could be used.
      Signed-off-by: NJesper Dangaard Brouer <brouer@redhat.com>
      Acked-by: NAlexei Starovoitov <ast@kernel.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3ffab546