Received: by 2002:a05:6520:3645:b029:c0:f950:43e0 with SMTP id l5csp536863lki; Wed, 10 Mar 2021 07:20:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJwrLPjILGRdj1w2VblknLmgEVhLjmC44eeKyb2XdTvrGr8IBmuB4c2JwKfy7Pl8ELxs75Z3 X-Received: by 2002:aa7:d44a:: with SMTP id q10mr3827295edr.278.1615389638013; Wed, 10 Mar 2021 07:20:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615389638; cv=none; d=google.com; s=arc-20160816; b=Crc0QQKapBAzxOcXJF+7iIPlQkKNeyVSqFDD38jUWEp1g/AmN5m0FYRnoWJuOvhB7x 2mClyuNnEBo+JjDZnxLxCTZumsUnvj18T838ctk/REAXtaMTV6la9dF3OwUZPq2H5FnW +r25eyJR7vcetZQWj8RGVEIJ8xkymlQvP9TfSuLDVIEBm/1WN+6Bb+UqPQch7Z58QyJG 6VFCajyfatTc5yndvthlosKDC9mWrgWGDPi1kNHswjT4mtlMyC+0AI5RYnyM946VYmRL +/tvkpTsSlWnf8fXS8rZ1mAh17IYbZC/pUtBqLTIw6MK2RMnT7Q8wAsywhFXL86TpCwC 7gyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Rq5UJuYJLsE7YCiDdsnj66584xVaRjDpwyjDO9KSAjU=; b=VSu/9/PgMwQNFSp9KyHqAgWUcp2DRzH+GTWdo0bgmzzzq3AyrkOA9cw/OXwed9tIpk 8R7ynjPu35i1L3pw1EQxYw8/Qam/sGgXXfME9XZcNI1+jpiqGBfAkUBmuqEyTGVrw7St mP1HUgkVRyye3mGUDbVS1F3oLw2RWsB10iad9OdR7pa45W1e71vdyW+vT8iGgOsObOFa ygTe2BfTb6rDfCKQm1D0gUkul9izRJCNidglBA/SGrp5bC/Ya1EKA0VZqgA0wNDnvznF DVkOnyk7ug3jz92d1p9PQawk8ZYLJEywCws/rpfCK5RVE8q/Cp5e24E2VUhSnDuE8qo4 FUeQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hc39si12461988ejc.125.2021.03.10.07.20.11; Wed, 10 Mar 2021 07:20:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233093AbhCJPTP (ORCPT + 99 others); Wed, 10 Mar 2021 10:19:15 -0500 Received: from elvis.franken.de ([193.175.24.41]:42325 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231150AbhCJPS5 (ORCPT ); Wed, 10 Mar 2021 10:18:57 -0500 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1lK0bw-00088y-05; Wed, 10 Mar 2021 16:18:56 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id 411B9C1D54; Wed, 10 Mar 2021 16:09:41 +0100 (CET) Date: Wed, 10 Mar 2021 16:09:41 +0100 From: Thomas Bogendoerfer To: Tiezhu Yang Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li Subject: Re: [PATCH] MIPS: Enable some missed configs in loongson3_defconfig to support bpftrace Message-ID: <20210310150941.GF12960@alpha.franken.de> References: <1615186098-2643-1-git-send-email-yangtiezhu@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1615186098-2643-1-git-send-email-yangtiezhu@loongson.cn> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 08, 2021 at 02:48:18PM +0800, Tiezhu Yang wrote: > bpftrace is a high-level tracing language for Linux enhanced Berkeley > Packet Filter (eBPF) available in recent Linux kernels (4.x). bpftrace > uses LLVM as a backend to compile scripts to BPF-bytecode and makes use > of BCC for interacting with the Linux BPF system, as well as existing > Linux tracing capabilities: kernel dynamic tracing (kprobes), user-level > dynamic tracing (uprobes), and tracepoints. > > According to Linux Kernel Requirements in bpftrace/INSTALL.md [1], the > kernel needs to be built with the following options: > > CONFIG_BPF=y > CONFIG_BPF_SYSCALL=y > CONFIG_BPF_JIT=y > CONFIG_HAVE_EBPF_JIT=y > CONFIG_BPF_EVENTS=y > CONFIG_FTRACE_SYSCALLS=y > CONFIG_FUNCTION_TRACER=y > CONFIG_HAVE_DYNAMIC_FTRACE=y > CONFIG_DYNAMIC_FTRACE=y > CONFIG_HAVE_KPROBES=y > CONFIG_KPROBES=y > CONFIG_KPROBE_EVENTS=y > CONFIG_ARCH_SUPPORTS_UPROBES=y > CONFIG_UPROBES=y > CONFIG_UPROBE_EVENTS=y > CONFIG_DEBUG_FS=y > > So enable some missed configs in loongson3_defconfig to make sure > the above configs are set after make loongson3_defconfig. > > [1] https://github.com/iovisor/bpftrace/blob/master/INSTALL.md > > Signed-off-by: Tiezhu Yang > --- > arch/mips/configs/loongson3_defconfig | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]