[go: up one dir, main page]

File: t014_ucontext.py

package info (click to toggle)
uftrace 0.9.0-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 3,896 kB
  • sloc: ansic: 41,425; python: 7,369; makefile: 698; asm: 488; cpp: 461; sh: 349
file content (22 lines) | stat: -rw-r--r-- 671 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env python

from runtest import TestBase

class TestCase(TestBase):
    def __init__(self):
        TestBase.__init__(self, 'ucontext', """
# DURATION    TID     FUNCTION
  79.593 us [28383] | __cxa_atexit();
            [28383] | main() {
   1.606 us [28383] |   getcontext();
   1.584 us [28383] |   makecontext();
            [28383] |   foo() {
            [28383] |     swapcontext() {
            [28383] |       bar() {
   2.384 us [28383] |         getpid();
   5.700 us [28383] |       } /* bar */
   8.716 us [28383] |     } /* swapcontext */
   9.489 us [28383] |   } /* foo */
   0.130 us [28383] |   baz();
  15.586 us [28383] | } /* main */
""")