From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756221AbdERQNh (ORCPT ); Thu, 18 May 2017 12:13:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33484 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756129AbdERQNa (ORCPT ); Thu, 18 May 2017 12:13:30 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 6F6FF3D960 Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jolsa@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 6F6FF3D960 Date: Thu, 18 May 2017 18:13:25 +0200 From: Jiri Olsa To: David Carrillo-Cisneros Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Andi Kleen , Simon Que , Wang Nan , Jiri Olsa , He Kuang , Masami Hiramatsu , David Ahern , Namhyung Kim , Stephane Eranian , Paul Turner Subject: Re: [PATCH 3/7] perf header: use struct feat_fd for write Message-ID: <20170518161325.GD17926@krava> References: <20170518041602.28689-1-davidcc@google.com> <20170518041602.28689-4-davidcc@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170518041602.28689-4-davidcc@google.com> User-Agent: Mutt/1.8.0 (2017-02-23) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Thu, 18 May 2017 16:13:29 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 17, 2017 at 09:15:58PM -0700, David Carrillo-Cisneros wrote: > As preparation for using header records in pipe mode, replace > int fd with struct feat_fd fd in write functions for all header > record types. > > Record types that are not used in pipe-mode (such as auxtrace) will > never be called with fd->buf set and fail if so. please separate the struct feat_fd addition and the fd->buf support thanks, jirka