Received: by 10.223.185.116 with SMTP id b49csp2124749wrg; Thu, 15 Feb 2018 06:59:42 -0800 (PST) X-Google-Smtp-Source: AH8x226lTugYxzkcfkhQpCfgGCyu0TdVLIhnQbIveEpe5BlVBY4tUheZguP6P7KksBWF/gL1VCFQ X-Received: by 10.101.80.69 with SMTP id k5mr2390487pgo.449.1518706782235; Thu, 15 Feb 2018 06:59:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518706782; cv=none; d=google.com; s=arc-20160816; b=1C+8NtoqMu8Y90LWcRmzGMR5h1+Da0LD/PBi7iZ6mxwI3PHTpXpNKCAwFpCYLnX/rg 9PR+vo+292mkkImu936q+J+lEOM8s16/VZjst4RjAp6fB0iWqlljek5HBxkwxCxDKKPg stbkqqbj9nEKd/Q/+cnMm3s87TS0iskiOpAzlPxFCoiWoDNkFef1rc+olUo1vwiiI+Dy a3VGM9qAHpn+UkJQwrvRSEB8pc1d/dbsXNiB+Xf+sXXhIV5inkclYifSthhEvA4IYbTl brpm4jhMJAfGd2If7+m87K7yumUM2tSc6+gCBZKGwUHwkrG4czs/JrOdn3nR/mIrqESI tHHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:arc-authentication-results; bh=I4VpFEqq4Fd+mbUvYH1ljxjDVyhSiSsTt8OlyYcH5IY=; b=Ij8dNgUTJwH5QJotFUYet2ZWIwSr5nD6d69IZqFFBCIV2yI7UMMTV+3XrcGfFSvSw7 /1RuTiJ3pKX9yL9C/CffzBRe+Z4qlOQptOjnAzAJBIJq03IYEUHL3uuhtDT1RHKuUyDA dw8Vp1QeLaerrvBMEh7Xc78hCk7ueWdY9p7WsOjKrMbZDx9NOHbtll9I4m3gq4xBZ4ms +xvewTU1AMthG6qAyr9n8BGTFavlnFHqFFx6jVehG43S9v6zQcBqHfBVjAlpEmlVXsng AmAcWfoi44VRkE/AKl9eKR8CoqFkd+4zmx8QJKEarz50qbEDsLW6+pnxSOELaNmH/di5 U65A== 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 a190si6599313pgc.708.2018.02.15.06.59.27; Thu, 15 Feb 2018 06:59:42 -0800 (PST) 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 S1033648AbeBOO5S (ORCPT + 99 others); Thu, 15 Feb 2018 09:57:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:49182 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1033103AbeBOO5R (ORCPT ); Thu, 15 Feb 2018 09:57:17 -0500 Received: from jouet.infradead.org (unknown [190.15.121.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 990EE2064E; Thu, 15 Feb 2018 14:57:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 990EE2064E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=acme@kernel.org Received: by jouet.infradead.org (Postfix, from userid 1000) id BB06414506A; Thu, 15 Feb 2018 11:57:14 -0300 (-03) Date: Thu, 15 Feb 2018 11:57:14 -0300 From: Arnaldo Carvalho de Melo To: Mathieu Poirier Cc: Robert Walker , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org Subject: Re: [PATCH 2/2] perf inject: Emit instruction records on ETM trace discontinuity Message-ID: <20180215145714.GE30974@kernel.org> References: <1518011845-24063-1-git-send-email-robert.walker@arm.com> <1518011845-24063-3-git-send-email-robert.walker@arm.com> <20180213222233.GA23553@xps15> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180213222233.GA23553@xps15> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Feb 13, 2018 at 03:22:33PM -0700, Mathieu Poirier escreveu: > On Wed, Feb 07, 2018 at 01:57:25PM +0000, Robert Walker wrote: > > @@ -946,20 +982,19 @@ static int cs_etm__run_decoder(struct cs_etm_queue *etmq) > > /* Run trace decoder until buffer consumed or end of trace */ > > do { > > processed = 0; > > - > > this... > > > err = cs_etm_decoder__process_data_block( > > etmq->decoder, > > etmq->offset, > > &buffer.buf[buffer_used], > > buffer.len - buffer_used, > > &processed); > > - > > and this should have gone in the first patch. > > > if (err) > > return err; > > > > etmq->offset += processed; > > buffer_used += processed; > > > > + /* Process each packet in this chunk */ > > And probably this too. > > With the above changes: > > Acked-by: Mathieu Poirier Hi Robert, Can you please address Mathieu's comments, and if you agree with them, resubmit? Thanks! - Arnaldo