From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753631AbbHaP1R (ORCPT ); Mon, 31 Aug 2015 11:27:17 -0400 Received: from mx2.suse.de ([195.135.220.15]:60566 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753193AbbHaP1Q (ORCPT ); Mon, 31 Aug 2015 11:27:16 -0400 Subject: Re: [PATCH 1/3] mm, compaction: export tracepoints status strings to userspace To: Steven Rostedt References: <1440689044-2922-1-git-send-email-vbabka@suse.cz> <20150831105538.2cf4b3ae@gandalf.local.home> Cc: Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Joonsoo Kim , Ingo Molnar , Mel Gorman , David Rientjes From: Vlastimil Babka Message-ID: <55E47252.7030201@suse.cz> Date: Mon, 31 Aug 2015 17:27:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <20150831105538.2cf4b3ae@gandalf.local.home> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/31/2015 04:55 PM, Steven Rostedt wrote: > On Thu, 27 Aug 2015 17:24:02 +0200 > Vlastimil Babka wrote: > >> Some compaction tracepoints convert the integer return values to strings using >> the compaction_status_string array. This works for in-kernel printing, but not >> userspace trace printing of raw captured trace such as via trace-cmd report. >> >> This patch converts the private array to appropriate tracepoint macros that >> result in proper userspace support. >> >> trace-cmd output before: >> transhuge-stres-4235 [000] 453.149280: mm_compaction_finished: node=0 >> zone=ffffffff81815d7a order=9 ret= >> >> after: >> transhuge-stres-4235 [000] 453.149280: mm_compaction_finished: node=0 >> zone=ffffffff81815d7a order=9 ret=partial >> > > Reviewed-by: Steven Rostedt Thanks!