Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp892111yba; Thu, 18 Apr 2019 11:18:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqyGA1FCXwUwmt9A3WC71nU2jz3GsToFjLb87B4Dc+kho6zip3wL6DmxLqLV97WAtGGzDTYs X-Received: by 2002:a17:902:9a83:: with SMTP id w3mr98252380plp.241.1555611513481; Thu, 18 Apr 2019 11:18:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555611513; cv=none; d=google.com; s=arc-20160816; b=0XOllDv5cM94p4BlDWvOO7ckyLsNEkG9kDW3NB9O0Mst+2WulgG4hKunDdG9zpHtPw 8lnH5QUNpxhiv1+A95ONvFZybjifbVrZx8ZMcmAAiKtdpHR9BSct+ZMgiuZjVp6zW9E3 xRis85QHzsHSJyRQdvGTP/WGr8PKwpIjYIqVzliUC6AFh+yExJ92M6VfQditp1Awncjs kavJhVgyO+OqxO/2XQTzrkVITMrujt7ynueR2IxEK478s4O4QRA9HBk1676vNYUHqEnb 5dVTMjrwX8LJLKnwzX91c146ABptaSJtEKRSlAzJrnWmO4bB7Pgls+roil9Bzsclmyz3 j/8w== 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=CW+A47pueiQZp5g7zyLeBZOwBHny5iEZaX7aLyF2mKw=; b=Qm7Ex/VajanPIw0LdpjGsvNwtxDQq6io7oGyqibmue3dP439OdrkF1g789JRgnxlCS xApBiN9kztBEsij58lNJtZAKMeB2Y+AsASxLLIiIQsqhBbuUwqNzv2vVTGl7DfBFm6I2 m6HFvrAeZPu8okF2b99inUyAcvgH6vVHU5Li6nWSgzscHZCZLeM/17qGulJFFzexefnc sJUyrf72w0GL3km/I8Mk9OxnZEnuYZUhFTtewwry9UBGmmpI9bBHa6lGhq3UtNLpEz3M JLPInC9bFpa3CvMVfSGKdUUhzdPHrSeF5e96rtaqxeMwJHHTZBpW4ys+tazQWdZP/ZIv 6sog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qhVho7h1; 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 z13si2429752pgv.334.2019.04.18.11.18.18; Thu, 18 Apr 2019 11:18:33 -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=qhVho7h1; 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 S2392148AbfDRSPa (ORCPT + 99 others); Thu, 18 Apr 2019 14:15:30 -0400 Received: from mail-it1-f194.google.com ([209.85.166.194]:52892 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391988AbfDRSP3 (ORCPT ); Thu, 18 Apr 2019 14:15:29 -0400 Received: by mail-it1-f194.google.com with SMTP id x132so4744425itf.2 for ; Thu, 18 Apr 2019 11:15:28 -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=CW+A47pueiQZp5g7zyLeBZOwBHny5iEZaX7aLyF2mKw=; b=qhVho7h1nXq6a75CQaR+bbJ5jZQFSagxoBnDBKnwJrqIxHDe6U2GRF0sGsSDkyNZ3i Ixd8WPIrVGxNpOaLpP89fgJpsT7qp/emyPdDty5II+p04/ueQEvAgc4VWQWvn3syWxQE kYlSxO4/0OFqyXKpDYBgGShk2YCLpzJ0AvhK8kF0HvjUkKUUDUuhUWo6XadARibEkJ0d 7aumIrc08m3svTf7F9vPnUTvi5E//al1r+MqNs8RlCSEH9FZntrW9VVd2OgEmXQBaTo8 CGIbBsA4kDZPV5mlK1iIoJcPxy9qpx8g4w4J173i+vSOgjJVVdJZEP1ERuBPvMvEwoP2 L8sg== 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=CW+A47pueiQZp5g7zyLeBZOwBHny5iEZaX7aLyF2mKw=; b=mbjP/g9CG6FCtV3CpEP03MgNGYUVbUgCICMJuS/Y7j/8V0QexzYDXzauRwnScI/V0E Q37RicRtDz3mC5zv5O842ewtu/rW/crakcASfIdVqlzQBUgoykQPSWnvdNdmZOeiZ+09 04GhLvvYK5Mv2v/IkGa4YPi0KdeY/kJDXb7jSVWpU90xEMDE++ZUqotSeQ8Pe5N+KquI jJpRCzT+jt45yZsPGdhmywGJlIs2fj7+332c174DB2EkBBy54IKLL3mRsCA08YEJfTF5 8VWJoNwsdRrdwWc4guReQIzPeHb6emeDInFalKMmUvCeRNb6+xfYbFyFgnKk1my41Kb7 LvRg== X-Gm-Message-State: APjAAAXQ16uKDZB0wUvuqIlkFlFvp5AEK7a5apvTEiWM7QKaBJD5hX5u 5hjgPbf+Izf4S2P56u1hC7QNlA== X-Received: by 2002:a24:43cf:: with SMTP id s198mr4459980itb.113.1555611328068; Thu, 18 Apr 2019 11:15:28 -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 m81sm1311933itm.33.2019.04.18.11.15.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 Apr 2019 11:15:27 -0700 (PDT) Date: Thu, 18 Apr 2019 13:15:26 -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 4.19 005/110] perf data: Dont store auxtrace index for directory data file Message-ID: <20190418181526.dopckmdnxxnrnkgj@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: <20190418160437.484158340@linuxfoundation.org> <20190418160437.973692718@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190418160437.973692718@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:55:54PM +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 22ebeb92ac51..f5b438486a64 100644 > --- a/tools/perf/builtin-record.c > +++ b/tools/perf/builtin-record.c > @@ -178,7 +178,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 one causes a build failure when building perf: builtin-record.c: In function ‘record__process_auxtrace’: builtin-record.c:181: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:181:36: error: nested extern declaration of ‘perf_data__is_dir’ [-Werror=nested-externs] It seems to require 258031c017c3 ("perf header: Add DIR_FORMAT feature to describe directory data"), which doesn't backport cleanly. Dropping f54f24d0f19a ("perf data: Don't store auxtrace index for directory data file") does seem to fix the issue. > off_t file_offset; > int fd = perf_data__fd(data); > int err; > -- > 2.19.1 > > > -- Linaro - Kernel Validation