Re: how to collect information regarding function calls in run time?

2019-05-17 Thread Pedro Terra Delboni
On Fri, May 17, 2019 at 11:09 AM Valdis Klētnieks wrote: > > On Tue, 14 May 2019 16:11:51 -0300, Pedro Terra Delboni said: > > > I agree that the question alone seems like a weird one, I just assumed > > when I wrote my first email that the explaining the motivation would > > only consume time of

Re: how to collect information regarding function calls in run time?

2019-05-17 Thread Valdis Klētnieks
On Tue, 14 May 2019 16:11:51 -0300, Pedro Terra Delboni said: > I agree that the question alone seems like a weird one, I just assumed > when I wrote my first email that the explaining the motivation would > only consume time of the reader. Asking "what problem are you trying to solve" is a

Re: how to collect information regarding function calls in run time?

2019-05-14 Thread Pedro Terra Delboni
On Tue, May 14, 2019 at 2:46 PM Valdis Klētnieks wrote: > > On Tue, 14 May 2019 10:55:40 -0300, Pedro Terra Delboni said: > > > Regarding bpftrace: This seemed like the best option since I could use it > > to count frames of the stack with depth 2, allowing me to know precisely > > the amount of

Re: how to collect information regarding function calls in run time?

2019-05-14 Thread Valdis Klētnieks
On Tue, 14 May 2019 10:55:40 -0300, Pedro Terra Delboni said: > Regarding bpftrace: This seemed like the best option since I could use it > to count frames of the stack with depth 2, allowing me to know precisely > the amount of times each specific call has been made. However, I could not > use

Re: how to collect information regarding function calls in run time?

2019-05-14 Thread Pedro Terra Delboni
Sorry, I believe I was not clear in how this relates to my university. I'm a post-graduate student working on a thesis, I'm not looking for the answer of an exercise proposed by the university. So neither you nor I can get a grade from this (though this may help me finish things sooner). On Tue,

Re: how to collect information regarding function calls in run time?

2019-05-14 Thread Greg KH
On Tue, May 14, 2019 at 10:55:40AM -0300, Pedro Terra Delboni wrote: > Sorry to revive this old thread, and thank you for the suggestions given, > but I've been trying to make these work for my case with little success and > I need a hand to understand what I'm doing wrong. Given that this is a

Re: how to collect information regarding function calls in run time?

2019-05-14 Thread Pedro Terra Delboni
Sorry to revive this old thread, and thank you for the suggestions given, but I've been trying to make these work for my case with little success and I need a hand to understand what I'm doing wrong. Regarding bpftrace: This seemed like the best option since I could use it to count frames of the

Re: how to collect information regarding function calls in run time?

2019-04-03 Thread Bharath Vedartham
On Wed, Apr 03, 2019 at 04:25:02PM -0300, Pedro Terra Delboni wrote: > Hello! > > I have a question about profiling, please, let me know if this is not > the right mailing list to post these kind of questions. > > Is there a way for me to record how many times each specific direct > call to a

how to collect information regarding function calls in run time?

2019-04-03 Thread Pedro Terra Delboni
Hello! I have a question about profiling, please, let me know if this is not the right mailing list to post these kind of questions. Is there a way for me to record how many times each specific direct call to a function happened? I've seen ways of profiling the kernel that calculate how much