Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1221852
| From | Namhyung Kim <namhyung@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 1/5] perf probe: Split add_perf_probe_events() |
| Date | 2015-09-10 04:30 +0200 |
| Message-ID | <q6ZMC-4XO-9@gated-at.bofh.it> (permalink) |
| References | <q4Y8i-1MD-3@gated-at.bofh.it> <q5CS5-NJ-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Sun, Sep 06, 2015 at 03:47:37PM +0800, Wangnan (F) wrote: > Hi Namhyung, Hi, > > Thanks for this patchset. > > Could you plase have a look at patch 5/27 and 6/27 in my newest pull > request? > These 2 patches utilize new probing API to create probe point and collect > probe_trace_events. I'm not very sure I fully understand your design > principle, > especially the cleanup part, because I can see different functions dealing > with > cleanup: > > cleanup_perf_probe_events > del_perf_probe_events > clear_perf_probe_event > clear_probe_trace_event > > But non of them works perfectly for me. The cleanup_perf_probe_events() is just to keep the existing logic as long as possible. But I think it needs to call clear_perf_probe_event(). The del_perf_probe_events() uses strfilter, but I think it can be problematic if other instances or users are using similar events at the same time. So for your case, IMHO it'd better keeping the perf/trace events after probing and reusing the events for unprobing. I'll take a look at it. > > In bpf_prog_priv__clear() function of 6/27, I copied some code from > cleanup_perf_probe_events(), because I think when destroying bpf programs, > the probe_trace_events should also be cleanuped, but we don't need call > exit_symbol_maps() many times, because we are in 'perf record', and not > sure whether other parts of perf need symbol maps. Otherwise I think > directly > calling cleanup_perf_probe_events() sould be better. Yeah, I also think exit_symbol_maps() should not be a part of the cleanup. I'll send a patch soon. > > You can find patch from: > > http://lkml.kernel.org/n/1441523623-152703-6-git-send-email-wangnan0@huawei.com > > http://lkml.kernel.org/n/1441523623-152703-7-git-send-email-wangnan0@huawei.com Thanks for your work! Namhyung -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [PATCH v2 1/5] perf probe: Split add_perf_probe_events() Namhyung Kim <namhyung@kernel.org> - 2015-09-10 04:30 +0200
RE: Re: [PATCH v2 1/5] perf probe: Split add_perf_probe_events() 平松雅巳 / HIRAMATU,MASAMI <masami.hiramatsu.pt@hitachi.com> - 2015-09-10 07:10 +0200
Re: Re: [PATCH v2 1/5] perf probe: Split add_perf_probe_events() Namhyung Kim <namhyung@kernel.org> - 2015-09-10 08:50 +0200
RE: Re: [PATCH v2 1/5] perf probe: Split add_perf_probe_events() 平松雅巳 / HIRAMATU,MASAMI <masami.hiramatsu.pt@hitachi.com> - 2015-09-10 10:20 +0200
Re: Re: [PATCH v2 1/5] perf probe: Split add_perf_probe_events() Namhyung Kim <namhyung@kernel.org> - 2015-09-11 18:40 +0200
csiph-web