Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp959283yba; Thu, 18 Apr 2019 12:31:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9y9qxzDzFICyqhUePBb7oXBQWyOvK+REA/TuJDrZpNui2SJEmlb9WCPLVg1UY54q9iRpd X-Received: by 2002:a63:ed10:: with SMTP id d16mr89825071pgi.75.1555615903048; Thu, 18 Apr 2019 12:31:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555615903; cv=none; d=google.com; s=arc-20160816; b=Zyr49T1YOOwFqe71uQrCQTNI/hxsjEYI82cKVhzSebGzDXqqUN/dwF7gmZJIHreUBk H4TEO2b1d/4sscT6EujVgCTmGpw+ckcfMbUKp6I/jQhLXeMkkI3ArJzFtRtPvXPhNMLy geOD86ts+7Hr2JFvJqWdmndtqnuMClMNtywRAfudonb7pMXn9YffE3Hw9y0pp65HKDZk wxXQgCWlfP4PZu6COAD2XT4x3InYBnwbZLbaku6El6T6Bw3Pe+jbV/GXUIov484aS9iD 2Eij2ZoeHBbXdONTGkp+4f2esHjxzPyjRwextydwQ1pkt7SEZcYSNgZ4uYdCECwXCGbO kW8g== 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-transfer-encoding:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=M10GJuf4bipDB7K/vKvod02Yi+/17RyTpQPwsi+BPMs=; b=TFsR6R3ORBvFiNDj/M1D2+dHVhXOh4BtZN0DO3+u+ElQVR2H/Es72AeC0KThOcUqhV 8dWA8OiN8QlaX1LhCQLUTZFXlpr8VJ8Z9drThlnmG4hCe3dzpzeBv7E74MjClLDB0xx7 UTqGnrmW8y0ExTJX4csmRIBJu5JkeMtDDuJBeeIaxD8eDWGrBa4H04VLgaKq3rFSxcuz ULCcDfXTRGXC0SE8TbPfIFD/VduSvWR/nUmgrOm4qQSdswVMkTJB/+aH+BIFEf+d9rcS B2oz2Id8BJXnCO+HlwRS0rXU/gJlCwj97yIhQcZFEYpNV2szJ+6UJY4P9oFwBy3NVm6g kx1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oVOgWmVs; 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 n69si3097162pfb.256.2019.04.18.12.31.27; Thu, 18 Apr 2019 12:31:43 -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=oVOgWmVs; 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 S2389952AbfDRT3T (ORCPT + 99 others); Thu, 18 Apr 2019 15:29:19 -0400 Received: from mail-it1-f194.google.com ([209.85.166.194]:34841 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729641AbfDRT3T (ORCPT ); Thu, 18 Apr 2019 15:29:19 -0400 Received: by mail-it1-f194.google.com with SMTP id w15so5088804itc.0 for ; Thu, 18 Apr 2019 12:29:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=M10GJuf4bipDB7K/vKvod02Yi+/17RyTpQPwsi+BPMs=; b=oVOgWmVsFvQV9dP/Okb70pmQ/tbSTCa6wtlhVGuIzdwAwCFAbXLrjc8fD9xeIOimph zVGZx2qfgg2M/G1es8cNY/hdP53V0s5TJPI+oXI52HneVMAlHKhNyJ2CrdhWIX31oIMz p8bf79CQpXkTtKL65Z5oipT3YAdWnjupa6B1mb4Cdu6V8pg6GJuGZgeDlUf1lvKGly48 HZhaWNnKOBeP3Lf3nmM3gQX4YKKrrGEvKFToJMzYfejecCW2SDqDLy9FpvXglzM+TV74 Y1Cz2WrQY6fvgwcp1eo98S+3n/bMiWOEQkANjn6pFHd23rViEeKF0c03tQNFjdNYVKSo bSNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=M10GJuf4bipDB7K/vKvod02Yi+/17RyTpQPwsi+BPMs=; b=n794iMhWacq14HcLHR9jeSM2POeNdRX8NhMgv2K9HTpiZBqiPILt4ILtEBbExGJBKr lVcrsMIHw+5etMV/SbHqVsqX+IVygnTIitfgFxzWJ3Y1HCX0qOL04DJmdKWbuINRTaKH apdI5qfnFJ8Y3BLAwwumWFGSHCOa9xW7bcRTtmxsNtp0MCy8VAH7nx6DbU/HkLezoI2B cjeLi0jVPuh05XgrvhaTSzueY1hSFTER2d0D0Jg4HSRKgZNBpq643mTKhs1kBOEALJ8B AlBZgmBEImzPFZjDFTYiKL0bWCO/AoX9Mposdg/soJ4qbi15TlMMgmbrACgGVH008/Ce pTSQ== X-Gm-Message-State: APjAAAXvMhmxF75vUTS1TyHqEqzhXsss0xq6vPAwFvCA/r2RI9ypm+/F zUl0EkIziHSSwdNV0PxtU8RN5w== X-Received: by 2002:a24:2fcb:: with SMTP id j194mr5048562itj.14.1555615758044; Thu, 18 Apr 2019 12:29:18 -0700 (PDT) Received: from localhost (c-107-2-67-121.hsd1.mn.comcast.net. [107.2.67.121]) by smtp.gmail.com with ESMTPSA id h133sm1406984itb.34.2019.04.18.12.29.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 Apr 2019 12:29:17 -0700 (PDT) Date: Thu, 18 Apr 2019 14:29:16 -0500 From: Dan Rue To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Jiri Olsa , Adrian Hunter , Alexander Shishkin , Alexey Budankov , Andi Kleen , Namhyung Kim , Peter Zijlstra , Stephane Eranian , Arnaldo Carvalho de Melo , Sasha Levin Subject: Re: [PATCH 5.0 05/93] perf data: Dont store auxtrace index for directory data file Message-ID: <20190418192916.4v7bfjukc3ovei7o@xps.therub.org> Mail-Followup-To: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Jiri Olsa , Adrian Hunter , Alexander Shishkin , Alexey Budankov , Andi Kleen , Namhyung Kim , Peter Zijlstra , Stephane Eranian , Arnaldo Carvalho de Melo , Sasha Levin References: <20190418160436.781762249@linuxfoundation.org> <20190418160437.573320142@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190418160437.573320142@linuxfoundation.org> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 18, 2019 at 07:56:43PM +0200, Greg Kroah-Hartman wrote: > [ Upstream commit cd3dd8dd8ff62374d90cb3f2e54b8c94106c7810 ] > > We can't store the auxtrace index when we store into multiple files, > because we keep only offset for it, not the file. > > The auxtrace data will be processed correctly in the 'pipe' mode. > > Signed-off-by: Jiri Olsa > Cc: Adrian Hunter > Cc: Alexander Shishkin > Cc: Alexey Budankov > Cc: Andi Kleen > Cc: Namhyung Kim > Cc: Peter Zijlstra > Cc: Stephane Eranian > Link: http://lkml.kernel.org/r/20190308134745.5057-3-jolsa@kernel.org > Signed-off-by: Arnaldo Carvalho de Melo > Signed-off-by: Sasha Levin > --- > tools/perf/builtin-record.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c > index 882285fb9f64..3fd154f1701b 100644 > --- a/tools/perf/builtin-record.c > +++ b/tools/perf/builtin-record.c > @@ -386,7 +386,7 @@ static int record__process_auxtrace(struct perf_tool *tool, > size_t padding; > u8 pad[8] = {0}; > > - if (!perf_data__is_pipe(data)) { > + if (!perf_data__is_pipe(data) && !perf_data__is_dir(data)) { This causes the following build error on 5.0: builtin-top.c: In function ‘__cmd_top’: builtin-top.c:1241:3: error: label ‘out_delete’ used but not defined goto out_delete; ^~~~ builtin-record.c: In function ‘record__process_auxtrace’: builtin-record.c:389:36: error: implicit declaration of function ‘perf_data__is_dir’; did you mean ‘perf_data__is_pipe’? [-Werror=implicit-function-declaration] if (!perf_data__is_pipe(data) && !perf_data__is_dir(data)) { ^~~~~~~~~~~~~~~~~ perf_data__is_pipe builtin-record.c:389:36: error: nested extern declaration of ‘perf_data__is_dir’ [-Werror=nested-externs] Dropping the patch solves this error, though there is a second perf related build error in this RC caused by 2c0bd03b5d20 ("perf top: Delete the evlist before perf_session, fixing heap-use-after-free issue"). > off_t file_offset; > int fd = perf_data__fd(data); > int err; > -- > 2.19.1 > > > -- Linaro - Kernel Validation