mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/4] perf tools: Allow adding --filter to BPF object
@ 2015-08-28  6:20 Wang Nan
  2015-08-28  6:20 ` [PATCH 01/32] bpf tools: New API to get name from a " Wang Nan
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Wang Nan @ 2015-08-28  6:20 UTC (permalink / raw)
  To: acme
  Cc: linux-kernel, ast, brendan.d.gregg, daniel, dsahern, hekuang,
	jolsa, xiakaixu, masami.hiramatsu.pt, namhyung, a.p.zijlstra,
	lizefan, pi3orama, Wang Nan

This 4 patches will be appended into my next perf BPF pull request.
Without them, current perf BPF implementation has a small problem that,
if passing '--filter' after '--event test_bpf.o' event selection, the
filter won't be correctly applied.

Patch 1/4 append a new function to libbpf which allow fetching
object name from bpf_object.

Patch 2/4 add a safety check to avoid access invalid memory if the list
is empty during event parsing.

Patch 3/4 introduces a dummy evsel mechanism.

Patch 4/4 utilizes dummy evsel mechanism, make BPF event collect filter
options by dummy evsel and sync with them after real evsel generated.

The 4th patch should be applied after patch 'perf tools: Add bpf_fd
field to evsel and config it'. Patch 'perf tools: Enable passing bpf
object file to --event' should also be modified to utilize dummy evsel.
Please see my following pull request.

Thank you.

-- 
1.8.3.4


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-09-01  8:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-28  6:20 [PATCH 0/4] perf tools: Allow adding --filter to BPF object Wang Nan
2015-08-28  6:20 ` [PATCH 01/32] bpf tools: New API to get name from a " Wang Nan
2015-09-01  8:30   ` [tip:perf/urgent] " tip-bot for Wang Nan
2015-08-28  6:20 ` [PATCH 02/32] perf tools: Don't set cmdline_group_boundary if no evsel is collected Wang Nan
2015-08-28  6:20 ` [PATCH 03/32] perf tools: Introduce dummy evsel Wang Nan
2015-08-28  6:20 ` [PATCH 12/32] perf tools: Allow filter option to be applied to bof object Wang Nan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome