Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp478999rwd; Mon, 12 Jun 2023 17:13:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6GW8JR0vKwSIxgxsn2oOJJiwIGgQmJpwUBOZGDpIC2ezMiskQ01jGJKCfQP0KxRg656KSu X-Received: by 2002:aa7:cb5a:0:b0:514:8f89:fafe with SMTP id w26-20020aa7cb5a000000b005148f89fafemr5872294edt.33.1686615209920; Mon, 12 Jun 2023 17:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686615209; cv=none; d=google.com; s=arc-20160816; b=jJmJ/TgQPaWAqBBSw9eppve6inSNusKikaZwj8q/rY3QhxOxhCnvbbw7yPWNyIoitG ERGW6Ucuq7I+hotXZ4Mux61uH3zUDjVJ607tEFSxO8LlXDloGyQdN/ey874XwPLPrY5g jGb5vHssxOl+y/8QTF430E1AYAC/QpjMjUV30LKBKBEW4sRliYqVqWtN/Mg0lgahkmk5 0A8nLYCIkTE3rNLP/gdTk/rOu47u2Q3M6MhkR5XoCWAPVspnKwIIW5v/2WzDkCKD7MSW XmiOGhrjhs5SveffMzZTF0tWhtkMvn+9LBYewbHYYxxRed7Gpyqc2ebUOlH973rnkauS h5/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=/TZTKvgWXslw1lwI6vHB1nhET0MRMTi1UfiLA9Au4ic=; b=tjdTAhyXgdgaFZzDIHp2U0sjYRcGQ/qgWHSgWSY4Il+JoD++dvNHBsS/EjvF8L+GoJ g9tbmU3DcmpMC7pWUOhM3DirFb78bhOEC2UmosgwaIEVw/RYFH20UfymQD4hVJq+ps7P YrOoOas6hRfSrP+3u0Vcd7m2NKlk82IXr4mcXraX0UCvRWvSbuqHNMy9jqRWZfpEYql4 6aIjgdTwEdxk9rEIT9TdRIIdrH9CxeXzIB7ybSC4REozfuubHphW52OSDJDslDhnsM4n xO5VD9Mx2x94hqFs3OLYCFUesUlPxRQusb6cg37R+tNeUFNNnds0c1d4s2o+kd0ybO1o r58g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=exJ46dVQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y6-20020aa7ccc6000000b0051497c87452si6189303edt.627.2023.06.12.17.12.55; Mon, 12 Jun 2023 17:13:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=exJ46dVQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236202AbjFLXzT (ORCPT + 99 others); Mon, 12 Jun 2023 19:55:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230319AbjFLXzR (ORCPT ); Mon, 12 Jun 2023 19:55:17 -0400 Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B7531715 for ; Mon, 12 Jun 2023 16:55:16 -0700 (PDT) Received: by mail-qt1-x836.google.com with SMTP id d75a77b69052e-3f98276f89cso59181cf.1 for ; Mon, 12 Jun 2023 16:55:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1686614115; x=1689206115; 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=/TZTKvgWXslw1lwI6vHB1nhET0MRMTi1UfiLA9Au4ic=; b=exJ46dVQ/JmnaOG+CxMLsTt0wih9TMmhYpzoJoTFDrakBi+obl7ZQ817CMNuGL3XYp d6yqcPeUAVuStSWFoSHTROUuUQsTrf3XU07B25yd1nVgWfWY426G/3uu5D8OGkIVZvph 6QqUDjluWaOLPsrLJvzub2+ldQJY07qqh7K4h8DC3CLF5Vj+/zAmXHJ5xfg1rFj4bUiK TD8WFEfy80/YOsiZRCr57F4nyapcWegWgZPqemc5Lj3228pEiuj6JNWW3lVGeEdi5AzB rNrqU4rm9MCscSGnl2xLz6pS+n0OcP9cut84CVhk7Z5D0Xt4eN5Qlug4XNgWtj9zDcUT uPHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686614115; x=1689206115; 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=/TZTKvgWXslw1lwI6vHB1nhET0MRMTi1UfiLA9Au4ic=; b=S6fWFNkU7HU/QHWB55agI77Cg0QITwZ5dMsOFoQ+S4XNgJSs8rn7/5g0qZxybjVqQq v2+fugID9hZseT4br7IvOq8AF9kJSqcCQFfZlnpZt+L+E2KkiXTNEg1pMPQ3rPBqG37Q ZJbdUbJd95pBdz7bVzA8TjgOzY3pSboczAzTxkES0ufOmx0Jtc93Nf43FsLfigSL2wof 3OSgWHJYney3T7gKlAQVRg59zbJnAVPJRt12D9DD6w2he29y40eCpamb7ryEnPxUU9Py d7VtHWpMVd94lGolpGnXJbFZSt9kaxVSgVK1sup/0q5C5VWjNvTHoR/xizeYuthVaKWM mOxQ== X-Gm-Message-State: AC+VfDxgnwXowHPHIZPTqgiyhgwf5KyN+PY0Bp1TDTdyHbBFze9JtegH 7/8H9LwPGxWgVA8KXqLmBg9ypbothpcbfC23+CkHZg== X-Received: by 2002:a05:622a:247:b0:3ef:4319:c6c5 with SMTP id c7-20020a05622a024700b003ef4319c6c5mr36692qtx.19.1686614115514; Mon, 12 Jun 2023 16:55:15 -0700 (PDT) MIME-Version: 1.0 References: <20230612230026.3887586-1-namhyung@kernel.org> In-Reply-To: <20230612230026.3887586-1-namhyung@kernel.org> From: Ian Rogers Date: Mon, 12 Jun 2023 16:55:03 -0700 Message-ID: Subject: Re: [PATCH] perf annotate: Allow whitespace between insn operands To: Namhyung Kim Cc: Arnaldo Carvalho de Melo , Jiri Olsa , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org, Masami Hiramatsu Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 12, 2023 at 4:00=E2=80=AFPM Namhyung Kim = wrote: > > The llvm-objdump adds a space between the operands while GNU objdump > does not. Allow a space to handle the both. > > In GNU objdump: > > Disassembly of section .text: here > | > ffffffff81000000 <_stext>: v > ffffffff81000000: 48 8d 25 51 1f 40 01 lea 0x1401f51(%rip),%r= sp > ffffffff81000007: e8 d4 00 00 00 call ffffffff810000e0 <= verify_cpu> > ffffffff8100000c: 48 8d 3d ed ff ff ff lea -0x13(%rip),%rdi > > In llvm-objdump: > > Disassembly of section .text: here > | > ffffffff81000000 : v > ffffffff81000000: 48 8d 25 51 1f 40 01 leaq 20979537(%rip), %= rsp > ffffffff81000007: e8 d4 00 00 00 callq 0xffffffff810000e= 0 > ffffffff8100000c: 48 8d 3d ed ff ff ff leaq -19(%rip), %rdi > > Signed-off-by: Namhyung Kim Acked-by: Ian Rogers Thanks, Ian > --- > tools/perf/util/annotate.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c > index 9171102dd3ad..3eab6c29eaa5 100644 > --- a/tools/perf/util/annotate.c > +++ b/tools/perf/util/annotate.c > @@ -585,7 +585,7 @@ static int mov__parse(struct arch *arch, struct ins_o= perands *ops, struct map_sy > if (ops->source.raw =3D=3D NULL) > return -1; > > - target =3D ++s; > + target =3D skip_spaces(++s); > comment =3D strchr(s, arch->objdump.comment_char); > > if (comment !=3D NULL) > -- > 2.41.0.162.gfafddb0af9-goog >