Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1647461

[PATCH net-next 0/2] perf, bpf: add support for HW_CACHE and RAW events

From Alexei Starovoitov <ast@fb.com>
Newsgroups linux.kernel
Subject [PATCH net-next 0/2] perf, bpf: add support for HW_CACHE and RAW events
Date 2017-05-23 00:50 +0200
Message-ID <tK4jf-3bn-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Patch 1: add support for HW_CACHE and RAW perf events to bpf:
- similar to PERF_TYPE_RAW and PERF_TYPE_HARDWARE allow PERF_TYPE_HW_CACHE
  events to be accessed via bpf_perf_event_read()
- similar to PERF_TYPE_HARDWARE and PERF_TYPE_SOFTWARE allow bpf programs
  to attch to PERF_TYPE_HW_CACHE and PERF_TYPE_RAW events as
  BPF_PROG_TYPE_PERF_EVENT program type

Patch 2: add tests for HW_CACHE and RAW events

---
Peter,
please review patch 1. It looks trivial and as far as
we can see nothing else needed. The existing perf+bpf infra
covers it just fine.

Thanks!

Teng Qin (2):
  perf, bpf: add support for HW_CACHE and RAW events
  samples/bpf: add samples for HW_CACHE / RAW events

 kernel/bpf/arraymap.c          |   1 +
 kernel/events/core.c           |   4 +-
 kernel/trace/bpf_trace.c       |   1 +
 samples/bpf/bpf_helpers.h      |   2 +-
 samples/bpf/trace_event_user.c |  46 +++++++++++-
 samples/bpf/tracex6_kern.c     |  28 ++++++--
 samples/bpf/tracex6_user.c     | 155 +++++++++++++++++++++++++++++++----------
 7 files changed, 187 insertions(+), 50 deletions(-)

-- 
2.9.3

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH net-next 0/2] perf, bpf: add support for HW_CACHE and RAW events Alexei Starovoitov <ast@fb.com> - 2017-05-23 00:50 +0200
  [PATCH net-next 1/2] perf, bpf: add support for HW_CACHE and RAW events Alexei Starovoitov <ast@fb.com> - 2017-05-23 00:50 +0200
    Re: [PATCH net-next 1/2] perf, bpf: add support for HW_CACHE and RAW  events Peter Zijlstra <peterz@infradead.org> - 2017-05-23 09:50 +0200
      Re: [PATCH net-next 1/2] perf, bpf: add support for HW_CACHE and RAW  events Peter Zijlstra <peterz@infradead.org> - 2017-05-23 18:40 +0200
  [PATCH net-next 2/2] samples/bpf: add samples for HW_CACHE / RAW events Alexei Starovoitov <ast@fb.com> - 2017-05-23 00:50 +0200
    Re: [PATCH net-next 2/2] samples/bpf: add samples for HW_CACHE /  RAW events David Miller <davem@davemloft.net> - 2017-05-23 01:30 +0200
      Re: [PATCH net-next 2/2] samples/bpf: add samples for HW_CACHE /  RAW events David Miller <davem@davemloft.net> - 2017-05-23 01:50 +0200

csiph-web