From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ob0-f171.google.com (mail-ob0-f171.google.com [209.85.214.171]) by kanga.kvack.org (Postfix) with ESMTP id 5C54D6B0032 for ; Thu, 7 May 2015 21:00:28 -0400 (EDT) Received: by obcus9 with SMTP id us9so15261489obc.2 for ; Thu, 07 May 2015 18:00:28 -0700 (PDT) Received: from szxga03-in.huawei.com (szxga03-in.huawei.com. [119.145.14.66]) by mx.google.com with ESMTPS id t10si2176928obg.42.2015.05.07.18.00.25 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 07 May 2015 18:00:27 -0700 (PDT) Message-ID: <554C0A92.2080709@huawei.com> Date: Fri, 8 May 2015 09:00:02 +0800 From: Xie XiuQi MIME-Version: 1.0 Subject: Re: [PATCH v5 3/3] tracing: add trace event for memory-failure References: <1430998681-24953-1-git-send-email-xiexiuqi@huawei.com> <1430998681-24953-4-git-send-email-xiexiuqi@huawei.com> <20150507090127.34a7f93f@gandalf.local.home> In-Reply-To: <20150507090127.34a7f93f@gandalf.local.home> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Steven Rostedt Cc: n-horiguchi@ah.jp.nec.com, mingo@redhat.com, akpm@linux-foundation.org, gong.chen@linux.intel.com, bp@suse.de, tony.luck@intel.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, jingle.chen@huawei.com On 2015/5/7 21:01, Steven Rostedt wrote: > On Thu, 7 May 2015 19:38:01 +0800 > Xie XiuQi wrote: > >> + TP_printk("pfn %#lx: recovery action for %s: %s", > > I checked the libtraceevent code, and %# is handled. Good, thank you! > > -- Steve > >> + __entry->pfn, >> + __print_symbolic(__entry->type, MF_PAGE_TYPE), >> + __print_symbolic(__entry->result, MF_ACTION_RESULT) >> + ) >> +); >> +#endif /* CONFIG_MEMORY_FAILURE */ >> #endif /* _TRACE_HW_EVENT_MC_H */ >> >> /* This part must be outside protection */ >> > > . > -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751811AbbEHBAj (ORCPT ); Thu, 7 May 2015 21:00:39 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:13264 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751122AbbEHBAi (ORCPT ); Thu, 7 May 2015 21:00:38 -0400 Message-ID: <554C0A92.2080709@huawei.com> Date: Fri, 8 May 2015 09:00:02 +0800 From: Xie XiuQi User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Steven Rostedt CC: , , , , , , , , Subject: Re: [PATCH v5 3/3] tracing: add trace event for memory-failure References: <1430998681-24953-1-git-send-email-xiexiuqi@huawei.com> <1430998681-24953-4-git-send-email-xiexiuqi@huawei.com> <20150507090127.34a7f93f@gandalf.local.home> In-Reply-To: <20150507090127.34a7f93f@gandalf.local.home> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.17.191] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020205.554C0AA2.01A7,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: f059f7aec2a27a32396e0656a57fdc3d Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2015/5/7 21:01, Steven Rostedt wrote: > On Thu, 7 May 2015 19:38:01 +0800 > Xie XiuQi wrote: > >> + TP_printk("pfn %#lx: recovery action for %s: %s", > > I checked the libtraceevent code, and %# is handled. Good, thank you! > > -- Steve > >> + __entry->pfn, >> + __print_symbolic(__entry->type, MF_PAGE_TYPE), >> + __print_symbolic(__entry->result, MF_ACTION_RESULT) >> + ) >> +); >> +#endif /* CONFIG_MEMORY_FAILURE */ >> #endif /* _TRACE_HW_EVENT_MC_H */ >> >> /* This part must be outside protection */ >> > > . >