Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4696872pxu; Wed, 21 Oct 2020 03:04:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfuS8AtpziCO1TNvOmEOjrQzteMbCP3Baj6epfhteBWZNRa7fPHgqsWq8CiaNrOLRJwDTX X-Received: by 2002:aa7:dcc7:: with SMTP id w7mr2321995edu.80.1603274641301; Wed, 21 Oct 2020 03:04:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603274641; cv=none; d=google.com; s=arc-20160816; b=Yql9EPSrzD1H5gG2/N5n/+HkRTslUDdgYkhes4cbQWANsBXS7P5U2NSFJcJuEv+fuv FauccZAResB+i/GIDB9wX0EgPzD1huMgBWWIvfiZLKV/P5PY8Sghxq2oRT3NpZiuNm6z CyZJej6CX1FdqWjZrDz/0/V+jSSymKfVfoosEEjYV5fCouDZts0+wiQpuEsE7t2niMjL F/ChLhkg1HFRximBaBUw3hQkQ7NxshfiGbHnYAb9x+PtpKHJdB4ucN/TRgeYxSo0XCiu QDZB+XKWGczkfA2TkUCAtvUURElKHdkS2g46kEQZ/Vb0ldtU336cSg9km4b9qrfbWTpP O/tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :ironport-sdr; bh=SNPmLBMcr9OIAT8ZSqCCrwmMC4zPFuDoR5MIplH6ua8=; b=nPLPhNr56HKQP31T7hi633PrswkxHBuWiqFkhXpdp8uMoO3h1hzLZ1V6g/6klUQigg weBkIKhbTLJhg0Uvbi7DrTbRBW3VJwTW2CtAxgtcZNvAgP/7M26R0MyHowHISHhxz0e4 nsIRmQRI999qXY8dVVvUXev5ykc8yAbQ24I8wzx+VJV0MDgfanJUvOMn0DTRTAkWgdcu c5Y7joX7J2Q2c478fzhmnR+hPEIk7HsyP87b0lMPDichLddDO7tAbTaS9UGw88X9EQ5W ZShjS9jy63tNaRcOwdPvbpjJrxtfLkD5Zv3mCFYY4Xi1KhKfI1TUfB8EBuBahebMfhmq VuNA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r26si1301545ejb.125.2020.10.21.03.03.39; Wed, 21 Oct 2020 03:04:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2409395AbgJTU3P (ORCPT + 99 others); Tue, 20 Oct 2020 16:29:15 -0400 Received: from mga18.intel.com ([134.134.136.126]:63437 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729043AbgJTU3P (ORCPT ); Tue, 20 Oct 2020 16:29:15 -0400 IronPort-SDR: fEUDugv1nyYhPtYS6tusqzkj92W8+9ImKPJb1yhwCDUQE1S8jNenRLd9jIGd47SNgp1SXziBWF ivPCVYx9N6CA== X-IronPort-AV: E=McAfee;i="6000,8403,9780"; a="155058814" X-IronPort-AV: E=Sophos;i="5.77,398,1596524400"; d="scan'208";a="155058814" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Oct 2020 13:29:14 -0700 IronPort-SDR: 8UlM6QoB4Cha/TQLxBcu+GBUwJpDUcClXtoLykjmGNpdtIBzSvsS1eU2RYPL6M7vH76YujtI7q c+loA2epoNqg== X-IronPort-AV: E=Sophos;i="5.77,398,1596524400"; d="scan'208";a="392498035" Received: from tassilo.jf.intel.com ([10.54.74.11]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Oct 2020 13:29:14 -0700 Date: Tue, 20 Oct 2020 13:29:13 -0700 From: Andi Kleen To: Alexey Budankov Cc: Arnaldo Carvalho de Melo , Jiri Olsa , Namhyung Kim , Alexander Shishkin , Adrian Hunter , Peter Zijlstra , Ingo Molnar , linux-kernel Subject: Re: [PATCH v1 02/15] perf report: output trace file name in raw trace dump Message-ID: <20201020202913.GN466880@tassilo.jf.intel.com> References: <810f3a69-0004-9dff-a911-b7ff97220ae0@linux.intel.com> <87e2050b-37e6-8ed8-e1e0-cfa074b030fa@linux.intel.com> <20201012160144.GA466880@tassilo.jf.intel.com> <42d5395a-71f5-63e1-f7c9-fd76e2b8bee4@linux.intel.com> <19dd0fa0-c236-6042-8ba6-48b4696e66bb@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <19dd0fa0-c236-6042-8ba6-48b4696e66bb@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > After brief evaluation it still doesn't look easy. The simplest thing > > I could imagine is to probably combine file_path and file_offset at a > > struct object on stack and then pass the object by the reference along > > function calls. I expect it will roughly cause the same amount of changes > > in the code and saves one argument (GP register). It is not that much > > but still. However I don't see issues with passing even 6 args on stack. > > Sorry - "passing 6 args to a function call" Ah it wasn't about code efficiency, just maintainability. Function calls with too many arguments are generally hard to maintain, and typically at some point have to be refactored anyways because they tend to grow even more over time. But if it's too difficult, ok. -Andi