From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755846Ab3KVOZU (ORCPT ); Fri, 22 Nov 2013 09:25:20 -0500 Received: from mx1.redhat.com ([209.132.183.28]:22169 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755781Ab3KVOZO (ORCPT ); Fri, 22 Nov 2013 09:25:14 -0500 From: Jiri Olsa To: linux-kernel@vger.kernel.org Cc: Jiri Olsa , Ingo Molnar , Frederic Weisbecker , Peter Zijlstra , Namhyung Kim , Mike Galbraith , Stephane Eranian , David Ahern , Adrian Hunter Subject: [PATCH 0/3] perf tools: Add data file write interface Date: Fri, 22 Nov 2013 15:24:25 +0100 Message-Id: <1385130268-10664-1-git-send-email-jolsa@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org hi, adding perf_data_file__write function to centralize output file writes. Using it in record and inject commands. David, patch 2 could colide with your mmap changes, not sure what's your plan with that in near future, let me know and I can rebase if needed. thanks, jirka Signed-off-by: Jiri Olsa Cc: Ingo Molnar Cc: Frederic Weisbecker Cc: Peter Zijlstra Cc: Namhyung Kim Cc: Mike Galbraith Cc: Stephane Eranian Cc: David Ahern Cc: Adrian Hunter --- Jiri Olsa (3): perf tools: Add perf_data_file__write interface perf record: Use perf_data_file__write for output file perf inject: Handle output file via perf_data_file object tools/perf/builtin-inject.c | 71 +++++++++++++++++++++++++++++++---------------------------------------- tools/perf/builtin-record.c | 42 +++++++++++++----------------------------- tools/perf/util/data.c | 20 ++++++++++++++++++++ tools/perf/util/data.h | 15 ++++++++------- 4 files changed, 72 insertions(+), 76 deletions(-)