From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13561 invoked by alias); 29 Nov 2005 03:54:50 -0000 Received: (qmail 13553 invoked by uid 22791); 29 Nov 2005 03:54:49 -0000 X-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_00,DNS_FROM_RFC_POST X-Spam-Check-By: sourceware.org Received: from fmr20.intel.com (HELO orsfmr005.jf.intel.com) (134.134.136.19) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 29 Nov 2005 03:54:49 +0000 Received: from orsfmr100.jf.intel.com (orsfmr100.jf.intel.com [10.7.209.16]) by orsfmr005.jf.intel.com (8.12.10/8.12.10/d: major-outer.mc,v 1.1 2004/09/17 17:50:56 root Exp $) with ESMTP id jAT3sl2o020120 for ; Tue, 29 Nov 2005 03:54:47 GMT Received: from pdsmsxvs01.pd.intel.com (pdsmsxvs01.pd.intel.com [172.16.12.122]) by orsfmr100.jf.intel.com (8.12.10/8.12.10/d: major-inner.mc,v 1.2 2004/09/17 18:05:01 root Exp $) with SMTP id jAT3skuw017437 for ; Tue, 29 Nov 2005 03:54:47 GMT Received: from pdsmsx331.ccr.corp.intel.com ([172.16.12.58]) by pdsmsxvs01.pd.intel.com (SAVSMTP 3.1.7.47) with SMTP id M2005112911544518935 for ; Tue, 29 Nov 2005 11:54:46 +0800 Received: from pdsmsx404.ccr.corp.intel.com ([172.16.12.64]) by pdsmsx331.ccr.corp.intel.com with Microsoft SMTPSVC(6.0.3790.211); Tue, 29 Nov 2005 11:54:46 +0800 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: jprobe question Date: Tue, 29 Nov 2005 03:54:00 -0000 Message-ID: <8126E4F969BA254AB43EA03C59F44E8404056CD6@pdsmsx404> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: jprobe question Thread-Index: AcX0mKJ3ldQsjPGaRpC77L0B3vEQbg== From: "Zhang, Yanmin" To: Cc: "Keshavamurthy, Anil S" , "Mao, Bibo" X-OriginalArrivalTime: 29 Nov 2005 03:54:46.0395 (UTC) FILETIME=[A36CCCB0:01C5F498] X-Scanned-By: MIMEDefang 2.52 on 10.7.209.16 X-IsSubscribed: yes Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2005-q4/txt/msg00294.txt.bz2 Mostly, jprobe handler has parameters. If the parameters are changed in the jprobe handler, should the original function use the changed values? For example, function store_online calls cpu_down. If we register a jprobe at cpu_down, see below function. int cpu_down_handler(unsigned int cpu) { cpu +=3D 1; return cpu; } Assume store_online calls cpu_down with parameter cpu=3D2, when cpu_down_handler exits back to original function cpu_down, should cpu_down use the new parameter value 3(orig_cpu +1) instead of the 2 (the original value)? My answer is no. Because c compiler might change the parameter values even though we don't change them in c codes sometimes. What's your idea? Yanmin