Thread (22 messages) flat view 22 messages, 3 authors, 2015-08-06

Re: [PATCH v6 3/4] bpf: Implement function bpf_perf_event_read() that get the selected hardware PMU conuter

From: Alexei Starovoitov <hidden>
Date: 2015-08-05 15:59:44
Also in: lkml

On 8/5/15 3:04 AM, Peter Zijlstra wrote:
quoted
quoted
+	__perf_event_read(event);
+	return perf_event_count(event);
+}
Also, you probably want a WARN_ON(in_nmi()) there, this function is
_NOT_  NMI safe.
we check that very early on:
unsigned int trace_call_bpf(struct bpf_prog *prog, void *ctx)
{
         unsigned int ret;

         if (in_nmi()) /* not supported yet */
                 return 1;
...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help