Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp869047rdg; Fri, 13 Oct 2023 03:52:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGvFrWSyGjEhuiZBbq3NmTwu4zFAcrTraQd43dDQzeMEU8FfT3eFMr11cwEzO99O94AEmin X-Received: by 2002:a9d:75da:0:b0:6bd:d14:147a with SMTP id c26-20020a9d75da000000b006bd0d14147amr30512946otl.21.1697194354750; Fri, 13 Oct 2023 03:52:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697194354; cv=none; d=google.com; s=arc-20160816; b=CPPufUHY6cZmqtqQ+PtcuwOifTdST4PhAiYByEIPm4TPHLnTmHgdb3Y1Nm0S+gyrtv 2he6V1XKvis+e04fvZPwJHQaeBH5gV1xO3tTR+kjRo2DwEHqO2XnR2Pkb/UEUUczzwUM nz3PSrZfeZHXL8zAthTktHShoMz+rDgL720I+HehUrRwZoX0pc47rpiu/nlPw4OWyEQy akES0PDLQp1Fxs8slPEscYRMmvPiYksXGd91NaMEPo9It3PhZRSasQlNc2l+AtNZKrat SYgVI8BP/nqfyV4ozQzBWHHCSYcbwPtjtLB46sFZ9WGQNxF2WG02JRkjtmQqEFkW+4Oo kH7w== 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:sender:dkim-signature; bh=wQlLAZN0159rZz2dBKBST54MAz5ZF7KDyTuMyKf/LPQ=; fh=GOrnRLoXLHVXt5EM/3gEWpQiZbbNKycrGICa9eJXhj8=; b=a2Mwy3e+2xZlWOt35cNOY8ijqnP2j3xgGmqXKPDZ6lEvYRWmz/b9fCaFQvR0Prallw Mqj9FGGiCCco9vs0Xz2PF6GzoYO9oLzEQGWKTzm/CLFuxbvZRMe73D/ZZpNx0VWE9ANc a0YoSAWului3mLxc2whZdqw1PVGGod6cbBrp9jXLfUUY5bb7ydCQ62wtkLewqheVtGYp Ss8OpwGOGVccDrimFl7poUnFN/mqIEIBH6hNm6f1nbjaebGrOhxatEnUsyWJxV5pEr02 YuaC5kSLLpAkwZSL4LVZWUuha9kdJgPFVyx9Dbq+9Ea1d1iHB3NYqfqprgZJvTvsrhpo SWkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bDXxbNv0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id cl4-20020a056a0032c400b0068a5877bfaesi16490996pfb.382.2023.10.13.03.52.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 03:52:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bDXxbNv0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 005B682E1595; Fri, 13 Oct 2023 03:52:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230349AbjJMKwQ (ORCPT + 99 others); Fri, 13 Oct 2023 06:52:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230079AbjJMKwP (ORCPT ); Fri, 13 Oct 2023 06:52:15 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 234DC83 for ; Fri, 13 Oct 2023 03:52:12 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-4064876e8b8so22666395e9.0 for ; Fri, 13 Oct 2023 03:52:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697194330; x=1697799130; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=wQlLAZN0159rZz2dBKBST54MAz5ZF7KDyTuMyKf/LPQ=; b=bDXxbNv0xJvQY6z9JXwmZ8jIn2ZJikRLKYSj+9AiInQokleP9LqS1oI3NLerDaO6Zr jOVWFvu8o6pd2RtENXzgkbGpJ0GS5099Gu5aU1VXP9eqIyeT8b1DofwYaXqePXbuj96R zKu8taNIPRhv/1GKkVZSrI4ze0zoR5S/DGvBOx0ieWBSoOIIsQO7yF/lwqoN0gtACT6N clO7iCjanja0uMbhhcPqv2PGINq8JrnQaZekduce2T2KlwdgpWAU0i0ivjRpUTeoiQLY sa2hb4A4qJVsKyJyjqFuxMjOwzgUdQ0cnM84NdwxC9PcC6B5KQAo+um15MMFW6+OpVBm u3YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697194330; x=1697799130; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wQlLAZN0159rZz2dBKBST54MAz5ZF7KDyTuMyKf/LPQ=; b=HW/cMhrZxg5rSyauZpm6oZE00xLKsDCp+9HwF67ZeoiFSRe6OPq9nz80tW04a0B7X2 5BY0whPa6KkLX81mWvFcH1n8mEOd1An+oNKa4F2cpjKG7y+9alThGSsnrxvA9NfgEoi2 Fs474jxprkxi5EQXBLLeQDS6MvM2iXZLoH+g6aj5+ppxL06LIQCJ0lpmxwN3Z4q1cvU+ 6/RF80YUUnKNf0lZAQFCCcmwEKumtpHDKd+DGGmA18/Dxk8NPz7I3WEKgIETKMFH8gwa M5b4aVNUkjAtBbx9Z2ltBidFrmNBiuP+N2DOlVCemzs2Q4uWKabCjuI79Vk8lwl+LFJ8 Lmyw== X-Gm-Message-State: AOJu0YwcVCJvRtl7SVCvx0NBWI9T6oDtv2ymQFwywvmCls3HCKV3LtiR mwRQ88MWL8Cuz3qBx2lyulAniPA0Bkw= X-Received: by 2002:a7b:ce98:0:b0:3fc:dd9:91fd with SMTP id q24-20020a7bce98000000b003fc0dd991fdmr22678767wmj.40.1697194330349; Fri, 13 Oct 2023 03:52:10 -0700 (PDT) Received: from gmail.com (1F2EF405.nat.pool.telekom.hu. [31.46.244.5]) by smtp.gmail.com with ESMTPSA id t4-20020a0560001a4400b0032763287473sm20811007wry.75.2023.10.13.03.52.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 03:52:09 -0700 (PDT) Sender: Ingo Molnar Date: Fri, 13 Oct 2023 12:52:07 +0200 From: Ingo Molnar To: Josh Poimboeuf Cc: "H. Peter Anvin" , Linus Torvalds , Uros Bizjak , x86@kernel.org, linux-kernel@vger.kernel.org, Nadav Amit , Andy Lutomirski , Brian Gerst , Denys Vlasenko , Peter Zijlstra , Thomas Gleixner , Josh Poimboeuf Subject: Re: [PATCH v2 -tip] x86/percpu: Use C for arch_raw_cpu_ptr() Message-ID: References: <9b71932a-d410-4b92-b605-d6acc5d35069@zytor.com> <20231012013507.jrqnm35p7az6atov@treble> <20231012160801.blc2t37gfqhlah5h@treble> <20231012213038.pnq6eds53dbqxstj@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231012213038.pnq6eds53dbqxstj@treble> X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 13 Oct 2023 03:52:32 -0700 (PDT) * Josh Poimboeuf wrote: > Right now my preference would be to leave the existing interface as-is, > and then graft optional subcommands on top. If no subcommand is > specified then it would default to the "run" subcommand. It's a little > funky, but it would work well for the common case, where ~99% of the > functionality lives. And it doesn't break existing setups and > backports. > > For example: > > # current interface (no changes) > objtool --mcount --orc --retpoline --uaccess vmlinux.o > > # same, with optional explicit "run" subcommand > objtool run --mcount --orc --retpoline --uaccess vmlinux.o > > # new "size" subcommand > obtool size [options] vmlinux.o.before vmlinux.o.after Yeah, sounds good! Thanks, Ingo