How to measure the time taken per call when a single or multiple process is accessing?

Solution Verified - Updated -

Issue

  • How to measure the time taken per call when a single or multiple process is accessing?
  • calculate time taken by per call when accessing process.
  • Is there any impact if multiple processes(10+) accessing same memory(shared) location using a single call?
eg:-  Currently following GNU call is in use
Currently I am using the GNU call:

__asm __volatile ("lock; cmpxchgl %2, %1"
                         : "=a" (ret), "=m" (*mem)
                         : "r" (newval), "m" (*mem), "0" (oldval));

Environment

  • Red Hat Enterprise Linux 6.6
  • Intel(R) Xeon(R)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In