Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1087769imm; Fri, 8 Jun 2018 09:48:42 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKyH07MNnKHb6I3wsB0Dsi+FlwY6ciiCeMeb7U/i6q4qv68xqB2ctS4VeNxr/Ngxjs/7vTK X-Received: by 2002:a63:66c3:: with SMTP id a186-v6mr5856369pgc.408.1528476522409; Fri, 08 Jun 2018 09:48:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528476522; cv=none; d=google.com; s=arc-20160816; b=XyfstRfCpZaLPri4UQWbmJR5EpjOWxcroBR54oxxjiVkwCxV5uN6CiOHZH1iSy7Vem IKcxS6oYS8Ln+qgZrK1DCuw022h5nbrtH+xtWhK9lMrQ3j8/0QsWC3M6qglcJEcaATXU TYXugpIrRxuN54arkFoSiHBU8sg7H/SRQfRXBxj6qBAgYaIQvCkW1/jWUB3utZKuRMDS QxR35gA2XGCdSgyLSHrZNKJOxQNuz5l9GSeSQBBOgmvkyH2rvsM/wvKIAQfxEDYq7NnF MoKQbgs+5G9X+FB4Lc4f377khiyEOb9iJy/YrqoHlLo8zgyjjxhZnAmWysSwRRr4xtTd KLCw== 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:dkim-signature:arc-authentication-results; bh=aq2OGkfRgO56V1b9MqkteYyb1qxrfzWzh/lpaGVM4FU=; b=PnoAk5Q+CfDNy6KFjyEC/WXLLsa0/J135WfK2+ogwQOwXGVlesx1uld1+2q4F0xgTj 5icVHKcGhahZzFIXJ9ngDa++3MHxekgi3kKQHvMDlHHT0lwuxEC75IJiPNAVJv9MhSOI 9RGjZvmkNPSa4IhDLbKFpiXQs3dSmje6Or0pvgJytrl1wAoqsPB4ZbZYonOvqCz9BAvf GiEi7TbZCSbcq0ISxT3x2GdPYnKOU7l/wRxJLA4T2fSsoHMZiwAU5Jz0EPdiFE+5Q3Xa jg57zBKYI4kZVYpFii/49TwefkCx7X3iIqZtBowx63FGkQAZct/raW0ynQQEq+BJclpW rwMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kcdM8l8S; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o124-v6si24145694pga.90.2018.06.08.09.48.26; Fri, 08 Jun 2018 09:48:42 -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; dkim=pass header.i=@kernel.org header.s=default header.b=kcdM8l8S; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752674AbeFHQsB (ORCPT + 99 others); Fri, 8 Jun 2018 12:48:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:36258 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751643AbeFHQsA (ORCPT ); Fri, 8 Jun 2018 12:48:00 -0400 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 8AECF2087F; Fri, 8 Jun 2018 16:47:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1528476479; bh=Zt4pA0bZt2ln5n2p51SDn1gAlm/pykQNm7HP5aXbI2o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kcdM8l8SQeF1xWIXy7A5CI3hk3oaK78hi/hHXFH311neni8B4AD/YcQ07CRb4zVwS 7fsNO2umv/btOq28MvQH73s7npJSK9aKbJvBGKrTyvQd1bLpqOd8Uj5Jo17UK3Ue5b wKbRu//1M0TfE6F8IJCk1wgbvE28vu/+fnKvhY5Q= Received: by jouet.infradead.org (Postfix, from userid 1000) id 301401450F4; Fri, 8 Jun 2018 13:47:55 -0300 (-03) Date: Fri, 8 Jun 2018 13:47:55 -0300 From: Arnaldo Carvalho de Melo To: Seeteena Thoufeek Cc: peterz@infradead.org, mingo@redhat.com, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf script: Show hw-cache events Message-ID: <20180608164755.GJ17292@kernel.org> References: <1528455748-20087-1-git-send-email-s1seetee@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1528455748-20087-1-git-send-email-s1seetee@linux.vnet.ibm.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Fri, Jun 08, 2018 at 04:32:28PM +0530, Seeteena Thoufeek escreveu: > perf script fails to report hardware cache events (PERF_TYPE_HW_CACHE) > where as perf report shows the samples. Fix it. Ex, > > # perf record -e L1-dcache-loads ./a.out > [ perf record: Woken up 1 times to write data ] > [ perf record: Captured and wrote 0.008 MB perf.data (11 samples)] > > Before patch: > # perf script | wc -l > 0 > After patch: > # perf script | wc -l > 11 Thanks, tested and applied. - Arnaldo