Re: thread context switching

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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).

Attachment: pgpE2Q4JERiIC.pgp
Description: PGP signature

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux