提交 e52db245 编写于 作者: A Alexei Starovoitov 提交者: Zheng Zengkai

selftests/bpf: Add CO-RE relocations to verifier scale test.

mainline inclusion
from mainline-5.17-rc1
commit 098dc533
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I5EUVD
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=098dc5335a2083223c80d058ab4d23f6ce120b97

-------------------------------------------------

Add 182 CO-RE relocations to verifier scale test.
Signed-off-by: NAlexei Starovoitov <ast@kernel.org>
Signed-off-by: NAndrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211201181040.23337-18-alexei.starovoitov@gmail.com
(cherry picked from commit 098dc533)
Signed-off-by: NWang Yufen <wangyufen@huawei.com>
上级 f5392908
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
// Copyright (c) 2019 Facebook // Copyright (c) 2019 Facebook
#include <linux/bpf.h> #include "vmlinux.h"
#include <bpf/bpf_helpers.h> #include <bpf/bpf_helpers.h>
#define ATTR __always_inline #define ATTR __always_inline
#include "test_jhash.h" #include "test_jhash.h"
SEC("scale90_inline") SEC("tc")
int balancer_ingress(struct __sk_buff *ctx) int balancer_ingress(struct __sk_buff *ctx)
{ {
void *data_end = (void *)(long)ctx->data_end; void *data_end = (void *)(long)ctx->data_end;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册