Received: by 10.213.65.68 with SMTP id h4csp386468imn; Fri, 23 Mar 2018 06:49:14 -0700 (PDT) X-Google-Smtp-Source: AG47ELswSrKn8yVulXdPyr3F3j17q/QJ0Vfjd6h7jbsQkrtyb09K5jR8tDcjNdsKGR7gMkY9Yfis X-Received: by 10.99.127.72 with SMTP id p8mr21560330pgn.52.1521812954158; Fri, 23 Mar 2018 06:49:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521812954; cv=none; d=google.com; s=arc-20160816; b=I1Oh5tpjBYpe/sY8NV5BGG75Nt8FmSwU/bpXScnFVs6+WwQ4uXLyAtZKs5tGKBx1+K h2ONcKMkbC28ltYlj3wHCuwE3yVLf6lQG5zgGn8X1yQAcmOMerxmWZre7EGcOKV7EQBs Qcks1D/BwqThIfq12QpnUeDXiH4v2auLX/R83J45ZGKZ/V7KET+55Cs0z1XdCDeZXLVG rTuPa9TTLxcG7H846xNCrQqWSylr8d7Pn0Clcl0Ga64do/M0iU15qKDfgj4Lz2ngYxoJ zFJoUJJZ2S+R2ExYhiX2r2SED/1kg8Ojlhf7qSZZTP4bkY0jJE4k5Pu8gzj5lpb80kDW iRYA== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dmarc-filter:arc-authentication-results; bh=LZtjls/FT+XB3x4/4sWLLlBUl/B8scOjdwn18oghfq0=; b=sN3NKS/4ww/rIKBfiYUgVEMO9bTX206P77ahu2dcMDHGM/esbzW8nHYD6AWYTSPXFC K2q6dvOb0AcnSsCQDcU2dF1dDkklIGWLM0nLMc0HJGtHMwsKkHUTUADMj2HKCX6Wj/7j TfiG8GB0zlIszTTu2fyT8VBbgPsKMR4IK7oiC1ah4uhpH2qQPhvKuKKyqtvZ33ClPhOD fM4T0+LsH1Ymit3giY93188cCizegmQIO+N1RfTzWn+a45s/j67TkBkT6yDKQ3WEMWlX h01dKwZ/+iCeMQ3oWKIplGtODrFoDBrxzrn+hM4Df2BcPuVVL58sozolBq4Il7JHxTAZ pe1Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n13si5315140pgc.758.2018.03.23.06.48.58; Fri, 23 Mar 2018 06:49:14 -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; 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 S1752764AbeCWNr5 (ORCPT + 99 others); Fri, 23 Mar 2018 09:47:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:37880 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752664AbeCWNr4 (ORCPT ); Fri, 23 Mar 2018 09:47:56 -0400 Received: from gandalf.local.home (cpe-172-100-180-131.stny.res.rr.com [172.100.180.131]) (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 1661A21718; Fri, 23 Mar 2018 13:47:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1661A21718 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=rostedt@goodmis.org Date: Fri, 23 Mar 2018 09:47:53 -0400 From: Steven Rostedt To: Michal Hocko Cc: LKML , linux-mm@kvack.org, Mel Gorman , Vlastimil Babka , Andrew Morton , Linus Torvalds , Alexei Starovoitov Subject: Re: [PATCH] mm, vmscan, tracing: Use pointer to reclaim_stat struct in trace event Message-ID: <20180323094753.760b2c86@gandalf.local.home> In-Reply-To: <20180323134200.GT23100@dhcp22.suse.cz> References: <20180322121003.4177af15@gandalf.local.home> <20180323134200.GT23100@dhcp22.suse.cz> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 23 Mar 2018 14:42:00 +0100 Michal Hocko wrote: > Yes, the number of parameter is large. struct reclaim_stat is an > internal stuff so I didn't want to export it. I do not have strong > objections to add it somewhere tracing can find it though. The one solution is to pull the tracing file include/trace/events/vmscan.h into mm/ and have a local header to store the reclaim_stat structure that both vmscan.h and vmscan.c can reference. I'll make a patch once I hear which way Andrey's patches are going. That way I don't need to do it twice. -- Steve