Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754682AbbG3Bpj (ORCPT ); Wed, 29 Jul 2015 21:45:39 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:34109 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752483AbbG3Bpi (ORCPT ); Wed, 29 Jul 2015 21:45:38 -0400 Subject: Re: [PATCH v4 2/4] bpf: Add new bpf map type to store the pointer to struct perf_event To: Daniel Borkmann , Kaixu Xia , davem@davemloft.net, acme@kernel.org, mingo@redhat.com, a.p.zijlstra@chello.nl, masami.hiramatsu.pt@hitachi.com, jolsa@kernel.org References: <1438082255-60683-1-git-send-email-xiakaixu@huawei.com> <1438082255-60683-3-git-send-email-xiakaixu@huawei.com> <55B96209.9070406@iogearbox.net> Cc: wangnan0@huawei.com, linux-kernel@vger.kernel.org, pi3orama@163.com, hekuang@huawei.com From: Alexei Starovoitov Message-ID: <55B981BF.3090305@plumgrid.com> Date: Wed, 29 Jul 2015 18:45:35 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <55B96209.9070406@iogearbox.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 506 Lines: 12 On 7/29/15 4:30 PM, Daniel Borkmann wrote: > + if (map && map->map_type == BPF_MAP_TYPE_PERF_EVENT_ARRAY && > + func_id != BPF_FUNC_perf_event_read) this part belongs in patch 3, since patch 2 won't compile as-is. Please keep bi-sectability intact. -- 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/