Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753023AbbHJFuk (ORCPT ); Mon, 10 Aug 2015 01:50:40 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:39590 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752290AbbHJFug (ORCPT ); Mon, 10 Aug 2015 01:50:36 -0400 Date: Sun, 09 Aug 2015 22:50:34 -0700 (PDT) Message-Id: <20150809.225034.728930050511076416.davem@davemloft.net> To: xiakaixu@huawei.com Cc: ast@plumgrid.com, acme@kernel.org, mingo@redhat.com, a.p.zijlstra@chello.nl, masami.hiramatsu.pt@hitachi.com, jolsa@kernel.org, daniel@iogearbox.net, wangnan0@huawei.com, linux-kernel@vger.kernel.org, pi3orama@163.com, hekuang@huawei.com, netdev@vger.kernel.org Subject: Re: [PATCH v7 0/5] bpf: Introduce the new ability of eBPF programs to access hardware PMU counter From: David Miller In-Reply-To: <1438844556-27064-1-git-send-email-xiakaixu@huawei.com> References: <1438844556-27064-1-git-send-email-xiakaixu@huawei.com> X-Mailer: Mew version 6.6 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sun, 09 Aug 2015 22:50:36 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 878 Lines: 26 From: Kaixu Xia Date: Thu, 6 Aug 2015 07:02:31 +0000 > The detail of patches is as follow: > > Patch 1/5 add the necessary core perf APIs perf_event_attrs(), > perf_event_get(),perf_event_read_local() when accessing events > counters in eBPF programs > > Patch 2/5 rewrites part of the bpf_prog_array map code and make it > more generic; > > Patch 3/5 introduces a new bpf map type. This map only stores the > pointer to struct perf_event; > > Patch 4/5 implements function bpf_perf_event_read() that get the > selected hardware PMU conuter; > > Patch 5/5 gives a simple example. Series applied, thanks. -- 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/