From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=17.151.62.67; helo=nwk-aaemail-lapp02.apple.com; envelope-from=afish@apple.com; receiver=edk2-devel@lists.01.org Received: from nwk-aaemail-lapp02.apple.com (nwk-aaemail-lapp02.apple.com [17.151.62.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id EB61A21123B93 for ; Thu, 6 Sep 2018 19:58:12 -0700 (PDT) Received: from pps.filterd (nwk-aaemail-lapp02.apple.com [127.0.0.1]) by nwk-aaemail-lapp02.apple.com (8.16.0.22/8.16.0.22) with SMTP id w872v1ut018056; Thu, 6 Sep 2018 19:58:11 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=mime-version : content-type : sender : subject : from : in-reply-to : date : cc : content-transfer-encoding : message-id : references : to; s=20180706; bh=8c5PYOULbRqGrZsU5KelkWZP+uNOPC8Hl54vqj6WYgM=; b=NNdMkAs3qSxkCIOHo7sj7nL6rQ1TwTAPVpSPhcWP4JYxRsVcWKVZBRlkKeZEjTNCm0cP RfvAe/yXNNErJZYUlMIQ4jaiACgLOiHeKszhI1UhNCccnvwxZJFg68RwSuoETNO2O6pz A5Use/ytaz2bZyEziUyb8RG0+kFpRK5C9uPgzI1weWgjMuGOs6SHpN4FFbvTXxdoE/B4 2M534426cQBWK1y6bZrRmWSfG60TMHHtT9kNXJwc8b37wPo7q4egARBOdMSOKNfANJs9 BlCr7S3IQufw2E3rGZ6Z60MtUeyt88Qhxf6OcIk1t0XIz1H+VK/w87SRkosy+7cLKfTM Xw== Received: from ma1-mtap-s02.corp.apple.com (ma1-mtap-s02.corp.apple.com [17.40.76.6]) by nwk-aaemail-lapp02.apple.com with ESMTP id 2m7qbr3fxw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Thu, 06 Sep 2018 19:58:11 -0700 MIME-version: 1.0 Received: from ma1-mmpp-sz07.apple.com (ma1-mmpp-sz07.apple.com [17.171.128.149]) by ma1-mtap-s02.corp.apple.com (Oracle Communications Messaging Server 8.0.2.3.20180614 64bit (built Jun 14 2018)) with ESMTPS id <0PEO00B1W08XSQ90@ma1-mtap-s02.corp.apple.com>; Thu, 06 Sep 2018 19:58:09 -0700 (PDT) Received: from process_viserion-daemon.ma1-mmpp-sz07.apple.com by ma1-mmpp-sz07.apple.com (Oracle Communications Messaging Server 8.0.2.3.20180614 64bit (built Jun 14 2018)) id <0PEN00M00Y8J7F00@ma1-mmpp-sz07.apple.com>; Thu, 06 Sep 2018 19:58:09 -0700 (PDT) X-Va-A: X-Va-T-CD: 49f1857882a0b7f3e611e01672125c1a X-Va-E-CD: a95ea087892e64910682b04f62e80ee1 X-Va-R-CD: 680bacee0b4d29964bfe3840f4c6a821 X-Va-CD: 0 X-Va-ID: c41acd91-be2d-468a-aab4-9ca1af581f5a X-V-A: X-V-T-CD: 49f1857882a0b7f3e611e01672125c1a X-V-E-CD: a95ea087892e64910682b04f62e80ee1 X-V-R-CD: 680bacee0b4d29964bfe3840f4c6a821 X-V-CD: 0 X-V-ID: 4a68aec3-2444-4a81-ad57-fa2f57b7452a Received: from process_milters-daemon.ma1-mmpp-sz07.apple.com by ma1-mmpp-sz07.apple.com (Oracle Communications Messaging Server 8.0.2.3.20180614 64bit (built Jun 14 2018)) id <0PEN00M00Y8H7900@ma1-mmpp-sz07.apple.com>; Thu, 06 Sep 2018 19:58:09 -0700 (PDT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-09-07_01:,, signatures=0 X-Proofpoint-Scanner-Instance: ma-grpmailp-qapp25.corp.apple.com-10000_instance1 Received: from [17.234.213.77] (unknown [17.234.213.77]) by ma1-mmpp-sz07.apple.com (Oracle Communications Messaging Server 8.0.2.3.20180614 64bit (built Jun 14 2018)) with ESMTPSA id <0PEO00F4J08UCZ70@ma1-mmpp-sz07.apple.com>; Thu, 06 Sep 2018 19:58:09 -0700 (PDT) Sender: afish@apple.com From: Andrew Fish In-reply-to: Date: Thu, 06 Sep 2018 19:58:25 -0700 Cc: Laszlo Ersek , edk2-devel@lists.01.org, dandan.bi@intel.com Message-id: <17A8CCBE-71A5-44E3-BBAC-7F067D5EB651@apple.com> References: <67C5668B-A842-4280-A555-74D9AD99D142@gmail.com> To: prabin ca X-Mailer: Apple Mail (2.3445.6.18) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-09-07_01:, , signatures=0 Subject: Re: Performance enabling of Event handler X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Sep 2018 02:58:13 -0000 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: quoted-printable Prabin, Last time I looked every call to PERF_START()/PERF_END() creates a new = performance record. So it does not work well for a function that is = called a large number of times.=20 Thanks, Andrew Fish > On Sep 6, 2018, at 7:30 PM, prabin ca wrote: >=20 > Hi, > PerformancePkg is not working with event handlers, but it=E2=80=99s = working with normal functions handlers.=20 >=20 >> On 06-Sep-2018, at 3:28 PM, Laszlo Ersek wrote: >>=20 >>> On 09/06/18 08:10, prabin ca wrote: >>> Hi Team, >>>=20 >>> I=E2=80=99m used edk2 PerformancePkg for profiling cpu execution = time taken by a event handler. Event is created successfully and event = handler is also called successfully, but I can capture the performance = of this event handler with PerformancePkg (by using perf_start and = perf_end check points). This PerformancePkg is working fine with normal = function calls. >>=20 >> Do you mean "can not", instead of "can"? (Sorry, I don't understand.) >>=20 >>>=20 >>> Please help me to enable PerformancePkg action on event handler = also. >>>=20 >>=20 >> Hmmm, even with the suggested typo correction, I wouldn't know what = to >> suggest. Sorry! >>=20 >> Laszlo