From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935194AbdEWDIx (ORCPT ); Mon, 22 May 2017 23:08:53 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:58226 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934080AbdEWDIw (ORCPT ); Mon, 22 May 2017 23:08:52 -0400 Date: Mon, 22 May 2017 23:08:49 -0400 (EDT) Message-Id: <20170522.230849.1056416550811494880.davem@davemloft.net> To: qinteng@fb.com Cc: peterz@infradead.org, bgregg@netflix.com, daniel@iogearbox.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Kernel-team@fb.com, ast@fb.com Subject: Re: [PATCH net-next] bpf: update perf event helper function signature and documentation From: David Miller In-Reply-To: References: X-Mailer: Mew version 6.7 on Emacs 25.2 / 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]); Mon, 22 May 2017 19:27:17 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Teng Qin Date: Tue, 23 May 2017 00:39:34 +0000 > diff --git a/samples/bpf/bpf_helpers.h b/samples/bpf/bpf_helpers.h > index 9a9c95f..a94ce42 100644 > --- a/samples/bpf/bpf_helpers.h > +++ b/samples/bpf/bpf_helpers.h > @@ -37,9 +37,8 @@ static int (*bpf_clone_redirect)(void *ctx, int ifindex, int flags) = > (void *) BPF_FUNC_clone_redirect; > static int (*bpf_redirect)(int ifindex, int flags) = > (void *) BPF_FUNC_redirect; > -static int (*bpf_perf_event_output)(void *ctx, void *map, > - unsigned long long flags, void *data, > - int size) = > +static int (*bpf_perf_event_output)(void *ctx, void *map, u64 flags, > + void *data, int size) = > (void *) BPF_FUNC_perf_event_output; > static int (*bpf_get_stackid)(void *ctx, void *map, int flags) = > (void *) BPF_FUNC_get_stackid; I think we've been intentionally avoiding the use of "u64", "u32", etc. in this file. But what do I know.