Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp893995yba; Thu, 18 Apr 2019 11:20:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqzP5BegoBGn0KKjK1ztMPYAgeEOXPB6RWlRqznL+VqehrFPdR6TYmxpW/hjRnSe6W8w/kR5 X-Received: by 2002:a17:902:9686:: with SMTP id n6mr54105124plp.282.1555611638980; Thu, 18 Apr 2019 11:20:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555611638; cv=none; d=google.com; s=arc-20160816; b=RyHZc3nyRHr+jOIlUoMYmiFLEiqkEquJ56aPMBLsadJVq35xfZaxe6L2c7EljC4i5e iSVk9IC7J0DL4tF82+wYwXuM8pkYin2IZm1hsP3y1fLKxSv46HSB9E3nhwl3O3RcxPKv z7udbNyX4kegEKpQawB3W4eb7Rg4wG2HtVR2OP6p5l+Jb7xSTooe1KtwMRC/LDc8Ehdd mCyIso3BGiizk2XRfqRB6i3bcrm6Wdk0oot2D5B6wQNi7cKrJKzvu04EJDlO1HzExcxA kfdkQPfu72Liy82A8KWaPFXmo/HyQVVCAOFldpCTvFbi2kGwecmbzfGx6b1YZYyhFhzG TFOw== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ofTqlYJGpKvMny/xG2AN7g9UqpcPVDpcWl4m7fDYEHE=; b=BXLNZ4tISIl0LUa909ntck25JMBt9dlr0XY8/w2IFZwkVCw43bMzEwb218jtvoaAP9 VK4NXCh2O3amVR4qYjgBYquupcS+jEkQMqMZHwKYzAPTH0tnure8HbIfY59F0VnIOCSS ZGppfM3Db5JJ9gN5SJJgMoWYGbtroS/MCRULLXuPbaZ2qREuoCSnrUcj6jlPr+J+ZS/Z 2zr12MDXLIxivwsha4xdvr5pDaA2rkqBk4W+H5RrYTbJks3Hya0owmSMoSl8sH89VyZO D/5wksUGqyTMbdlMp0JQ7ri/VtZmr8k37vEst3ULIJwEGw2fRiQ/SeHTS2Q/QMo9gFbT 1tvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=O0WB0YM8; 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 be8si2687254plb.72.2019.04.18.11.20.23; Thu, 18 Apr 2019 11:20:38 -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=@kernel.org header.s=default header.b=O0WB0YM8; 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 S2404096AbfDRSKX (ORCPT + 99 others); Thu, 18 Apr 2019 14:10:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:42080 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404106AbfDRSKV (ORCPT ); Thu, 18 Apr 2019 14:10:21 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6A93120652; Thu, 18 Apr 2019 18:10:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555611020; bh=XtkRlcktCWQ8+EOLffFMgO1nRouaL51g2wov3tbRxNM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O0WB0YM88nV4e+xva5FAJX+8A8G5S+Hh+suD5tKqHVodfO4DGxZnUNb0KcrRtU2vi Xf81LrnWa7yA80VdzYNYzcayycjzXPvP5L94S2DvH7EGxf2O3nx12TNGqg8Tf8YrAN rlA/a2fEpqYBk6gACFuysI8Krjau/OR5+WUq1Vcc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , 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: [PATCH 5.0 05/93] perf data: Dont store auxtrace index for directory data file Date: Thu, 18 Apr 2019 19:56:43 +0200 Message-Id: <20190418160437.573320142@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190418160436.781762249@linuxfoundation.org> References: <20190418160436.781762249@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ 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; -- 2.19.1