From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D5127C33CAD for ; Mon, 13 Jan 2020 12:37:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A15D72081E for ; Mon, 13 Jan 2020 12:37:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="e3MhX1G0" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726435AbgAMMhk (ORCPT ); Mon, 13 Jan 2020 07:37:40 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:41243 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726074AbgAMMhj (ORCPT ); Mon, 13 Jan 2020 07:37:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1578919058; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zPc0nhNotVAJC0F3RNpLz0PpmAUiDRCJKvm5aCqEAik=; b=e3MhX1G0jr/BjiujJuNmayg3mwab+twMZnwjso7P0bn9Lmlk0rUBbKqFKEWFo9ywFU2Xw7 AotIQjC9BnTZBPw3T5fnLTi/0ZaczxNGD6S+iAepJs4+VjyMPq3KUTgeQxJ479eNbe8Rz9 Z+LNXBmL3Ig2jrGz6TWJhRfPCRL5L1o= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-306-OyERcqybNTy89wxQ8IQ6eQ-1; Mon, 13 Jan 2020 07:37:35 -0500 X-MC-Unique: OyERcqybNTy89wxQ8IQ6eQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2F650477; Mon, 13 Jan 2020 12:37:33 +0000 (UTC) Received: from krava (unknown [10.43.17.48]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B6AEB5C241; Mon, 13 Jan 2020 12:37:30 +0000 (UTC) Date: Mon, 13 Jan 2020 13:37:28 +0100 From: Jiri Olsa To: =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= Cc: Alexei Starovoitov , Jiri Olsa , Alexei Starovoitov , Daniel Borkmann , netdev@vger.kernel.org, bpf@vger.kernel.org, Andrii Nakryiko , Yonghong Song , Martin KaFai Lau , Jakub Kicinski , David Miller Subject: Re: [PATCH 5/5] bpf: Allow to resolve bpf trampoline in unwind Message-ID: <20200113123728.GA120834@krava> References: <20191229143740.29143-1-jolsa@kernel.org> <20191229143740.29143-6-jolsa@kernel.org> <20200106234639.fo2ctgkb5vumayyl@ast-mbp> <20200107130546.GI290055@krava> <76a10338-391a-ffca-9af8-f407265d146a@intel.com> <20200113094310.GE35080@krava> <9da1c8f9-7ca5-e10b-8931-6871fdbffb23@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <9da1c8f9-7ca5-e10b-8931-6871fdbffb23@intel.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Content-Transfer-Encoding: quoted-printable Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Mon, Jan 13, 2020 at 01:31:38PM +0100, Bj=F6rn T=F6pel wrote: > On 2020-01-13 13:21, Bj=F6rn T=F6pel wrote: > >=20 > > On 2020-01-13 10:43, Jiri Olsa wrote: > > > hi, > > > attached patch seems to work for me (trampoline usecase), but I > > > don't know > > > how to test it for dispatcher.. also I need to check if we need to > > > decrease > > > BPF_TRAMP_MAX or BPF_DISPATCHER_MAX, it might take more time;-) > > >=20 > >=20 > > Thanks for working on it! I'll take the patch for a spin. > >=20 > > To test the dispatcher, just run XDP! > >=20 > > With your change, the BPF_DISPATCHER_MAX is still valid. 48 entries =3D= > > > 1890B which is < (BPF_IMAGE_SIZE / 2). great > >=20 >=20 > ...and FWIW, it would be nice with bpf_dispatcher_<...> entries in kall= syms ok so it'd be 'bpf_dispatcher_' from DEFINE_BPF_DISPATCHER(name) > as well. If that code could be shared with the trampoline code as well > (bpf_trampoline_), that'd be great! >=20 ok, will add it thanks, jirka