Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3350492rdb; Tue, 6 Feb 2024 15:17:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IFZ2AWAAyniXbQSRNNcG6r06BmGcgZpBzsB0cTmEfryoIyRPsSty0oZXjUTHySRCkKBzYc3 X-Received: by 2002:a05:6871:889:b0:218:f86a:d755 with SMTP id r9-20020a056871088900b00218f86ad755mr4184448oaq.13.1707261459282; Tue, 06 Feb 2024 15:17:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707261459; cv=pass; d=google.com; s=arc-20160816; b=y8CTIZbSrFJ6bpRH4l6ADR8wCX1RAzi5jSwlZ1xvR32JIUFINqnnuwiJA0Mr1edgP7 RcgjhELDB82lUeqPs8CF2Ujec7Om04SUAo43USAHZCKApjpzjloG1dXDRwE9Ve5cJ5Dr q1BM1Am9fCAXrZSeSegkaR1SwWz2uI6mDusryhdalxZrFzUD04OJtrvKXMl8lyjvWruH HHVtiDe9G5IV9OSKUWADoU/mb3S6TqNMq8PvpTdctYb2IxSDE/vQyyO3dYlnHKPF699Q 3eMqH8UaDKldX8k+/3I/W8XzZgdwOGxO29G4ezSNKfiaf0ZPZg2OLoMr968iO0/aIsUJ nasg== 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; bh=WjlIDiKTtVKJkqS2SEHd4mnJGkqh9s6QaQORvmxD80I=; fh=e0CxGJ7AogrmvbWJMTb6+s3GRQu1oYGH0qOP6oRvjp0=; b=WK+DpdJ7OR5Mfjt5RUZ6m+1v7mo8GNwXMLA2/ggLZuW1GWYs+g2K8AmzgzYBocnOVf pX1UnXdzh+8Dakjq6iDJbwMj6mEmNwrHM3ggvTsG3byOEMRs7OoxAWCe1KWZcdS2ZnS7 v3+tZfRkT9cTktB35mBQ1/vIWKKTq9G10k9L2WVVvSqkOatjChcwtxpfiyHv9lG56izO 5LPt3XvTINk2pmRId4Y7uJrQGHamkNpZ1ZKEff9IWzKdf6+6yeKP+IubDs+KVS38oSg6 f+WenBzN1UNy8lBpeFk5zgh7aw60pMKCEKV9K/g9Teat8qLYnUZk+eA1NwNlXG3t+3WL B4bQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-55717-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55717-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCU81gaO0u1Jj+u9rqd6wc1mDX2USEgDRgiDPviPy9TNtg4xQfJx7SI7RSNPyhR3h++s5+3B083s1tTT9TxsSsgtBhiIbGXy6+P4Q5WIjw== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id j11-20020ac85c4b000000b0042bfcde06absi3319541qtj.333.2024.02.06.15.17.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 15:17:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55717-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-55717-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55717-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0BFBA1C23217 for ; Tue, 6 Feb 2024 23:17:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F5C61CABD; Tue, 6 Feb 2024 23:17:30 +0000 (UTC) Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.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 8E2FD1CD1E; Tue, 6 Feb 2024 23:17:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707261449; cv=none; b=RztH+askcj4jTOFnJI/zx9YlW2IpltsmpBhOL6DfvV3zsQAqIGIOLkkGn/k/0E1WE947K315kIXNjRB0oqX9dBwsltNPdWO8dhEvnnXAX7pWmrPFTm7au8NtqR9fMhEekFPqsonr85WNUBPKrUUJmKicVNg3VtlahzGkRdYc5+Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707261449; c=relaxed/simple; bh=4AOVn7dPiifniHPNpKERkiEkEjNlA4Ho18EbBY2UPkU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=ZOWzJT59pgx0lPy5VYjxU+YItlBIk303cu+DD+RSxETAvwNzK/KWeUdYZ9o5pveZyIH0Lu3YCIHk86vjZbz+1vNVuV2pAbxrpYgDJQejid3fTGYwS4sZudngf1JFALrlgsZ/jvwjpxPlH44MprOHQxRmUbOOXF/Ry6pAkHne2Iw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.215.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f176.google.com with SMTP id 41be03b00d2f7-5d4a1e66750so4801918a12.0; Tue, 06 Feb 2024 15:17:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707261448; x=1707866248; 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=WjlIDiKTtVKJkqS2SEHd4mnJGkqh9s6QaQORvmxD80I=; b=jmnK0snrzNzp9P8iylH2KSlSjmRnC8DKaERIx1vBueiCEHFeV/xPV4mUOuZU8zk8/K qyqutcKxMAlX8lNz+z2s7sdPd2iqUWQ+b48Hr/yMZoMrLnIdjUvcbPz4GEncQ1p3srMR FL3pgEXoQGto6ZdMbkB7Dm/lb9zOmRmEaXxHmBC3yf0fWYv865GRnEpdlls1Ri/zUxje 4UstI9tLZzjQkb8jcsL08G/9aAW9qhKtz5ah/faEQVC1uXACbdA9GImyo0hPvFWMe4qu s2lv3LNiFVEf/nZfY8weCBynO0A6Qn6VdQquMo7UIkNFlipn0wRlkownrhrR44Zs4vrn FBCQ== X-Gm-Message-State: AOJu0Yxvm4J040oorkme1FxNSH8Bisi3E9IkcBG3W0ttTvGS7ijzu3k7 IJlQ7d8Vzevfp/uL6sDLvh++/Q4y5oUH2Ah0Skl0pOUAxRyOnpTwRjWDZWKCnX/3wdu7CtB3Fel dTujnVgL5RCIUYnjJeMih0gHniJQ= X-Received: by 2002:a05:6a21:680b:b0:19e:a3de:5786 with SMTP id wr11-20020a056a21680b00b0019ea3de5786mr654501pzb.3.1707261447712; Tue, 06 Feb 2024 15:17:27 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240202220459.527138-1-namhyung@kernel.org> <20240202220459.527138-10-namhyung@kernel.org> In-Reply-To: From: Namhyung Kim Date: Tue, 6 Feb 2024 15:17:16 -0800 Message-ID: Subject: Re: [PATCH 09/14] perf annotate-data: Handle call instructions To: Ian Rogers Cc: Arnaldo Carvalho de Melo , Jiri Olsa , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org, Linus Torvalds , Stephane Eranian , Masami Hiramatsu , linux-toolchains@vger.kernel.org, linux-trace-devel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Feb 2, 2024 at 7:09=E2=80=AFPM Ian Rogers wrot= e: > > On Fri, Feb 2, 2024 at 2:05=E2=80=AFPM Namhyung Kim = wrote: > > > > When updating instruction states, the call instruction should play a > > role since it can change the register states. For simplicity, mark som= e > > registers as scratch registers (should be arch-dependent), and > > invalidate them all after a function call. > > nit: Volatile or caller-save would be a more conventional name than scrat= ch. 'volatile' is a keyword and 'caller_saved' seems somewhat verbose. Maybe 'temporary'? Thanks, Namhyung