From patchwork Tue Mar 4 09:23:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen Gong X-Patchwork-Id: 3760551 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E1A21BF13A for ; Tue, 4 Mar 2014 09:45:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F33E52041B for ; Tue, 4 Mar 2014 09:45:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6AFAF2041F for ; Tue, 4 Mar 2014 09:45:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756484AbaCDJpx (ORCPT ); Tue, 4 Mar 2014 04:45:53 -0500 Received: from mga11.intel.com ([192.55.52.93]:34685 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756462AbaCDJpu (ORCPT ); Tue, 4 Mar 2014 04:45:50 -0500 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 04 Mar 2014 01:45:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,583,1389772800"; d="scan'208";a="491983771" Received: from gchen-sby.bj.intel.com (HELO localhost) ([10.238.158.82]) by fmsmga002.fm.intel.com with ESMTP; 04 Mar 2014 01:45:48 -0800 From: "Chen, Gong" To: tony.luck@intel.com, bp@alien8.de, m.chehab@samsung.com Cc: arozansk@redhat.com, linux-acpi@vger.kernel.org, "Chen, Gong" Subject: [PATCH 1/2] trace, RAS: Add basic RAS trace event Date: Tue, 4 Mar 2014 04:23:16 -0500 Message-Id: <1393924997-8992-2-git-send-email-gong.chen@linux.intel.com> X-Mailer: git-send-email 1.8.4.3 In-Reply-To: <1393924997-8992-1-git-send-email-gong.chen@linux.intel.com> References: <1393924997-8992-1-git-send-email-gong.chen@linux.intel.com> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP To avoid the confuision of usage for RAS related trace event, add an unified RAS trace event stub. Signed-off-by: Chen, Gong --- drivers/edac/edac_mc.c | 3 --- kernel/trace/Makefile | 1 + kernel/trace/ras-traces.c | 12 ++++++++++++ 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 kernel/trace/ras-traces.c diff --git a/drivers/edac/edac_mc.c b/drivers/edac/edac_mc.c index 33edd67..28c1695 100644 --- a/drivers/edac/edac_mc.c +++ b/drivers/edac/edac_mc.c @@ -33,9 +33,6 @@ #include #include "edac_core.h" #include "edac_module.h" - -#define CREATE_TRACE_POINTS -#define TRACE_INCLUDE_PATH ../../include/ras #include /* lock to memory controller's control array */ diff --git a/kernel/trace/Makefile b/kernel/trace/Makefile index 1378e84..167193a 100644 --- a/kernel/trace/Makefile +++ b/kernel/trace/Makefile @@ -52,6 +52,7 @@ endif obj-$(CONFIG_EVENT_TRACING) += trace_events_filter.o obj-$(CONFIG_EVENT_TRACING) += trace_events_trigger.o obj-$(CONFIG_KPROBE_EVENT) += trace_kprobe.o +obj-$(CONFIG_TRACEPOINTS) += ras-traces.o obj-$(CONFIG_TRACEPOINTS) += power-traces.o ifeq ($(CONFIG_PM_RUNTIME),y) obj-$(CONFIG_TRACEPOINTS) += rpm-traces.o diff --git a/kernel/trace/ras-traces.c b/kernel/trace/ras-traces.c new file mode 100644 index 0000000..b0c6ed1 --- /dev/null +++ b/kernel/trace/ras-traces.c @@ -0,0 +1,12 @@ +/* + * Copyright (C) 2014 Intel Corporation + * + * Authors: + * Chen, Gong + */ + +#define CREATE_TRACE_POINTS +#define TRACE_INCLUDE_PATH ../../include/ras +#include + +EXPORT_TRACEPOINT_SYMBOL_GPL(mc_event);