Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp183281rdb; Fri, 29 Sep 2023 23:48:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IED0yK74VHrshozc/YadNomtMzUFLaITiN4j2veYX91wG7bFuHaayi2CiypY4Blic6ogmTU X-Received: by 2002:a17:902:ea0f:b0:1bf:13fa:e75 with SMTP id s15-20020a170902ea0f00b001bf13fa0e75mr7158263plg.51.1696056483287; Fri, 29 Sep 2023 23:48:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696056483; cv=none; d=google.com; s=arc-20160816; b=EULmeVM/9Ev36O/SJfJ9xYPkC97ckPxpFomIgklaPsCsWc7r17nP6IHzLYW+uapr8T mlVsA9SOcsYjU/hn/5mdEQvOgrjY2cYxqm8C3BRbhlHOx3tog+9SKWqbEtEvabwD/5UI UIugk/LhP/sRjUKgE/AbHl5bNsycQudlERdOx2Nu+pT1ZZkwcbnJ7ms1oJusXvP7+8hq 8yMq+fdwSNUl9ZeXpH6v6DeG7XngP5M5FgBHM2Hb7x37MeL0KT74UzpzGD14w2LyW94g 0nDWMlGq2nYkoeZV/am/xHgMCHZd9GJyOv6ysMTDykR51EopGHVf0qEaUNdohDbeY6nK KCrg== 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; bh=3rIaFWi9xYt9yHdtGJDWGJvF4899T479Z2KhY0ETUdI=; fh=8X2wFCIo8jm7EKDwwH4DN1eAz9RRn2WzgHIk0WQozs0=; b=hnYPKhQkkGhC/juAt49myjJvxM1EL0jXxnvYh3MJUIPgpSELBlBqt+/GVCr6wmwlTE ZK8UqzH0ymBB21APFJOvoL/Zgbg2QzVNqsFVXv5rHO7wEwa3kl2YhZaToSTqxfzA1fZb 6yu5QmbJ3KJLG/7xK8QOE2pvv9Lzjgaino/N+60qo6+qu5rbmzFtQRMR+eP0l3kxQoKP wLgKEwbcWAI+OLJxWBdqwrJ7hmYvTwbVWFDTCssqSoBzxIkq0b0COdBp5jbqiFV2i7ZP XSaR0xa8s/bHWOi+expmvcSXLf9Es4td0Ec8mQzcQ6ytSp8cAoBwyYiUBFNUIV/6B6M0 KLIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id kt3-20020a170903088300b001c3e13018ffsi21709187plb.51.2023.09.29.23.48.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 23:48:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id C98BE81DF252; Fri, 29 Sep 2023 23:47:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234066AbjI3Gkm convert rfc822-to-8bit (ORCPT + 99 others); Sat, 30 Sep 2023 02:40:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234052AbjI3Gkl (ORCPT ); Sat, 30 Sep 2023 02:40:41 -0400 Received: from mail-io1-f41.google.com (mail-io1-f41.google.com [209.85.166.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55DF11A7; Fri, 29 Sep 2023 23:40:39 -0700 (PDT) Received: by mail-io1-f41.google.com with SMTP id ca18e2360f4ac-79faf4210b2so412300939f.2; Fri, 29 Sep 2023 23:40:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696056038; x=1696660838; 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=6VoHaFU1JQ7O+sUtwCftatF38jqRuulVsKTws+XSug0=; b=YmuuGRAsNbvPmv3gesmp0EWCT5sHjyaCbbBW3llA+Bk2aMnhHtvM0MzaPRCC98WfYy bOgb46RK3Ae1dbEz5pyEEFxqUsKdy6nClQlG38kqe1og01h41RgjuePxFtYNxVsWZKII 1787blOMWyG1L57/oB1x9yXETXGK5oEtNzHATXrozMj5DAdY8LJR7H3agacATLB11mY/ AEOFDBTxcS/dPvetum6ncnLl3xd0d3avXbJ7V0THqGycxT4wNZ/KUPNZh93I49os4a8D Qn0IKQn1RI7L/FqcRbbOPRlLNrC5eUjl//YEMnLBX2d9l67bYSyCqeVsQ4MZwjf3Sl85 DFtg== X-Gm-Message-State: AOJu0Yx7yO3cIvcY3Vj2e8fYwAkAQOA5KArpIUhex0qOD6FogFwOQqnO CRQQquou/KWAor+7nIGWG13rKeUG62octATohk4= X-Received: by 2002:a5e:9207:0:b0:79f:b87a:4f00 with SMTP id y7-20020a5e9207000000b0079fb87a4f00mr6191738iop.1.1696056038505; Fri, 29 Sep 2023 23:40:38 -0700 (PDT) MIME-Version: 1.0 References: <20230928072953.19369-1-adrian.hunter@intel.com> In-Reply-To: <20230928072953.19369-1-adrian.hunter@intel.com> From: Namhyung Kim Date: Fri, 29 Sep 2023 23:40:27 -0700 Message-ID: Subject: Re: [PATCH] perf intel-pt: Fix async branch flags To: Adrian Hunter Cc: Arnaldo Carvalho de Melo , Jiri Olsa , Ian Rogers , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 29 Sep 2023 23:47:56 -0700 (PDT) On Thu, Sep 28, 2023 at 12:30 AM Adrian Hunter wrote: > > Ensure PERF_IP_FLAG_ASYNC is set always for asynchronous branches (i.e. > interrupts etc). > > Fixes: 90e457f7be08 ("perf tools: Add Intel PT support") > Cc: stable@vger.kernel.org > Signed-off-by: Adrian Hunter Acked-by: Namhyung Kim Thanks, Namhyung > --- > tools/perf/util/intel-pt.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tools/perf/util/intel-pt.c b/tools/perf/util/intel-pt.c > index dbf0bc71a63b..f38893e0b036 100644 > --- a/tools/perf/util/intel-pt.c > +++ b/tools/perf/util/intel-pt.c > @@ -1512,9 +1512,11 @@ static void intel_pt_sample_flags(struct intel_pt_queue *ptq) > } else if (ptq->state->flags & INTEL_PT_ASYNC) { > if (!ptq->state->to_ip) > ptq->flags = PERF_IP_FLAG_BRANCH | > + PERF_IP_FLAG_ASYNC | > PERF_IP_FLAG_TRACE_END; > else if (ptq->state->from_nr && !ptq->state->to_nr) > ptq->flags = PERF_IP_FLAG_BRANCH | PERF_IP_FLAG_CALL | > + PERF_IP_FLAG_ASYNC | > PERF_IP_FLAG_VMEXIT; > else > ptq->flags = PERF_IP_FLAG_BRANCH | PERF_IP_FLAG_CALL | > -- > 2.34.1 > >