Thread (18 messages) 18 messages, 4 authors, 2020-10-08

Re: [PATCH bpf-next 3/3] selftests/bpf: Add profiler test

flat view

From: Jakub Kicinski <kuba@kernel.org>
Date: 2020-10-07 01:22:09
Also in: bpf

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
quoted hunk ↗ jump to hunk
+{
+	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);
+	}
+}
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help