Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2996939imm; Sun, 1 Jul 2018 09:59:52 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeRT1tgWCG5kNS9+Zy3jmqijF+2fhR2UIDv9lpnvPkNhjZJ/7b8z0r962W7ISZG0500xjvD X-Received: by 2002:a17:902:b7c5:: with SMTP id v5-v6mr15006276plz.30.1530464392713; Sun, 01 Jul 2018 09:59:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530464392; cv=none; d=google.com; s=arc-20160816; b=mObYqHEaA3f3Ct59/XfCpvWf4lVtFcRyEz5aHMw/Y9BOA9DIgm0w8HIZBJhNoCdpLr STM54f7irAp1vbxyA/q1odJ05IyHagQzpWXDKe0UYqJm83C16MKbh68pmpD6+n5MfaGW 0mRnxNi+W1q5QKO94lBKZnkeqsK4hX/8zO6/kAtU+Rgl4OQB0cBc07ZkZvsWyVTKL8MC mwqMuEF/qmahvuz4wciw1dHfK6CdZgBWWgF2WRprEZdxH7zQP4dTB6WcHLEtaWUZyLTA tdTqEfd5PmguI/laLo1vUD6/wkag9dphDD0SnBIH5kZPEEwtZipwslnJoA6HIRPwstsR pLiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=B6FbrM0C9R7NQTGSBwTRW+o8j67rLd4x1zebAOHlH9Y=; b=FGYnLiLeAKQs0g3h9IYF7dy19gbWVH2FNpyURBiHLaZ9KVtIoOBi/hQ9gUZeyf1MIx 2TgxpOkh65BBzqkiHwAs+55UwyyUvNn1kLZTgov98qM7qfUnNIXeTJ12n7SNlcsN2AEb 6VrBRE4BEz8JhSQXPrsr8ID5O3fGQ/hMnv5EF5oFwYd5XoGgW8Uu1SE6vXlughU80bKO oq8lgCzQTcgD+U1HDh+UH76smYH5boviD6SaRoZygtIAs/jOvGtb85uC4OSQ82slelGx L4fAQmmxdAoTOBtJ3p5uApwqDPuujo8ilsGeD9v+crfV984CuzCqayVDYPMuI237HIt7 TYdA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u4-v6si10538102plz.354.2018.07.01.09.59.38; Sun, 01 Jul 2018 09:59:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1032491AbeGAQoZ (ORCPT + 99 others); Sun, 1 Jul 2018 12:44:25 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:38008 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1032080AbeGAQoR (ORCPT ); Sun, 1 Jul 2018 12:44:17 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 2D842A73; Sun, 1 Jul 2018 16:44:16 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Adrian Hunter , Arnaldo Carvalho de Melo Subject: [PATCH 4.17 168/220] perf intel-pt: Fix sync_switch INTEL_PT_SS_NOT_TRACING Date: Sun, 1 Jul 2018 18:23:12 +0200 Message-Id: <20180701160915.278913520@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180701160908.272447118@linuxfoundation.org> References: <20180701160908.272447118@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.17-stable review patch. If anyone has any objections, please let me know. ------------------ From: Adrian Hunter commit dbcb82b93f3e8322891e47472c89e63058b81e99 upstream. sync_switch is a facility to synchronize decoding more closely with the point in the kernel when the context actually switched. In one case, INTEL_PT_SS_NOT_TRACING state was not correctly transitioning to INTEL_PT_SS_TRACING state due to a missing case clause. Add it. Signed-off-by: Adrian Hunter Cc: stable@vger.kernel.org Link: http://lkml.kernel.org/r/1527762225-26024-2-git-send-email-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Greg Kroah-Hartman --- tools/perf/util/intel-pt.c | 1 + 1 file changed, 1 insertion(+) --- a/tools/perf/util/intel-pt.c +++ b/tools/perf/util/intel-pt.c @@ -1523,6 +1523,7 @@ static int intel_pt_sample(struct intel_ if (intel_pt_is_switch_ip(ptq, state->to_ip)) { switch (ptq->switch_state) { + case INTEL_PT_SS_NOT_TRACING: case INTEL_PT_SS_UNKNOWN: case INTEL_PT_SS_EXPECTING_SWITCH_IP: err = intel_pt_next_tid(pt, ptq);