Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp284252lqs; Thu, 13 Jun 2024 09:55:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWq8wXmT/u2zPhnuoONpceev+4WWhZN4C8w594RIRIORTNj5GH1anNT9aD9H9X2Zt5MIcPv3sNkoj4MZCLplUEFpyAcSAGM7kD4k5T4Ig== X-Google-Smtp-Source: AGHT+IEHskIslPbkQlbKjb6GWbmJcmXyjtRTrWVpLEW4lWcUXZGuDV9t8ufTNWNk15fIpzim+iqx X-Received: by 2002:a17:906:3ec4:b0:a6f:48b2:aac5 with SMTP id a640c23a62f3a-a6f60cf44efmr22668266b.15.1718297742146; Thu, 13 Jun 2024 09:55:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718297742; cv=pass; d=google.com; s=arc-20160816; b=SjqXycKaPSeY7O8ZuzfiO/B9R2bGX6dP+nJQMppYIJRqHYvtPAbhWkGOoPYLFkHy38 UafUfvar9v/R2w1rg2hvhj2OpvoDMo0nMGrNbHkZMyOZSJ0FhvtPzD6n9yW2aZ9Qdq34 8DGic7Exb0q9y9+hwx81Exgh+9RRXj0lw5ybTq3SfwjLPgtZQHFAa7FdiQGTTtalkXHa 2y/o/htguboiJ3wbuCKHkYDoq00c7raBg8UPDrMMhaeCY5I/3BpHuPfoXAZJpRzvpQJY OCVaGOqXB9DFHClfOBircCSmWdEA/ktI8Q4l+yTcPBcV7nXv4Bl8PsdzBi8o6+EevP/q A4iw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=gWJSlhXJZjDMSCMnTQA00bSbjWncOwR7ylrZc7+pEaA=; fh=YUm1sU7a0IBqkkBzmFV8TYKRv/Krm/bPE7O1PMuLOnI=; b=lBFLF7mWTvPky/ntEsDk4Ct2DHioEHRB+0/6fq/5Udiir8wJRneYqyeNdWRUDPmsKt CnB5o/M1TkAgYersSTt5i0OYIoMD3bJ+9d4q895xfiEjI2JDa3uT7syO/jwBRzXLzH+v h0+srQW2Tn0UtjkJ/aCaJqUt7GC7YMRuaf6weafjUmTNx1zbSUNlCszZS0MurNCAAez1 jY01bq1MaWNaaT1Qzc8xrn1iTaOoG4HGMf3yVT9A1lyalvLgyLG114+8y6w+AtH2GJTZ y4ZYSLWD24T9ndAmvcjmDgVH3siu8guMPYM6e+UjUDKk/CVam5aJN6ASr2mKGEZ4T9Iy wblA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=a+7sFHAQ; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-213696-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213696-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56e820b2si88038566b.1017.2024.06.13.09.55.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 09:55:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213696-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=a+7sFHAQ; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-213696-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213696-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id DA58E1F24360 for ; Thu, 13 Jun 2024 16:55:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4FF1E146A7B; Thu, 13 Jun 2024 16:55:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="a+7sFHAQ" Received: from mail-il1-f176.google.com (mail-il1-f176.google.com [209.85.166.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0511613EFE3 for ; Thu, 13 Jun 2024 16:55:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718297731; cv=none; b=mbnnV/f5DpWpGSwonxRYR1QRS+o0ElC2ff5JP0RSHaPXib1HpL/KK805IMK0diHcw/1cbEOU3Lyd5ZH66iCCc4Yd7f4c6m4x43BzN6D1Zu9gjAGz2tqE4D6El1bao5v85XovEvJTpDuHUi/mvgjD5WavOkRr0k3VSpzi6cjQUXc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718297731; c=relaxed/simple; bh=gWJSlhXJZjDMSCMnTQA00bSbjWncOwR7ylrZc7+pEaA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=onMNqx6FeAMjpYjfK6CP6AooNnfugmpGoXlHk8wzP3BNtjL3ap/SE7PjMcrNscTLbphYjx3pStaT0Ff4k4CsOwG3qGYeCklKkFIh4thAXdrU/6GMUDAiihr0cs38gqVQF4O3B50xCIRht841nn+AUWHcktkd8E4oZ+kFM0kCNBk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=a+7sFHAQ; arc=none smtp.client-ip=209.85.166.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-il1-f176.google.com with SMTP id e9e14a558f8ab-375acf90c58so1195ab.0 for ; Thu, 13 Jun 2024 09:55:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1718297729; x=1718902529; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=gWJSlhXJZjDMSCMnTQA00bSbjWncOwR7ylrZc7+pEaA=; b=a+7sFHAQC6BxlkC/FLvXzSfHGQWV9f3dO45WncwWzrqJ8Wt82v+YWXTAaTou56zTey NAf4jxOWxKvEDuWZUtEdUusU8iut/VTxTgtnc5rLZXfjt2fFs7+kxyVumjfmgi2PzVKq +lWcpZI0elX8sWgH16QEUv6x0MZFQJ4G5NOIDmQj5EbkSgCnFXA4RBKB8NaxeDxNnzMG OTaYompsV+5MeXQIH58S1PUSdlhHYuPUoqtYgOBLztN2NFydHaaf0XddiAiy21tg27DG YFq0xQSfdjAMGzmZTlMByVssT/+HLjTqzz4aEYv+ZJxlxJZCOv66Gc/+I4Yh7CZIYytg PsNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718297729; x=1718902529; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gWJSlhXJZjDMSCMnTQA00bSbjWncOwR7ylrZc7+pEaA=; b=HMPpBfSaB6+1Ofl6GtAY4kscSqe8GTvx74pHCWOX/snUo7UlaSYXG1/vPui744uRjf 1YKISFfkRcPZTiADlnvO3MwIHqEBjNVwxVFFB9MckvFQAyCsT1Ba6Z2CNNO4Bp5nJd6c aWLZbYlizOWTUDXq9Qdwww5u2kXN6r0RX3pusXDoSQ7aUxzBLE9eNRDFYStt95D6dJaK M90VAI32D6J3co26/AOvmQHXD+kVo1IkxP9Q7MaEl6f0s7FcMhTA9ufaPRqCzwEl2eCT T6l8iZhHaE3lLXa61ZeD601Njty6P/QTKtDD4RIK6iBQwC7mjC1/X0WUZuEPeeZX0GtW AShQ== X-Forwarded-Encrypted: i=1; AJvYcCWmddHoWN4VwZT+f+QWEsYCzmuo3rwqcmcyeDT6FOj0cK49pJwk++YMzVUad4HyErEWj1qodmX3L3osAOZD6LOoRAn2QJiBCdzYhUG9 X-Gm-Message-State: AOJu0YxCplSndvuAFhCxJrUsNuf7VjDtX90ENmhUuJwuuwOTYZEXbjTf TThs+Gnb5m8Vo3MM2B/ABERmNz++4liIXRxsbR5wxysS0kLtOE1iuOlPBwakq72roZLDRpROsln +sAm0ezYXAbASD07vd/VfcZNoKagUj0R0F1dD X-Received: by 2002:a05:6e02:2689:b0:375:bb49:930d with SMTP id e9e14a558f8ab-375d73f700fmr2575015ab.23.1718297729092; Thu, 13 Jun 2024 09:55:29 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240612183205.3120248-1-irogers@google.com> <9814866a-8f9d-4d82-ad2d-4b36203aa196@arm.com> In-Reply-To: <9814866a-8f9d-4d82-ad2d-4b36203aa196@arm.com> From: Ian Rogers Date: Thu, 13 Jun 2024 09:55:17 -0700 Message-ID: Subject: Re: [PATCH v1 0/7] Refactor perf python module build To: James Clark Cc: Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Kan Liang , John Garry , Will Deacon , Mike Leach , Leo Yan , Guo Ren , Paul Walmsley , Palmer Dabbelt , Albert Ou , Suzuki K Poulose , Yicong Yang , Jonathan Cameron , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Nick Terrell , Ravi Bangoria , Kees Cook , Andrei Vagin , Athira Jajeev , Oliver Upton , Ze Gao , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-riscv@lists.infradead.org, coresight@lists.linaro.org, rust-for-linux@vger.kernel.org, bpf@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jun 13, 2024 at 8:10=E2=80=AFAM James Clark w= rote: [...] > >> Reviewed-by: James Clark > >> > >> It does require a clean build to avoid some -fPIC errors presumably > >> because not everything that requires it gets rebuilt, for anyone who > >> gets stuck on that. > > > > We need to find a way to avoid requiring the 'make clean' :-/ > > > > - Arnaldo > > > > Do we need to make it so that if any of the Makefiles are touched it > does a clean? I'm assuming that was the cause of the issue I experienced > here and that the Makefile and/or Build files aren't mentioned as > dependencies of any target. Perhaps we can do something with the FEATURE_DUMP. It'd be nice to detect build argument changes and rebuild when that occurs. I'm used to doing lots of `make clean` due to sanitizer builds, something we should probably capture through features and/or `perf version --build-options`. Anyway, out-of-scope for these patches. I need to cut a v2 due to failing to add the new `.a` files to the clean ta= rget. Thanks for the review, Ian