Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3050814imm; Sun, 1 Jul 2018 11:05:40 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJEd2gZNipa/0dZ7a8rEgsSRSrGDKQWiwOFFLRGUJZGiAud6p7OxfqhuOtlEqa3gV7e0fho X-Received: by 2002:a65:4bcd:: with SMTP id p13-v6mr19334277pgr.114.1530468340328; Sun, 01 Jul 2018 11:05:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530468340; cv=none; d=google.com; s=arc-20160816; b=LQMF39vt/FcxDUGPh0OwtnskE/d2eJPGTyQd0rpe2csD2VH0Wk8sONAnQwIvCUJrn8 5Z5wbxDoAcKCgUJQLTaa/lGaRV3Tz825QvqHFzckNfByElR8Hx9aSeCr/3OeiGcKutMS RnKnaOCHBnSe4UNz/MdZC0oL9vhqzVAd9NcW+qO7mJ+VEXQIPReO0j8OjYg4KSPJArza VnbEYbPwGhO3+8dV43yfBoMpSh55x+l+ECPTAcIeERw5+RpwBE6t5TWH9hagBw23/cqL /mxkZy8k1q+/AQOHv0WQTeMUQ+qREh6bOghmj/gZDgN9T6r5eT2LCgRk2vk3US2j4JYC 8xOw== 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=DUkCMh3Ohh2d7uDbB5H4p2ZMdxF6n3usDJhw+mG+1wM=; b=uBQG/13Oywc2843n06iDaVf9nexnHzuFcbZhepnQrTUmB6/IfPTJZPSOnwcKPrFIkL AahGoRAJoiBFJxpr5PSGYtxZ5sm6o5dEEd84rMP3HE2i9+PLZQqXRc/8xFNckEwjkSW7 190z4tmYtltJf9M0J7psHTMRnzyfIZ1bKYF5isi4obrAJAgwAvlBKDzKS98uXjqnfE2Q j2uk4rWwrCcNZEijABmqn6lMlEeUivtt5/yKzZ3qGU6nUvayyjqsJhsDzuimgoSeOZZr vfvC5pU5p4XbQ1axd7U4VpG/CtsviIZuiKrGoH5gPMo+vgXU+syzWSDWzIzlsM11Vvuk aOdw== 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 f66-v6si13949362plb.103.2018.07.01.11.05.26; Sun, 01 Jul 2018 11:05:40 -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 S1753657AbeGASET (ORCPT + 99 others); Sun, 1 Jul 2018 14:04:19 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:34466 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965794AbeGAQ3Q (ORCPT ); Sun, 1 Jul 2018 12:29:16 -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 DF4D292B; Sun, 1 Jul 2018 16:29:15 +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.9 076/101] perf intel-pt: Fix sync_switch INTEL_PT_SS_NOT_TRACING Date: Sun, 1 Jul 2018 18:22:02 +0200 Message-Id: <20180701160800.212432374@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180701160757.138608453@linuxfoundation.org> References: <20180701160757.138608453@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.9-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 @@ -1344,6 +1344,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);