Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp19706rdh; Tue, 6 Feb 2024 17:29:56 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWYvn9uhi82r/ntOgHC+h+6+KHs6SNGbx+MESPrsgNuE9aCSnIyCFDjrBvjBdH+kA6zH3wVInmN5gY4HEm/JMCT1/vgHe0Te4tNx1jv3g== X-Google-Smtp-Source: AGHT+IGNWL1xZejk1W417HgNdqr+0TXKF/RlOugW0K2swmg7KaOS3lena/QuM/rdduzOquuTpCsa X-Received: by 2002:a05:622a:19a7:b0:42b:e19c:4091 with SMTP id u39-20020a05622a19a700b0042be19c4091mr5574646qtc.40.1707269396581; Tue, 06 Feb 2024 17:29:56 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWhO4ygqNz0+Ke5Xy/aXuiadQjlCpYo1BG3rlxD3KNIy7O+nG0OlavzBv407LNLR3ftD0bapaGtjiinQQTzsUnapFzbgTQbyhASBSIh0A== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id n17-20020ac85a11000000b0042c3a23144esi173162qta.626.2024.02.06.17.29.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 17:29:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55798-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=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-55798-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55798-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 57B291C24852 for ; Wed, 7 Feb 2024 01:29:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6699CCA64; Wed, 7 Feb 2024 01:29:48 +0000 (UTC) Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (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 7D8ACD267; Wed, 7 Feb 2024 01:29:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707269387; cv=none; b=Pxa3QkEAqjAQnQaAhHw0aw77elhCSE71h7A77Kywp/1fgTby7H4zV4yzbDl0LS39LvoFjXFkCUh3D3c+GeeMt2RWbcUaRUbeYeFxXbrx5jzjyBw3MkoXIVLtF62UszCLz7vvPJCN8C+9EgDcbaZYGNzHmD2rMi3UhUxt/k7CxBg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707269387; c=relaxed/simple; bh=7LavG8jMyccXWVp7cRBsy8BANS/3CgKOHLGHFdtQqyg=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=E4R0+bkg9stNPSaIrGgpK0QXMRYUc8rt0djZOzB30/njFQ4CCIT85oiRt4kqWH2x6bXBoaM1qQrNVJI4MgiWHiSWRjwGZdlIQHOIsf32pClaK9tREYijLUzynqVhdfZE/zOpffA13By1tStUKx6OfNIynLu8M3cEmCzOQ1MlHNM= 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.210.175 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-pf1-f175.google.com with SMTP id d2e1a72fcca58-6e067ececb1so77172b3a.3; Tue, 06 Feb 2024 17:29:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707269385; x=1707874185; 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=39tNX3eQwjL3Nw/bzUuXe+Kw6+iYW52FocBtDdukHNk=; b=FzYOfk54FGZWT3JD3xaouHRvfSQfvT8mOr2B4Bi84aQuLHXs57I/tk4YCEgoJwXuFN QLWc7II6ez/BgU+IW6Wp6eYn8A09NJOWXgccO9raoqGLCGXODpR600+4xfGV/qhqn3Nf KCxjgZE6FUePC4BkxqAgwEui/8F6zjYAqW1qDKWuEJZhZZ4VTH0FW+TsC915w48vCkn/ dL9F3Uyx9VXb8Ks/+FxjrpeG6ofV6/dqFMyRgYD5sETI03nLhr4w9hiO2FlvAoMyluJ9 bQFC4Lmj0asw5TgUqYNHsXZ3RLyToJr6P7pceiQW/WC2tYAMrOlbopVI4TVwJCKG65mw H0iQ== X-Forwarded-Encrypted: i=1; AJvYcCVqwSVAwi9dlCRvJ5LB9PKNG2gL/xoeD4QQZAWOSX/a92OBHgUFxS8GUXMX2iULOjG/wEnxeYcaTwDCM5+jPnwDiihENzu/hoO9bxjlosAIR6dGczntYmhYYhn2172yeJKW0To0ztELq7WlmrIjEMxHqANQMP2DUSWORI03dqDWH1elZjYDzKdmJTLPLguFyJCJN6fMabM40YZpPU9/UgteRxugSd5S/pxeZi4HyZE5n6qtfQ== X-Gm-Message-State: AOJu0Yz2HCOiOk8R0A1ddCvcoVQQKiOD88GZlXAEX0qM9wm//Xz51AWf i3r00Bi+2lpLNAh2SbXfKU2luBpB3yyzheB8S6eaRlea3n0LfvhRRcuqHedpKbArZe2QSnj4nwr KrErKYwikk+Zr7g7SeJmE0jJ8oEkh0KM/hsk= X-Received: by 2002:a05:6a20:9184:b0:19a:4462:4ad6 with SMTP id v4-20020a056a20918400b0019a44624ad6mr4161703pzd.31.1707269385135; Tue, 06 Feb 2024 17:29:45 -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 17:29:32 -0800 Message-ID: Subject: Re: [PATCH 09/14] perf annotate-data: Handle call instructions To: Arnaldo Carvalho de Melo Cc: Ian Rogers , Arnaldo Carvalho de Melo , Jiri Olsa , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users , Linus Torvalds , Stephane Eranian , Masami Hiramatsu , linux-toolchains@vger.kernel.org, Linux Trace Devel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Feb 6, 2024 at 3:44=E2=80=AFPM Arnaldo Carvalho de Melo wrote: > > > > On Tue, Feb 6, 2024, 8:36 PM Ian Rogers wrote: >> >> On Tue, Feb 6, 2024 at 3:17=E2=80=AFPM Namhyung Kim wrote: >> > >> > On Fri, Feb 2, 2024 at 7:09=E2=80=AFPM Ian Rogers = wrote: >> > > >> > > 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, mar= k some >> > > > 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 = scratch. >> > >> > 'volatile' is a keyword and 'caller_saved' seems somewhat verbose. >> > Maybe 'temporary'? >> >> Sgtm, perhaps temp for brevity and the documentation to call them caller= save? > > > > "caller_saved" seems to be the conventional name doesn't look too long to= use to help in reading this code by new people that have read the literatu= re. Ok, as you both requested, I will use "caller_saved". :) Thanks, Namhyung > > For instance, from a quick Google search: > > https://stackoverflow.com/questions/9268586/what-are-callee-and-caller-sa= ved-registers > > - Arnaldo