Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp879765imm; Mon, 9 Jul 2018 12:22:20 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeJxuprzxn/S/AYCTI0O5hlR5d4tPdBv065VoYrZZEc/THNirdQzdeL4ZXnkKHii0S8ZD9n X-Received: by 2002:a62:cc4d:: with SMTP id a74-v6mr22765659pfg.200.1531164140481; Mon, 09 Jul 2018 12:22:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531164140; cv=none; d=google.com; s=arc-20160816; b=ndDGhUNbdgWR36PBJMOt6KnWPpuYpYb2Gd0+3wkzbt+cE8qDyAaXv5xRjA5tnrBjCY BtLgobpC5yxlXZm2VIjy+v6xebNLe2lAvbYTSdV2eI0H713dFdvDGkIOcwgdPTAYlygX qwIpjcjYdudd9C3mFi19VCYKvRITcMW6ZrGPWVuBNcqTTYlWMflphU5KHHRTp7UdkqGQ 03AY0vWsVy3ZWPQUsATtleC4VRdkmXh70V/hJLGskdq2fzXFSeY/+w1emKPHwgfnR34n dz+PZrPzc0B0nsNVrAcn9r9jpqVx9wGpNtRFc3knCqlCErzJtPnLdzLwK5IFdLy8WDaR 0wow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=hu+1XnR5AKjsg4VLD/jfOLUZVPMHoAoGZ4UKKXjEbXo=; b=rUUt9MAJrTfHFw02WEN4eX1Gb7eixICDCXsFaeUSL6jbBy9hjD1UjTK+srqZRixG4C T/lMImNPdAH7a6IHDwKzeZi/wqf5s8xmZt4fFOTJiH88GF478afKB6bTKx4nv8qT7+xU c2voAd+1sz5Jjt+NeSdwZ0gsEVpgFesAUlwXJCV7K0YFf/gsIlKpvZj0sRtnHl834wXs EB1bA1NvX5Skz29HIyBxvy0e/j3djJAda+YTfSOQyk0xb1E3wcB9PYmt6MhH+sLxnNLR Jirl09VSYLWNBuvprfxri4wf1Oh0y/31VjWWjbhkuPIt348yIxpAWFlZAHcrP3yP7eIn 8Xfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fxESJaeB; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f21-v6si16645445plj.180.2018.07.09.12.22.06; Mon, 09 Jul 2018 12:22:20 -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=@linaro.org header.s=google header.b=fxESJaeB; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754650AbeGITVR (ORCPT + 99 others); Mon, 9 Jul 2018 15:21:17 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:34360 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754528AbeGITVP (ORCPT ); Mon, 9 Jul 2018 15:21:15 -0400 Received: by mail-ed1-f67.google.com with SMTP id d3-v6so14798995edi.1 for ; Mon, 09 Jul 2018 12:21:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hu+1XnR5AKjsg4VLD/jfOLUZVPMHoAoGZ4UKKXjEbXo=; b=fxESJaeBs+Hm7Qhsr0y1wgwDudDkBVnNKwFCnJdHq156hqxnLI78tEjMdv3X70+BXm xA3KFOA8k55Cn5J2jRmGA0GIhBdM7nPtDLxYx0zH2ufaQkuIIZeFEHfI8fJleBXQL2E+ R3uidoVzFiuPvB7DFSgT2IC5JxGTaWVDVXd2M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hu+1XnR5AKjsg4VLD/jfOLUZVPMHoAoGZ4UKKXjEbXo=; b=udNI48cf9pdq4Ze0CvV6KhzTjBn8sG41TSEcbRJqeKHFjX+ZcWQNXBbIGJUcKyB142 2PsOTix9NhI6+ZSlNipqf17cc5c9R2a958gFvigpD+TT0DfWmb4yaxOk6PxVEK9F4ZWi alGU+1SB8wVnZN/qzuIKXGjm+fgZYv1bzOFMflB9WaGFZ7BiFBjSqQhPgONpuYIZHlxS oPeB9TjpCCcVde357F+/ipM2MsVyrZEkBWFOlg52lZdE1i+kixNZIA7JUKKFPHUUsXSM 5retz4oP+u+R1AXinByB0vfi0+G5ttOLi2QkRqe9S8Tl1dv1wKFkOcs6um5PHO+yeY30 wo/Q== X-Gm-Message-State: APt69E2Rrgm4nSDtCtDAN6fhnAVXZqAUonyNn6F50T4YgCq0DTOvDN7D w04/VUq1cM//1oNCL1NpbNrQu2DbxCp0mi9louWZRA== X-Received: by 2002:a50:b505:: with SMTP id y5-v6mr23130467edd.195.1531164074391; Mon, 09 Jul 2018 12:21:14 -0700 (PDT) MIME-Version: 1.0 References: <1530828827-11604-1-git-send-email-mathieu.poirier@linaro.org> <20180706183844.9de52f1d45e1775b51790e8e@arm.com> In-Reply-To: <20180706183844.9de52f1d45e1775b51790e8e@arm.com> From: Mathieu Poirier Date: Mon, 9 Jul 2018 13:21:03 -0600 Message-ID: Subject: Re: [PATCH v2 0/7] perf: Add ioctl for PMU driver configuration To: Kim Phillips Cc: Peter Zijlstra , Arnaldo Carvalho de Melo , Ingo Molnar , Thomas Gleixner , Alexander Shishkin , schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, Will Deacon , Mark Rutland , Jiri Olsa , Namhyung Kim , Adrian Hunter , ast@kernel.org, Greg KH , "H. Peter Anvin" , linux-s390@vger.kernel.org, Linux Kernel Mailing List , linux-arm-kernel 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 On Fri, 6 Jul 2018 at 17:38, Kim Phillips wrote: > > On Thu, 5 Jul 2018 16:13:40 -0600 > Mathieu Poirier wrote: > > > This set adds the capability to communiate event specific configuration > > to the PMU kernel driver using an ioctl(). The functionatlity is made > > generic enough for anyone to use but is targeted at the identification > > of CoreSight sinks when operating in CPU-wide trace scenarios. > > With this series, a --per-thread -less invocation looks like it > succeeds (instead of giving a "failed to mmap with 12 (Cannot allocate > memory)" error): > > # perf record -e /cs_etm/@20010000.etf/ sleep 1 > [ perf record: Woken up 3 times to write data ] > Warning: > AUX data lost 2 times out of 3! > > [ perf record: Captured and wrote 0.182 MB perf.data ] > # > > but now perf report - built with libopencsd - is unable to process the > perf.data file: > > # perf report --stdio > 0x3a0 [0x60]: failed to process type: 1 > Error: > failed to process sample > # To display the perf.data header info, please use --header/--header-only options. > # Right, that's expected since the perf tools patches for CPU-wide trace scenarios haven't been merged yet. The real problem is, as you pointed above, that this patchset should still report an error as full functionality isn't merged yet. I will fix that. > > Also, a "record -a" invocation also acts like it's working, but Juno > has a hardware limitation where it can't record all cpus concurrently, > right? So, shouldn't record commands that exceed the h/w's > capabilities error out instead? To be clear there is no hardware limitation preventing "record -a" to work properly, just SW. This patchset is the first step in addressing the situation. Thanks, Mathieu > > Thanks, > > Kim