From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sandipan Das Subject: [PATCH bpf v2 0/6] bpf: enhancements for multi-function programs Date: Fri, 18 May 2018 18:20:33 +0530 Message-ID: <20180518125039.6500-1-sandipan@linux.vnet.ibm.com> Cc: netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, naveen.n.rao@linux.vnet.ibm.com, mpe@ellerman.id.au, jakub.kicinski@netronome.com To: ast@kernel.org, daniel@iogearbox.net Return-path: Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:33754 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751112AbeERMut (ORCPT ); Fri, 18 May 2018 08:50:49 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w4IChr9r134244 for ; Fri, 18 May 2018 08:50:48 -0400 Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by mx0a-001b2d01.pphosted.com with ESMTP id 2j1uw50r65-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 18 May 2018 08:50:48 -0400 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 18 May 2018 13:50:46 +0100 Sender: netdev-owner@vger.kernel.org List-ID: This patch series introduces the following: [1] Support for bpf-to-bpf function calls in the powerpc64 JIT compiler. [2] Provide a way for resolving function calls because of the way JITed images are allocated in powerpc64. [3] Fix to get JITed instruction dumps for multi-function programs from the bpf system call. v2: - Incorporate review comments from Jakub Sandipan Das (6): bpf: support 64-bit offsets for bpf function calls bpf: powerpc64: add JIT support for multi-function programs bpf: get kernel symbol addresses via syscall tools: bpf: sync bpf uapi header tools: bpftool: resolve calls without using imm field bpf: fix JITed dump for multi-function programs via syscall arch/powerpc/net/bpf_jit_comp64.c | 79 ++++++++++++++++++++++++++++++++++----- include/uapi/linux/bpf.h | 2 + kernel/bpf/syscall.c | 56 ++++++++++++++++++++++++--- kernel/bpf/verifier.c | 22 +++++++---- tools/bpf/bpftool/prog.c | 29 ++++++++++++++ tools/bpf/bpftool/xlated_dumper.c | 10 ++++- tools/bpf/bpftool/xlated_dumper.h | 2 + tools/include/uapi/linux/bpf.h | 2 + 8 files changed, 179 insertions(+), 23 deletions(-) -- 2.14.3