[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201006182205.78f436bc@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date: Tue, 6 Oct 2020 18:22:05 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Alexei Starovoitov <alexei.starovoitov@...il.com>
Cc: davem@...emloft.net, daniel@...earbox.net,
john.fastabend@...il.com, netdev@...r.kernel.org,
bpf@...r.kernel.org, kernel-team@...com
Subject: Re: [PATCH bpf-next 3/3] selftests/bpf: Add profiler test
On Tue, 6 Oct 2020 13:09:55 -0700 Alexei Starovoitov wrote:
> +static ino_t get_inode_from_kernfs(struct kernfs_node* node)
nit: my bot suggests this may be missing an "INLINE" since it's a
static function in a header
> +{
> + struct kernfs_node___52* node52 = (void*)node;
> +
> + if (bpf_core_field_exists(node52->id.ino)) {
> + barrier_var(node52);
> + return BPF_CORE_READ(node52, id.ino);
> + } else {
> + barrier_var(node);
> + return (u64)BPF_CORE_READ(node, id);
> + }
> +}
Powered by blists - more mailing lists