Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp971779yba; Thu, 18 Apr 2019 12:46:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxKlFy1C27zk8Lnun0iy5DrN2oxdhKcxJy5ZzpFVfejUlwG3i74wXaatbE+I5zmo0ywvx4s X-Received: by 2002:aa7:9ab7:: with SMTP id x23mr77301669pfi.27.1555616779976; Thu, 18 Apr 2019 12:46:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555616779; cv=none; d=google.com; s=arc-20160816; b=xHLWZLahyN+HoE9xwG0f4PDPyWw1C6Rz8XSXXksKMDhKeX5AclqU8yO4Xh71ewaA2h Ovdc0DtyPXDqGPA6QN6ZnADFqdQiT3cmU8SFa9PtYB92wYFcTSxYg1w7+Rcv/gI+c82Q Hmyd5GEFDbmcMiT0ooXQANpKUMD+PgMyrl4PeV7HqYmyQzWpkztbqNA98W9zpkPrSitw XvbTWqTo3B4/49pxY0/PPhZGbmsS4YJIWQJru3AXTSNay3ZAv9J/umZQlIyXPmnOGIGj grMAsVhor6jNjC1eiWEPgrR6ZULt2J4tQ+Qwaajl1NPCs8PFm0hILApenrjqi1jJ5LeM Wpvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:date:message-id:from :references:cc:to:subject; bh=ysg0T4qS8NxASJSILXN4STUjw54XnWNofO8sesN5Abw=; b=YDLKcMArC9X6VpXiyO0A3ev1UWGoxptIoMmmOA22HcWtYNTRiUicwNX3QnMx6hV3+V famDfCAlFCw0e4QRxUjfBflxGlnk61Pwff4psIie6eAiQ0ZXvz5npIDSwKZ6WKRUAt4g U0jg7zcm/1Gtg0InaCJKL3Omr+EeCudOkgp9JdNFGx6OP25UhaYaRcUA4rk42TglWwhW cnseAFoHyCrXubUMsLvQcAdOAeDE50gQ0kZxzKTIHEh8A23AHSVw9FZjv/2iYx5d0Mo9 4F/6e0DHj9nNZLHj1AxheCcyhTby6wxp+wyq3W5l4nKanbrF/6kvFLhzq9nUi55ok3d6 X7Gg== 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 cc18si3144561plb.363.2019.04.18.12.46.05; Thu, 18 Apr 2019 12:46:19 -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; 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 S2390045AbfDRTnz (ORCPT + 99 others); Thu, 18 Apr 2019 15:43:55 -0400 Received: from mx2.yrkesakademin.fi ([85.134.45.195]:15470 "EHLO mx2.yrkesakademin.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389796AbfDRTnz (ORCPT ); Thu, 18 Apr 2019 15:43:55 -0400 X-Greylist: delayed 903 seconds by postgrey-1.27 at vger.kernel.org; Thu, 18 Apr 2019 15:43:53 EDT Subject: Re: [PATCH 5.0 05/93] perf data: Dont store auxtrace index for directory data file To: Greg Kroah-Hartman , CC: , 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> From: Thomas Backlund Message-ID: Date: Thu, 18 Apr 2019 22:28:47 +0300 MIME-Version: 1.0 In-Reply-To: <20190418160437.573320142@linuxfoundation.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-WatchGuard-Spam-ID: str=0001.0A0C0214.5CB8D37A.002E,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 X-WatchGuard-Spam-Score: 0, clean; 0, virus threat unknown X-WatchGuard-Mail-Client-IP: 85.134.45.195 X-WatchGuard-Mail-From: tmb@mageia.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Den 18-04-2019 kl. 20:56, skrev Greg Kroah-Hartman: > [ 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)) { > off_t file_offset; > int fd = perf_data__fd(data); > int err; > This breaks the build with: builtin-record.c: In function 'record__process_auxtrace': builtin-record.c:389:36: warning: implicit declaration of function 'perf_data__is_dir'; did you mean 'perf_data__is_pipe'? [-Wimplicit-function-declaration] if (!perf_data__is_pipe(data) && !perf_data__is_dir(data)) { ^~~~~~~~~~~~~~~~~ Looks like it depends atleast on: commit ec65def1045e4c7817b7f741a86dadae82877a93 Author: Jiri Olsa Date: Fri Mar 8 14:47:35 2019 +0100 perf data: Support having perf.data stored as a directory Maybe better to drop it. -- Thomas