Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3349143rdb; Tue, 6 Feb 2024 15:14:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IHlhJy3sXL+m2lPyljmkqv9U79bQalWQJLFBlC4fBsRfH8JeSmGEEmLOt88Om/B8nlLFq9G X-Received: by 2002:a05:6830:22d9:b0:6e1:2c16:4b13 with SMTP id q25-20020a05683022d900b006e12c164b13mr4179120otc.13.1707261263691; Tue, 06 Feb 2024 15:14:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707261263; cv=pass; d=google.com; s=arc-20160816; b=LCpJmI8PfIUiarqVHPtcxoz2n/aCv4Z7r6Ffyw4kK/Quf+0n9wRk/JU3jspcfu2YZb mCqfXAcTdh69xOJkPiFnB4cYU4BqDFo6mKxy1D27cRXxI7rghWYP1xPl8J3TJUt0lpz+ e4VzFMXC095FC1LzNIuv88H6qqJD0ONpAequRbqAmZSfDThHxQ/zbRS1hjNlrRrVBNsk ujCpwsoRnsHlFwqLIUE9wlZYeiGYgPRnJg02xI3m2Fzc/h+P4i2oDQRaB/68mFa1+496 2oWm4R6c8IpID1wb1ue3jjGT9FvRFdpZIoIW8Ti3FJ7UsfxO5HIf3n2T01bVuKeWkGqR u8YQ== 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=70rMlUj/f4yFlFZOs4vDIs1qT79AEOwrI22oowIL9DI=; fh=PmVC5IhN5E1FNsjb9YT8PwMLonWxtdrl6hG7xC7znoY=; b=jff7rudrsE69b1si8C8UC6ClLaB8DFhcNqns+5naWyNJMlL45Raa9XC69hw3Sgjzr3 jxGaMj/1fi+uhuDAjIj1Mjt+Ac1TZprn+RmxlXjawxaZkePULrf6TTAhAz/DsoJqsFzF Kz3lPhsIl7GBtoxyeEGgQWJapAz0p5XCr0kdhOYcVuEb9XipGvkv9hgQ/aPE8Ota1aUE mVGt4AcAdlqaS60kasi7Av1jRd+zneC2Fm9jGa0bN98dtlj0n/tvqu4q5AQucxADIUVS 4qnk4/80aSeT3k/EYu78zq5MY00rhHr4FR/zfYYS/XS1QPlTykaUDYwNED3kZOT/SQVl ab+A==; 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-55713-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55713-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCVdzZCn6ND7X53EuWyXCRf5dMyKzK6UCex4i/zQR5b4GcQ3J7XKlgq/sx7RaiVhy/ozM/iLyMGzXqRpuLPuYxl1efW0fza2SHNSbUE78Q== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id m25-20020a637d59000000b005d9135f4514si13058pgn.450.2024.02.06.15.14.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 15:14:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55713-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-55713-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55713-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id AE3B428A079 for ; Tue, 6 Feb 2024 23:08:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 746B71CAA5; Tue, 6 Feb 2024 23:08:09 +0000 (UTC) Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) (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 99D1A1C291; Tue, 6 Feb 2024 23:08:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707260889; cv=none; b=Rw8isMZ18ODTHZ6wvJXdVXGMcA5XobWjE5KP+bMqnvfIDwwWQ2R7X3LJU4pwfRBQlbmOiE4wGeXD49AR4w684BURRyTBZ/sWJP8yq4BZO2XBF6uAvAkOlFzKjZTiQEPkPE83x4/ojw+N10kjf7i2cnTP0hKe58ZQaSNRdmN4iiU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707260889; c=relaxed/simple; bh=4SlSmuGQIVhntf3X9E15+aMQ2hWS6HXbFc0a4FNeJRQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=ct7/tVK3hjpmz+9sOOzRQZ9bhKYP3z59jKUcZSJC+bkMbVa7+bDBCeUc/xqIkNACjieNagGVmcEqzTcQOjNXcZHvnJyVJJCHnVP7stvx120rhG7gSgXyFr3EvsTEwJJkel3LHMSh/9PPXcA64QV09RRTucWKpwMgOUcgedvzUqo= 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.177 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-f177.google.com with SMTP id 41be03b00d2f7-5d8b70b39efso5530249a12.0; Tue, 06 Feb 2024 15:08:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707260887; x=1707865687; 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=70rMlUj/f4yFlFZOs4vDIs1qT79AEOwrI22oowIL9DI=; b=CN1yoCjXqBRGMuyA7lK0Tt6j2NZBscewqXlW2IwVALB/kvFZtAkwEblx+//RmX02zE 7t3+dOflpH1hJo+DhFsG19yuYlEuozEf9xtbSwF+wKEES0QjYJWJpIgdQTeN/WSApeIO lmg/I0TUFlt9WpzWzLhCyQXrwZAyE+7cBpBqkCDG7isUDK6UQM4LLJclCBjtiArhx4Iu kQpuqLrGQUMu/MTPs/5IbSwWKVGO69pNr+zKUhkN1E8EdhXmaI2ThY2GBJt2042IqHGM /le3Nh8BcI3wKKQ7qWV6l/scEZoHXEgrTrNEuT2JZjJJQVMuLhhrd8tnkkDA8ej9IaC8 l4BQ== X-Gm-Message-State: AOJu0Yx8PguNzSQGRHgXtNmTLGN0irq3CCnU1bkdO3UMkkhByWJVLI0K mp48tN1P0Db0Iut0ipcxJlzEnRrBArVCp26i2XehkgkvvWpe6m1gP+JdfuZ74sqmSNNSGvYz5gf qCskZjNGe308cNj182j3Zb1tc8OU= X-Received: by 2002:a05:6a20:d42a:b0:19a:fa19:23e7 with SMTP id il42-20020a056a20d42a00b0019afa1923e7mr2779992pzb.55.1707260886653; Tue, 06 Feb 2024 15:08:06 -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-8-namhyung@kernel.org> In-Reply-To: From: Namhyung Kim Date: Tue, 6 Feb 2024 15:07:55 -0800 Message-ID: Subject: Re: [PATCH 07/14] perf annotate-data: Add update_insn_state() 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 6:49=E2=80=AFPM Ian Rogers wrot= e: > > On Fri, Feb 2, 2024 at 2:05=E2=80=AFPM Namhyung Kim = wrote: > > > > The update_insn_state() function is to update the type state table afte= r > > processing each instruction. For now, it handles MOV (on x86) insn > > to transfer type info from the source location to the target. > > > > The location can be a register or a stack slot. Check carefully when > > memory reference happens and fetch the type correctly. It basically > > ignores write to a memory since it doesn't change the type info. One > > exception is writes to (new) stack slots for register spilling. > > Just an aside, it seems a shame objdump can't do this tracking for us. > objdump already augments its output with symbol and relocation data. I'd be more than happy if objdump can display a relevant data type on each instruction. :) Thanks, Namhyung