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


Groups > linux.kernel > #1186837

Re: [RFC PATCH 5/6] bpf: Implement function bpf_read_pmu() that get the selected hardware PMU conuter

From pi3orama <pi3orama@163.com>
Newsgroups linux.kernel
Subject Re: [RFC PATCH 5/6] bpf: Implement function bpf_read_pmu() that get the selected hardware PMU conuter
Date 2015-07-17 15:50 +0200
Message-ID <pNebw-73F-15@gated-at.bofh.it> (permalink)
References (6 earlier) <pNcMr-59N-29@gated-at.bofh.it> <pNd5M-5wj-7@gated-at.bofh.it> <pNdfs-5HQ-9@gated-at.bofh.it> <pNdyO-6ka-29@gated-at.bofh.it> <pNdS9-6GQ-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



发自我的 iPhone

> 在 2015年7月17日,下午9:26,Peter Zijlstra <peterz@infradead.org> 写道:
> 
> On Fri, Jul 17, 2015 at 08:57:00PM +0800, pi3orama wrote:
>>>> But what if we really want cross-cpu PMU accessing? Impossible?
>>> 
>>> Under the assumption that the eBPF program is called from tracing, and
>>> therefore from any context (task, softirq, irq and nmi), yes impossible.
>>> 
>>> You cannot do (synchronous) IPIs from either IRQ context or with IRQs
>>> disabled. And both are valid trace contexts.
>> 
>> What about software perf event? For example, tracepoints?
> 
> Some of them, tracepoints would work. So you could exempt
> TYPE_TRACEPOINT, but I would suggest starting as constrained as possible
> and relaxing when we really need/want.
> 
> 

Thanks to your advise. We will follow them in v2. Do you have further comment on other part of this patch set?

Thank you.
--
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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC PATCH 5/6] bpf: Implement function bpf_read_pmu() that get the selected hardware PMU conuter kaixu xia <xiakaixu@huawei.com> - 2015-07-17 12:50 +0200
  Re: [RFC PATCH 5/6] bpf: Implement function bpf_read_pmu() that get  the selected hardware PMU conuter Peter Zijlstra <peterz@infradead.org> - 2015-07-17 13:10 +0200
    Re: [RFC PATCH 5/6] bpf: Implement function bpf_read_pmu() that get  the selected hardware PMU conuter Peter Zijlstra <peterz@infradead.org> - 2015-07-17 13:40 +0200
    Re: [RFC PATCH 5/6] bpf: Implement function bpf_read_pmu() that get  the selected hardware PMU conuter Peter Zijlstra <peterz@infradead.org> - 2015-07-17 13:40 +0200
      Re: [RFC PATCH 5/6] bpf: Implement function bpf_read_pmu() that get  the selected hardware PMU conuter "Wangnan (F)" <wangnan0@huawei.com> - 2015-07-17 13:50 +0200
        Re: [RFC PATCH 5/6] bpf: Implement function bpf_read_pmu() that get  the selected hardware PMU conuter Peter Zijlstra <peterz@infradead.org> - 2015-07-17 14:00 +0200
          Re: [RFC PATCH 5/6] bpf: Implement function bpf_read_pmu() that get  the selected hardware PMU conuter Peter Zijlstra <peterz@infradead.org> - 2015-07-17 14:00 +0200
            Re: [RFC PATCH 5/6] bpf: Implement function bpf_read_pmu() that get  the selected hardware PMU conuter "Wangnan (F)" <wangnan0@huawei.com> - 2015-07-17 14:10 +0200
              Re: [RFC PATCH 5/6] bpf: Implement function bpf_read_pmu() that get  the selected hardware PMU conuter "Wangnan (F)" <wangnan0@huawei.com> - 2015-07-17 14:10 +0200
              Re: [RFC PATCH 5/6] bpf: Implement function bpf_read_pmu() that get  the selected hardware PMU conuter Peter Zijlstra <peterz@infradead.org> - 2015-07-17 14:20 +0200
                Re: [RFC PATCH 5/6] bpf: Implement function bpf_read_pmu() that get  the selected hardware PMU conuter "Wangnan (F)" <wangnan0@huawei.com> - 2015-07-17 14:40 +0200
                Re: [RFC PATCH 5/6] bpf: Implement function bpf_read_pmu() that get  the selected hardware PMU conuter Peter Zijlstra <peterz@infradead.org> - 2015-07-17 14:50 +0200
                Re: [RFC PATCH 5/6] bpf: Implement function bpf_read_pmu() that get  the selected hardware PMU conuter Peter Zijlstra <peterz@infradead.org> - 2015-07-17 14:50 +0200
                Re: [RFC PATCH 5/6] bpf: Implement function bpf_read_pmu() that get the selected hardware PMU conuter pi3orama <pi3orama@163.com> - 2015-07-17 15:10 +0200
                Re: [RFC PATCH 5/6] bpf: Implement function bpf_read_pmu() that get  the selected hardware PMU conuter Peter Zijlstra <peterz@infradead.org> - 2015-07-17 15:30 +0200
                Re: [RFC PATCH 5/6] bpf: Implement function bpf_read_pmu() that get the selected hardware PMU conuter pi3orama <pi3orama@163.com> - 2015-07-17 15:50 +0200
    Re: [RFC PATCH 5/6] bpf: Implement function bpf_read_pmu() that get  the selected hardware PMU conuter "Wangnan (F)" <wangnan0@huawei.com> - 2015-07-17 13:40 +0200

csiph-web