From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20936 invoked by alias); 22 Jul 2009 17:14:48 -0000 Received: (qmail 20927 invoked by uid 22791); 22 Jul 2009 17:14:47 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Received: from smtp-outbound-2.vmware.com (HELO smtp-outbound-2.vmware.com) (65.115.85.73) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 22 Jul 2009 17:14:42 +0000 Received: from mailhost3.vmware.com (mailhost3.vmware.com [10.16.27.45]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 739D84C004 for ; Wed, 22 Jul 2009 10:14:39 -0700 (PDT) Received: from pa-excaht04.vmware.com (pa-excaht04.vmware.com [10.113.81.155]) by mailhost3.vmware.com (Postfix) with ESMTP id 67C7CCDB15 for ; Wed, 22 Jul 2009 10:14:39 -0700 (PDT) Received: from EXCH-MBX-1.vmware.com ([10.113.81.173]) by pa-excaht04.vmware.com ([10.113.81.155]) with mapi; Wed, 22 Jul 2009 10:14:39 -0700 From: Anupama Chandwani To: "systemtap@sourceware.org" Date: Wed, 22 Jul 2009 17:14:00 -0000 Subject: Trying to acquire global lock from systemtap module Message-ID: <806F700D7E08E9408413160B05EB666726BBC40519@EXCH-MBX-1.vmware.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2009-q3/txt/msg00184.txt.bz2 Hi, In my probe handler, I want to scan the task list using for_each_process(p). For this I need to hold a read_lock on tasklist_lock. tasklist_lock is a global data structure of type rwlock_t, and I am setting= the probe on copy_process (from kernel/fork.c where tasklist_lock is defin= ed) But I am not able to dereference this address. Also when I do a read_lock(&= tasklist_lock), i get following error while inserting module. Error inserting module 'module_name.ko' : Unknown symbol in module And dmesg tells me that the unknown symbol is 'tasklist_lock' Any pointers? Cheers, Anupama