* thread context switching
@ 2014-03-18 16:01 Nada Saif
2014-03-18 16:10 ` parinay
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Nada Saif @ 2014-03-18 16:01 UTC (permalink / raw)
To: kernelnewbies
Hi,
I want to measure thread context switching in c, How I can do that?
Thanks,
N.A.S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140318/183ed3d8/attachment.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* thread context switching
2014-03-18 16:01 thread context switching Nada Saif
@ 2014-03-18 16:10 ` parinay
2014-03-18 16:20 ` Greg KH
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: parinay @ 2014-03-18 16:10 UTC (permalink / raw)
To: kernelnewbies
Did you try the solution mentioned by Saqlain ?
http://lists.kernelnewbies.org/pipermail/kernelnewbies/2014-March/010050.html
On Tue, Mar 18, 2014 at 9:31 PM, Nada Saif <nada.saif7@gmail.com> wrote:
> Hi,
>
> I want to measure thread context switching in c, How I can do that?
>
> Thanks,
> N.A.S
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
--
easy is right
begin right and you're easy
continue easy and you're right
the right way to go easy is to forget the right way
and forget that the going is easy....
^ permalink raw reply [flat|nested] 8+ messages in thread
* thread context switching
2014-03-18 16:01 thread context switching Nada Saif
2014-03-18 16:10 ` parinay
@ 2014-03-18 16:20 ` Greg KH
2014-03-18 16:54 ` Valdis.Kletnieks at vt.edu
2014-03-19 9:10 ` nayobix
3 siblings, 0 replies; 8+ messages in thread
From: Greg KH @ 2014-03-18 16:20 UTC (permalink / raw)
To: kernelnewbies
On Tue, Mar 18, 2014 at 07:01:50PM +0300, Nada Saif wrote:
> Hi,
>
> I want to measure thread context switching in c
Why?
> , How I can do that?\
Have you looked at the perf command?
^ permalink raw reply [flat|nested] 8+ messages in thread
* thread context switching
2014-03-18 16:01 thread context switching Nada Saif
2014-03-18 16:10 ` parinay
2014-03-18 16:20 ` Greg KH
@ 2014-03-18 16:54 ` Valdis.Kletnieks at vt.edu
2014-03-18 17:12 ` Mandeep Sandhu
2014-03-19 9:10 ` nayobix
3 siblings, 1 reply; 8+ messages in thread
From: Valdis.Kletnieks at vt.edu @ 2014-03-18 16:54 UTC (permalink / raw)
To: kernelnewbies
On Tue, 18 Mar 2014 19:01:50 +0300, Nada Saif said:
> I want to measure thread context switching in c, How I can do that?
What are you trying to measure, exactly, and why? The answer depends on
the details of the question.
However, my first go-to solution would see if 'perf' can cough up the
numbers you need. It's able to slurp out all sorts of timing data from
the kernel (though some data and trace points require CONFIG_* variables
to be set in the kernel build).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140318/400ecba8/attachment.bin
^ permalink raw reply [flat|nested] 8+ messages in thread
* thread context switching
2014-03-18 16:54 ` Valdis.Kletnieks at vt.edu
@ 2014-03-18 17:12 ` Mandeep Sandhu
0 siblings, 0 replies; 8+ messages in thread
From: Mandeep Sandhu @ 2014-03-18 17:12 UTC (permalink / raw)
To: kernelnewbies
On Tue, Mar 18, 2014 at 10:24 PM, <Valdis.Kletnieks@vt.edu> wrote:
> On Tue, 18 Mar 2014 19:01:50 +0300, Nada Saif said:
>
>> I want to measure thread context switching in c, How I can do that?
Looks suspiciously like an interview-type question? :)
>
> What are you trying to measure, exactly, and why? The answer depends on
> the details of the question.
>
> However, my first go-to solution would see if 'perf' can cough up the
> numbers you need. It's able to slurp out all sorts of timing data from
> the kernel (though some data and trace points require CONFIG_* variables
> to be set in the kernel build).
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* thread context switching
2014-03-18 16:01 thread context switching Nada Saif
` (2 preceding siblings ...)
2014-03-18 16:54 ` Valdis.Kletnieks at vt.edu
@ 2014-03-19 9:10 ` nayobix
2014-03-19 10:54 ` Oussama Jabbari
3 siblings, 1 reply; 8+ messages in thread
From: nayobix @ 2014-03-19 9:10 UTC (permalink / raw)
To: kernelnewbies
Try ftrace for the scheduler
On March 18, 2014 6:01:50 PM EET, Nada Saif <nada.saif7@gmail.com> wrote:
>Hi,
>
>I want to measure thread context switching in c, How I can do that?
>
>Thanks,
>N.A.S
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Kernelnewbies mailing list
>Kernelnewbies at kernelnewbies.org
>http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
--
nayobix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140319/0a0a600a/attachment.html
^ permalink raw reply [flat|nested] 8+ messages in thread
* thread context switching
2014-03-19 9:10 ` nayobix
@ 2014-03-19 10:54 ` Oussama Jabbari
2014-03-19 19:53 ` Nada Saif
0 siblings, 1 reply; 8+ messages in thread
From: Oussama Jabbari @ 2014-03-19 10:54 UTC (permalink / raw)
To: kernelnewbies
Hello,
maybe KernalShark can help:
https://lwn.net/Articles/425583/
Regards,
On Wed, Mar 19, 2014 at 10:10 AM, nayobix <nayobix@nayobix.org> wrote:
> Try ftrace for the scheduler
>
> On March 18, 2014 6:01:50 PM EET, Nada Saif <nada.saif7@gmail.com> wrote:
>>
>> Hi,
>>
>> I want to measure thread context switching in c, How I can do that?
>>
>> Thanks,
>> N.A.S
>>
>> ________________________________
>>
>> Kernelnewbies mailing list
>> Kernelnewbies at kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
> --
> nayobix
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* thread context switching
2014-03-19 10:54 ` Oussama Jabbari
@ 2014-03-19 19:53 ` Nada Saif
0 siblings, 0 replies; 8+ messages in thread
From: Nada Saif @ 2014-03-19 19:53 UTC (permalink / raw)
To: kernelnewbies
Thanks guys . I thought there is an easy way for that...I'm trying to do it
with multi-threads & synchronization..
Bests,
On Wed, Mar 19, 2014 at 1:54 PM, Oussama Jabbari
<oussama.jabbari@gmail.com>wrote:
> Hello,
>
> maybe KernalShark can help:
>
> https://lwn.net/Articles/425583/
>
> Regards,
>
> On Wed, Mar 19, 2014 at 10:10 AM, nayobix <nayobix@nayobix.org> wrote:
> > Try ftrace for the scheduler
> >
> > On March 18, 2014 6:01:50 PM EET, Nada Saif <nada.saif7@gmail.com>
> wrote:
> >>
> >> Hi,
> >>
> >> I want to measure thread context switching in c, How I can do that?
> >>
> >> Thanks,
> >> N.A.S
> >>
> >> ________________________________
> >>
> >> Kernelnewbies mailing list
> >> Kernelnewbies at kernelnewbies.org
> >> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> >
> >
> > --
> > nayobix
> >
> > _______________________________________________
> > Kernelnewbies mailing list
> > Kernelnewbies at kernelnewbies.org
> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140319/de28174a/attachment.html
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-03-19 19:53 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-18 16:01 thread context switching Nada Saif
2014-03-18 16:10 ` parinay
2014-03-18 16:20 ` Greg KH
2014-03-18 16:54 ` Valdis.Kletnieks at vt.edu
2014-03-18 17:12 ` Mandeep Sandhu
2014-03-19 9:10 ` nayobix
2014-03-19 10:54 ` Oussama Jabbari
2014-03-19 19:53 ` Nada Saif
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.