From: Martin KaFai Lau Subject: [PATCH bpf-next 0/4] Misc improvements on bpf_func_info Date: Wed, 5 Dec 2018 17:35:43 -0800 Message-ID: <20181206013543.2803263-1-kafai@fb.com> Mime-Version: 1.0 Content-Type: text/plain Cc: , Yonghong Song To: Return-path: Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:41754 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728723AbeLFBgF (ORCPT ); Wed, 5 Dec 2018 20:36:05 -0500 Received: from pps.filterd (m0109334.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id wB61Wtm0024230 for ; Wed, 5 Dec 2018 17:36:05 -0800 Received: from mail.thefacebook.com ([199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2p6sy7r1me-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Wed, 05 Dec 2018 17:36:04 -0800 Sender: netdev-owner@vger.kernel.org List-ID: The patchset has a few improvements on bpf_func_info: 1. Improvements on the behaviors of info.func_info, info.func_info_cnt and info.func_info_rec_size. 2. Name change: s/insn_offset/insn_off/ Please see individual patch for details. Martin KaFai Lau (4): bpf: Improve the info.func_info and info.func_info_rec_size behavior bpf: Change insn_offset to insn_off in bpf_func_info bpf: tools: Sync uapi bpf.h for the name changes in bpf_func_info bpf: Expect !info.func_info and insn_off name changes in test_btf/libbpf/bpftool include/uapi/linux/bpf.h | 2 +- kernel/bpf/core.c | 2 +- kernel/bpf/syscall.c | 46 +++++++++++--------------- kernel/bpf/verifier.c | 18 +++++----- tools/bpf/bpftool/prog.c | 7 ++++ tools/bpf/bpftool/xlated_dumper.c | 4 +-- tools/include/uapi/linux/bpf.h | 2 +- tools/lib/bpf/btf.c | 12 +++---- tools/testing/selftests/bpf/test_btf.c | 8 ++++- 9 files changed, 54 insertions(+), 47 deletions(-) -- 2.17.1