summaryrefslogtreecommitdiff
path: root/net/openvswitch/flow.h
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2021-04-14 19:07:37 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2021-04-15 22:38:51 +0300
commit6cd70754f262e593febc06a02d7ea637c927ea42 (patch)
tree865f27aa65b22331f996dd08bdec689daf91f113 /net/openvswitch/flow.h
parent2fc83c2cd77703cfcfc1ffaa092614fb1f837292 (diff)
downloadlinux-6cd70754f262e593febc06a02d7ea637c927ea42.tar.xz
libperf: Add evsel mmap support
In order to support usersapce access, an event must be mmapped. While there's already mmap support for evlist, the usecase is a bit different than the self monitoring with userspace access. So let's add new perf_evsel__mmap()/perf_evsel_munmap() functions to mmap/munmap an evsel. This allows implementing userspace access as a fastpath for perf_evsel__read(). The mmapped address is returned by perf_evsel__mmap_base() which primarily for users/tests to check if userspace access is enabled. Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: Jiri Olsa <jolsa@redhat.com> Acked-by: Namhyung Kim <namhyung@kernel.org> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Itaru Kitayama <itaru.kitayama@gmail.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Will Deacon <will@kernel.org> Link: http://lore.kernel.org/lkml/20210414155412.3697605-2-robh@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'net/openvswitch/flow.h')
0 files changed, 0 insertions, 0 deletions