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


Groups > linux.kernel > #1647595

Re: [PATCH net-next] bpf: update perf event helper function signature and documentation

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH net-next] bpf: update perf event helper function signature and documentation
Date 2017-05-23 05:10 +0200
Message-ID <tK8mR-5Uk-7@gated-at.bofh.it> (permalink)
References <tK6bn-4ju-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Teng Qin <qinteng@fb.com>
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.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH net-next] bpf: update perf event helper function signature and  documentation Teng Qin <qinteng@fb.com> - 2017-05-23 02:50 +0200
  Re: [PATCH net-next] bpf: update perf event helper function  signature and documentation David Miller <davem@davemloft.net> - 2017-05-23 05:10 +0200
    Re: [PATCH net-next] bpf: update perf event helper function signature  and documentation Teng Qin <qinteng@fb.com> - 2017-05-23 05:20 +0200

csiph-web