Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751809Ab0DJKls (ORCPT ); Sat, 10 Apr 2010 06:41:48 -0400 Received: from ns.dcl.info.waseda.ac.jp ([133.9.216.194]:60560 "EHLO ns.dcl.info.waseda.ac.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751008Ab0DJKlo (ORCPT ); Sat, 10 Apr 2010 06:41:44 -0400 From: Hitoshi Mitake To: mingo@elte.hu Cc: linux-kernel@vger.kernel.org, mitake@dcl.info.waseda.ac.jp, h.mitake@gmail.com, Peter Zijlstra , Paul Mackerras , Arnaldo Carvalho de Melo , Frederic Weisbecker Subject: [PATCH] Add "nested" field to event of lock_release Date: Sat, 10 Apr 2010 19:41:40 +0900 Message-Id: <1270896100-7935-1-git-send-email-mitake@dcl.info.waseda.ac.jp> X-Mailer: git-send-email 1.6.5.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1329 Lines: 45 State machine of perf lock requires "nested" field of lock_release(), so this patch adds it to event. Signed-off-by: Hitoshi Mitake Cc: Peter Zijlstra Cc: Paul Mackerras Cc: Arnaldo Carvalho de Melo Cc: Frederic Weisbecker --- include/trace/events/lock.h | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/trace/events/lock.h b/include/trace/events/lock.h index 5c1dcfc..4f489b5 100644 --- a/include/trace/events/lock.h +++ b/include/trace/events/lock.h @@ -44,15 +44,17 @@ TRACE_EVENT(lock_release, TP_STRUCT__entry( __string(name, lock->name) __field(void *, lockdep_addr) + __field(int, nested) ), TP_fast_assign( __assign_str(name, lock->name); __entry->lockdep_addr = lock; + __entry->nested = nested; ), - TP_printk("%p %s", - __entry->lockdep_addr, __get_str(name)) + TP_printk("%p %s %d", + __entry->lockdep_addr, __get_str(name), __entry->nested) ); #ifdef CONFIG_LOCK_STAT -- 1.6.5.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/