public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Performance enabling of Event handler
@ 2018-09-06  6:10 prabin ca
  2018-09-06  9:58 ` Laszlo Ersek
  0 siblings, 1 reply; 8+ messages in thread
From: prabin ca @ 2018-09-06  6:10 UTC (permalink / raw)
  To: edk2-devel, lersek, dandan.bi, afish

Hi Team,

I’m 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.

Please help me to enable PerformancePkg action on event handler also.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Performance enabling of Event handler
  2018-09-06  6:10 Performance enabling of Event handler prabin ca
@ 2018-09-06  9:58 ` Laszlo Ersek
  2018-09-07  2:30   ` prabin ca
  0 siblings, 1 reply; 8+ messages in thread
From: Laszlo Ersek @ 2018-09-06  9:58 UTC (permalink / raw)
  To: prabin ca, edk2-devel, dandan.bi, afish

On 09/06/18 08:10, prabin ca wrote:
> Hi Team,
> 
> I’m 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.

Do you mean "can not", instead of "can"? (Sorry, I don't understand.)

> 
> Please help me to enable PerformancePkg action on event handler also.
> 

Hmmm, even with the suggested typo correction, I wouldn't know what to
suggest. Sorry!

Laszlo


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Performance enabling of Event handler
  2018-09-06  9:58 ` Laszlo Ersek
@ 2018-09-07  2:30   ` prabin ca
  2018-09-07  2:58     ` Andrew Fish
  2018-09-07  3:16     ` Bi, Dandan
  0 siblings, 2 replies; 8+ messages in thread
From: prabin ca @ 2018-09-07  2:30 UTC (permalink / raw)
  To: Laszlo Ersek; +Cc: edk2-devel, dandan.bi, afish

Hi,
PerformancePkg is not working with event handlers, but it’s working with normal functions handlers. 

> On 06-Sep-2018, at 3:28 PM, Laszlo Ersek <lersek@redhat.com> wrote:
> 
>> On 09/06/18 08:10, prabin ca wrote:
>> Hi Team,
>> 
>> I’m 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.
> 
> Do you mean "can not", instead of "can"? (Sorry, I don't understand.)
> 
>> 
>> Please help me to enable PerformancePkg action on event handler also.
>> 
> 
> Hmmm, even with the suggested typo correction, I wouldn't know what to
> suggest. Sorry!
> 
> Laszlo


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Performance enabling of Event handler
  2018-09-07  2:30   ` prabin ca
@ 2018-09-07  2:58     ` Andrew Fish
  2018-09-07  3:16     ` Bi, Dandan
  1 sibling, 0 replies; 8+ messages in thread
From: Andrew Fish @ 2018-09-07  2:58 UTC (permalink / raw)
  To: prabin ca; +Cc: Laszlo Ersek, edk2-devel, dandan.bi

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. 

Thanks,

Andrew Fish

> On Sep 6, 2018, at 7:30 PM, prabin ca <prabinca4u@gmail.com> wrote:
> 
> Hi,
> PerformancePkg is not working with event handlers, but it’s working with normal functions handlers. 
> 
>> On 06-Sep-2018, at 3:28 PM, Laszlo Ersek <lersek@redhat.com> wrote:
>> 
>>> On 09/06/18 08:10, prabin ca wrote:
>>> Hi Team,
>>> 
>>> I’m 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.
>> 
>> Do you mean "can not", instead of "can"? (Sorry, I don't understand.)
>> 
>>> 
>>> Please help me to enable PerformancePkg action on event handler also.
>>> 
>> 
>> Hmmm, even with the suggested typo correction, I wouldn't know what to
>> suggest. Sorry!
>> 
>> Laszlo



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Performance enabling of Event handler
  2018-09-07  2:30   ` prabin ca
  2018-09-07  2:58     ` Andrew Fish
@ 2018-09-07  3:16     ` Bi, Dandan
  2018-09-07 15:57       ` prabin ca
  1 sibling, 1 reply; 8+ messages in thread
From: Bi, Dandan @ 2018-09-07  3:16 UTC (permalink / raw)
  To: prabin ca, Laszlo Ersek
  Cc: edk2-devel@lists.01.org, afish@apple.com, Bi, Dandan

Hi Prabin,

The Performance logging for the normal functions handlers and event handlers should be the same.
Are the normal function calls and the event handler function calls you tested in the same module?
If not, please double check to make sure the performance library instance used correctly for each module.


Thanks,
Dandan

-----Original Message-----
From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of prabin ca
Sent: Friday, September 7, 2018 10:30 AM
To: Laszlo Ersek <lersek@redhat.com>
Cc: Bi, Dandan <dandan.bi@intel.com>; edk2-devel@lists.01.org; afish@apple.com
Subject: Re: [edk2] Performance enabling of Event handler

Hi,
PerformancePkg is not working with event handlers, but it’s working with normal functions handlers. 

> On 06-Sep-2018, at 3:28 PM, Laszlo Ersek <lersek@redhat.com> wrote:
> 
>> On 09/06/18 08:10, prabin ca wrote:
>> Hi Team,
>> 
>> I’m 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.
> 
> Do you mean "can not", instead of "can"? (Sorry, I don't understand.)
> 
>> 
>> Please help me to enable PerformancePkg action on event handler also.
>> 
> 
> Hmmm, even with the suggested typo correction, I wouldn't know what to 
> suggest. Sorry!
> 
> Laszlo
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Performance enabling of Event handler
  2018-09-07  3:16     ` Bi, Dandan
@ 2018-09-07 15:57       ` prabin ca
  2018-09-08  4:15         ` Bi, Dandan
  2018-09-10 15:03         ` prabin ca
  0 siblings, 2 replies; 8+ messages in thread
From: prabin ca @ 2018-09-07 15:57 UTC (permalink / raw)
  To: Bi, Dandan; +Cc: Laszlo Ersek, edk2-devel@lists.01.org, afish@apple.com

Hi 

Yes it is included in same module (both event handler and function handler), and I’m not perf_start and perf_end only two times (one is by event handler and one is by normal function handler).

And I’m trying to print result using DP.efi, it shows entry for normal function.

> On 07-Sep-2018, at 8:46 AM, Bi, Dandan <dandan.bi@intel.com> wrote:
> 
> Hi Prabin,
> 
> The Performance logging for the normal functions handlers and event handlers should be the same.
> Are the normal function calls and the event handler function calls you tested in the same module?
> If not, please double check to make sure the performance library instance used correctly for each module.
> 
> 
> Thanks,
> Dandan
> 
> -----Original Message-----
> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of prabin ca
> Sent: Friday, September 7, 2018 10:30 AM
> To: Laszlo Ersek <lersek@redhat.com>
> Cc: Bi, Dandan <dandan.bi@intel.com>; edk2-devel@lists.01.org; afish@apple.com
> Subject: Re: [edk2] Performance enabling of Event handler
> 
> Hi,
> PerformancePkg is not working with event handlers, but it’s working with normal functions handlers. 
> 
>>> On 06-Sep-2018, at 3:28 PM, Laszlo Ersek <lersek@redhat.com> wrote:
>>> 
>>> On 09/06/18 08:10, prabin ca wrote:
>>> Hi Team,
>>> 
>>> I’m 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.
>> 
>> Do you mean "can not", instead of "can"? (Sorry, I don't understand.)
>> 
>>> 
>>> Please help me to enable PerformancePkg action on event handler also.
>>> 
>> 
>> Hmmm, even with the suggested typo correction, I wouldn't know what to 
>> suggest. Sorry!
>> 
>> Laszlo
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Performance enabling of Event handler
  2018-09-07 15:57       ` prabin ca
@ 2018-09-08  4:15         ` Bi, Dandan
  2018-09-10 15:03         ` prabin ca
  1 sibling, 0 replies; 8+ messages in thread
From: Bi, Dandan @ 2018-09-08  4:15 UTC (permalink / raw)
  To: prabin ca; +Cc: Laszlo Ersek, edk2-devel@lists.01.org, afish@apple.com

Hi,

DP tool will filter some entries in which the time duration < 1ms by default.
And you can  use the" dp -t 0  "to dump all the Perf entries.
Then to double check whether the entry you care exists or not.


Thanks,
Dandan
-----Original Message-----
From: prabin ca [mailto:prabinca4u@gmail.com] 
Sent: Friday, September 7, 2018 11:57 PM
To: Bi, Dandan <dandan.bi@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>; edk2-devel@lists.01.org; afish@apple.com
Subject: Re: [edk2] Performance enabling of Event handler

Hi 

Yes it is included in same module (both event handler and function handler), and I’m not perf_start and perf_end only two times (one is by event handler and one is by normal function handler).

And I’m trying to print result using DP.efi, it shows entry for normal function.

> On 07-Sep-2018, at 8:46 AM, Bi, Dandan <dandan.bi@intel.com> wrote:
> 
> Hi Prabin,
> 
> The Performance logging for the normal functions handlers and event handlers should be the same.
> Are the normal function calls and the event handler function calls you tested in the same module?
> If not, please double check to make sure the performance library instance used correctly for each module.
> 
> 
> Thanks,
> Dandan
> 
> -----Original Message-----
> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of 
> prabin ca
> Sent: Friday, September 7, 2018 10:30 AM
> To: Laszlo Ersek <lersek@redhat.com>
> Cc: Bi, Dandan <dandan.bi@intel.com>; edk2-devel@lists.01.org; 
> afish@apple.com
> Subject: Re: [edk2] Performance enabling of Event handler
> 
> Hi,
> PerformancePkg is not working with event handlers, but it’s working with normal functions handlers. 
> 
>>> On 06-Sep-2018, at 3:28 PM, Laszlo Ersek <lersek@redhat.com> wrote:
>>> 
>>> On 09/06/18 08:10, prabin ca wrote:
>>> Hi Team,
>>> 
>>> I’m 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.
>> 
>> Do you mean "can not", instead of "can"? (Sorry, I don't understand.)
>> 
>>> 
>>> Please help me to enable PerformancePkg action on event handler also.
>>> 
>> 
>> Hmmm, even with the suggested typo correction, I wouldn't know what 
>> to suggest. Sorry!
>> 
>> Laszlo
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Performance enabling of Event handler
  2018-09-07 15:57       ` prabin ca
  2018-09-08  4:15         ` Bi, Dandan
@ 2018-09-10 15:03         ` prabin ca
  1 sibling, 0 replies; 8+ messages in thread
From: prabin ca @ 2018-09-10 15:03 UTC (permalink / raw)
  To: Bi, Dandan; +Cc: Laszlo Ersek, edk2-devel@lists.01.org, afish@apple.com

Hi Team,

Thank it’s got worked on dp -t 0.

> On 07-Sep-2018, at 9:27 PM, prabin ca <prabinca4u@gmail.com> wrote:
> 
> Hi 
> 
> Yes it is included in same module (both event handler and function handler), and I’m not perf_start and perf_end only two times (one is by event handler and one is by normal function handler).
> 
> And I’m trying to print result using DP.efi, it shows entry for normal function.
> 
>> On 07-Sep-2018, at 8:46 AM, Bi, Dandan <dandan.bi@intel.com> wrote:
>> 
>> Hi Prabin,
>> 
>> The Performance logging for the normal functions handlers and event handlers should be the same.
>> Are the normal function calls and the event handler function calls you tested in the same module?
>> If not, please double check to make sure the performance library instance used correctly for each module.
>> 
>> 
>> Thanks,
>> Dandan
>> 
>> -----Original Message-----
>> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of prabin ca
>> Sent: Friday, September 7, 2018 10:30 AM
>> To: Laszlo Ersek <lersek@redhat.com>
>> Cc: Bi, Dandan <dandan.bi@intel.com>; edk2-devel@lists.01.org; afish@apple.com
>> Subject: Re: [edk2] Performance enabling of Event handler
>> 
>> Hi,
>> PerformancePkg is not working with event handlers, but it’s working with normal functions handlers. 
>> 
>>>> On 06-Sep-2018, at 3:28 PM, Laszlo Ersek <lersek@redhat.com> wrote:
>>>> 
>>>> On 09/06/18 08:10, prabin ca wrote:
>>>> Hi Team,
>>>> 
>>>> I’m 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.
>>> 
>>> Do you mean "can not", instead of "can"? (Sorry, I don't understand.)
>>> 
>>>> 
>>>> Please help me to enable PerformancePkg action on event handler also.
>>>> 
>>> 
>>> Hmmm, even with the suggested typo correction, I wouldn't know what to 
>>> suggest. Sorry!
>>> 
>>> Laszlo
>> _______________________________________________
>> edk2-devel mailing list
>> edk2-devel@lists.01.org
>> https://lists.01.org/mailman/listinfo/edk2-devel


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-09-10 15:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-06  6:10 Performance enabling of Event handler prabin ca
2018-09-06  9:58 ` Laszlo Ersek
2018-09-07  2:30   ` prabin ca
2018-09-07  2:58     ` Andrew Fish
2018-09-07  3:16     ` Bi, Dandan
2018-09-07 15:57       ` prabin ca
2018-09-08  4:15         ` Bi, Dandan
2018-09-10 15:03         ` prabin ca

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox