Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2550511imn; Tue, 2 Aug 2022 07:14:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR6J+/29sJk9WqhghBo1jS0/4UgraMjEZBoR8CtrmtaF/8Ow8iPLi0jBPSHez7TBEFqgYStZ X-Received: by 2002:ac5:cb4e:0:b0:377:3c31:9d93 with SMTP id s14-20020ac5cb4e000000b003773c319d93mr5479895vkl.0.1659449698355; Tue, 02 Aug 2022 07:14:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659449698; cv=none; d=google.com; s=arc-20160816; b=kicSJChKjYyStBqR+AowJHJthQFLiv/9IF/9Qx9wqRtsmbBpFBRLc1xDuwr6W6g07P GFik26leE7In0yWdHrrkLtcQLGupt4++ZvFLKd9MJITIA1+ckvKTH+iL+KfmctXTZvea vIyhZrHKpvBf++Ia6gB5T4Uz3E5aHLt0YQQqpNb8wNrdX/KDHf9cqhPhv3FYKn9rOhjP 5JXIFU1fED1c01kbK4H5Hko584tIEuLhaSF0ZL7/cO17aZ8/NdqcI7CDvj2cJUYwzGjm rUUhaVM2ELPwxk8uANxjvp1ubXWWmXFUQKaR/sZUqcjAJvJTHZsR+F+tUutKP0iQExw+ jMTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LUHv4x5a6YZb94507hyxXVCHu0MZW82loqntFPHXbN4=; b=uiC8a6pgbWeOWyM6jXUwl5UaH9ZcrMVLrnxeM9n9FmM8WKb0FFbDKSZHVYYJpV7sWt 3U+Ii4zYMKlhRlfv+W0yKVVh79R9KMix1JWEg+lq/sFn5bTPXVBCuH6++iLPmnMMTyPw hcNCT3MEQVvWZnGSPxAI1PQK8ihHvx3Tev8nkqaO/jy0GtuUhD483UhoaJcg7S1bG/Nh 8zjBk4vEh9Gtu64S1hrFJq4xXovwNLU05HuxLHXGbpbklXbU7glSUurlo8XhtWmU/dZv GAal1mMd/jlWHYUbeo2AFR+e57itc4DE3sm7WC+C4knH+JRGsNnDK3xEZIRrKU5uSo8n ytxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fVs70xwm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r12-20020a67a64c000000b0037b79b563e4si1189888vsh.620.2022.08.02.07.14.43; Tue, 02 Aug 2022 07:14:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fVs70xwm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236972AbiHBOBm (ORCPT + 99 others); Tue, 2 Aug 2022 10:01:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234666AbiHBOBl (ORCPT ); Tue, 2 Aug 2022 10:01:41 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2933E1C107 for ; Tue, 2 Aug 2022 07:01:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1659448899; 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: in-reply-to:in-reply-to:references:references; bh=LUHv4x5a6YZb94507hyxXVCHu0MZW82loqntFPHXbN4=; b=fVs70xwm7BrXW8HK86cSkURsaHKNgGZArxJ62vlV3yt42F/GeqVWasICwr3bQmFNm6eeJE cnFXLGvVzIi1gGz/WKiel8MaMmnpfsg7B1PTtWN2uP5ncPxNl5zoFbjX5JVeeGVmSCrXj/ w7U3zNJ8G9049SxhoN331cSNEL1RdJ8= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-213-LPxgT18nOR-lsh_asIxZIw-1; Tue, 02 Aug 2022 10:01:35 -0400 X-MC-Unique: LPxgT18nOR-lsh_asIxZIw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id DE4841C0512A; Tue, 2 Aug 2022 14:01:34 +0000 (UTC) Received: from sparkplug.usersys.redhat.com (unknown [10.40.192.7]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BD895141510F; Tue, 2 Aug 2022 14:01:32 +0000 (UTC) Date: Tue, 2 Aug 2022 16:01:30 +0200 From: Artem Savkov To: Jiri Olsa Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , bpf@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andrea Arcangeli , Daniel Vacek , Song Liu , Daniel Xu Subject: Re: [PATCH bpf-next v2 2/3] bpf: export crash_kexec() as destructive kfunc Message-ID: References: <20220802091030.3742334-1-asavkov@redhat.com> <20220802091030.3742334-3-asavkov@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 02, 2022 at 12:46:42PM +0200, Jiri Olsa wrote: > On Tue, Aug 02, 2022 at 11:10:29AM +0200, Artem Savkov wrote: > > +static int __init crash_kfunc_init(void) > > +{ > > + register_btf_kfunc_id_set(BPF_PROG_TYPE_TRACING, &kexec_kfunc_set); > > + return 0; > > should we do 'return register_btf_kfunc_id_set(...' in here? Maybe, but as far as I can tell the return value for init calls does absolutely nothing except for showing up in a debug message. So I don't think it will be worth a respin, but if there is one anyway I'll change this. -- Artem