From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 40r2P54Wk7zDqL4 for ; Wed, 23 May 2018 03:16:25 +1000 (AEST) Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w4MHF94o085129 for ; Tue, 22 May 2018 13:16:21 -0400 Received: from e06smtp14.uk.ibm.com (e06smtp14.uk.ibm.com [195.75.94.110]) by mx0a-001b2d01.pphosted.com with ESMTP id 2j4p4gmhum-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 22 May 2018 13:16:21 -0400 Received: from localhost by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 22 May 2018 18:16:19 +0100 From: Sandipan Das To: ast@kernel.org, daniel@iogearbox.net Cc: netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, mpe@ellerman.id.au, naveen.n.rao@linux.vnet.ibm.com, jakub.kicinski@netronome.com Subject: [PATCH bpf-next v3 00/10] bpf: enhancements for multi-function programs Date: Tue, 22 May 2018 22:46:03 +0530 Message-Id: List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , v3: - Change base tree tag to bpf-next. - Incorporate review comments from Alexei, Daniel and Jakub. - Make sure that the JITed image does not grow or shrink after the last pass due to the way the instruction sequence used to load a callee's address maybe optimized. - Make additional changes to the bpf system call and bpftool to make multi-function JITed dumps easier to correlate. v2: - Incorporate review comments from Jakub. Sandipan Das (10): bpf: support 64-bit offsets for bpf function calls bpf: powerpc64: pad function address loads with NOPs 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 multi-function JITed dump obtained via syscall bpf: get JITed image lengths of functions via syscall tools: bpf: sync bpf uapi header tools: bpftool: add delimiters to multi-function JITed dumps arch/powerpc/net/bpf_jit_comp64.c | 110 ++++++++++++++++++++++++++++++-------- include/uapi/linux/bpf.h | 4 ++ kernel/bpf/syscall.c | 81 ++++++++++++++++++++++++++-- kernel/bpf/verifier.c | 22 +++++--- tools/bpf/bpftool/prog.c | 75 +++++++++++++++++++++++++- tools/bpf/bpftool/xlated_dumper.c | 14 +++-- tools/bpf/bpftool/xlated_dumper.h | 3 ++ tools/include/uapi/linux/bpf.h | 4 ++ 8 files changed, 278 insertions(+), 35 deletions(-) -- 2.14.3