Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp2885326ima; Sun, 3 Feb 2019 08:45:06 -0800 (PST) X-Google-Smtp-Source: AHgI3IaJyxkZ3OAme1dSqIcwVgnEbbuha8mdyGXVLdlgS3X4nGQ/8vr6ljHFxRSBlSZjI0X0uCed X-Received: by 2002:a63:2586:: with SMTP id l128mr10145853pgl.104.1549212306754; Sun, 03 Feb 2019 08:45:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549212306; cv=none; d=google.com; s=arc-20160816; b=kOmsfLJpVUTsyUhMYLet/VzSlTBJ7WR63bdGGT+nOHMf6jHjeFv3YvPIlQLMIHCkq3 P34BJPLNfEcZp1OfAFA53wHCZY8Fdr0imCSMrDIfTV4ILLz8nE15YFYIUS6JQSszth9P hk0qD08UjZ7y0JkKdn4rSqF/6NChmHxPNfDFxeochTr5yCpo5QoFrARSR1mEgY05A0du v1vuXoatQ8trWDXa7xp7sH5Em3mkmInrtvpGWfBHPbIMxruAsEdtEtpliO3VW3IsKowE nIFQIozA/HOqYKOuN5CZl+Mt61jM7tha+BvfLJI+aHD9NLI6l/4/Rf/O52e7ydZMrWhd xvrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=i61ufDBMkhAWapiyjeGTW70PtzuowgsPkk5cd9CID0Q=; b=YrK9hYoI3VYLdEdFI1PoTSp9j17hDMVP6R1pUyXwKTLj23yhWnidJQyyyxYvu+sl3P kgbgOWXnMheMyNGZYR0YLw61DbrMJTIrBNaN4S5skVgaDkKs7hQyEvN+sz62VY4MudsQ BOtDr/crRzbJWVvvx/xAeNWl1wuZaps3xDgtIfMI3Q4gF8Q0VcCIPDRyVU30+poaW/Ql 4voAaFzJrnAXpYsj/iFy7Pa5PS7Nw/xW8jldLbCygwsqJnhi/9EzczfZKRyuXK6oSa3s QIC7nlZzoOISXj0Lju+TIt+IBXBeLiT9jeYGprbf3MtDz8j7L2rMe3rT0mKZ5iEx0mps Sv1Q== 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; dmarc=fail (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 n184si8866979pgn.95.2019.02.03.08.44.51; Sun, 03 Feb 2019 08:45:06 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728534AbfBCPav (ORCPT + 99 others); Sun, 3 Feb 2019 10:30:51 -0500 Received: from mx1.redhat.com ([209.132.183.28]:33090 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728266AbfBCPat (ORCPT ); Sun, 3 Feb 2019 10:30:49 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7478513BF60; Sun, 3 Feb 2019 15:30:49 +0000 (UTC) Received: from krava.redhat.com (ovpn-204-46.brq.redhat.com [10.40.204.46]) by smtp.corp.redhat.com (Postfix) with ESMTP id E3C885C238; Sun, 3 Feb 2019 15:30:46 +0000 (UTC) From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Adrian Hunter , Andi Kleen , Stephane Eranian , Alexey Budankov Subject: [PATCH 09/14] perf data: Don't store auxtrace index for directory data file Date: Sun, 3 Feb 2019 16:30:13 +0100 Message-Id: <20190203153018.9650-10-jolsa@kernel.org> In-Reply-To: <20190203153018.9650-1-jolsa@kernel.org> References: <20190203153018.9650-1-jolsa@kernel.org> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Sun, 03 Feb 2019 15:30:49 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We can't store auxtrace index when we store to multiple files, because we keep only offset for it, not the file. The auxtrace data will be processed correctly in the 'pipe' mode. Link: http://lkml.kernel.org/n/tip-og11od5s6nfxuf0ftxyu8m6k@git.kernel.org Signed-off-by: Jiri Olsa --- 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 fa21efb8bc74..cd02ab3ec4ff 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c @@ -391,7 +391,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; -- 2.17.2