File: t026_filter_trigger.py

package info (click to toggle)
uftrace 0.18.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,356 kB
  • sloc: ansic: 49,770; python: 11,181; asm: 837; makefile: 769; sh: 637; cpp: 627; javascript: 191
file content (30 lines) | stat: -rw-r--r-- 963 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
23
24
25
26
27
28
29
30
#!/usr/bin/env python3

from runtest import TestBase

class TestCase(TestBase):
    def __init__(self):
        TestBase.__init__(self, 'allocfree', """
# DURATION    TID     FUNCTION
            [  767] | main() {
            [  767] |   alloc1() {
            [  767] |     alloc2() {
   4.223 us [  767] |       alloc3();
   4.848 us [  767] |     } /* alloc2 */
   5.417 us [  767] |   } /* alloc1 */
            [  767] |   free1() {
            [  767] |     free2() {
            [  767] |       free3() {
            [  767] |         free4() {
            [  767] |           free5() {
   1.104 us [  767] |             free();
   1.974 us [  767] |           } /* free5 */
   2.289 us [  767] |         } /* free4 */
   2.577 us [  767] |       } /* free3 */
   2.857 us [  767] |     } /* free2 */
   3.188 us [  767] |   } /* free1 */
  66.699 us [  767] | } /* main */
""")

    def setup(self):
        self.option = '-F "main" -F "alloc3@depth=1"'