{"name": "perf_evsel__is_group_event", "code": "_BOOL8 __fastcall perf_evsel__is_group_event ( __int64 @@a1@@ ) { if ( symbol_conf [ Number ] != Number ) return Number L ; return perf_evsel__is_group_leader ( @@a1@@ ) && * ( int * ) ( @@a1@@ + Number ) > Number ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}]}
{"name": "perf_evsel__is_group_leader", "code": "bool __fastcall perf_evsel__is_group_leader ( __int64 @@a1@@ ) { return @@a1@@ == * ( _QWORD * ) ( @@a1@@ + Number ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}]} {"name": "disasm_line__print", "code": "__int64 __fastcall disasm_line__print ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ , __int64 @@a4@@ , __int64 @@a5@@ , int @@a6@@ , int @@a7@@ , int @@a8@@ , __int64 * @@a9@@ ) { double @@v9@@ ; __int64 @@v11@@ ; int v12 ; __int64 * @@v13@@ ; int @@v18@@ ; int i ; int j ; int @@v21@@ ; int @@v22@@ ; char * @@s2@@ ; unsigned __int64 @@v24@@ ; double @@v25@@ ; double @@v26@@ ; void * @@ptr@@ ; void * @@v28@@ ; __int64 @@v29@@ ; __int64 @@v30@@ ; __int64 @@v31@@ ; _QWORD * @@v32@@ ; __int64 * @@v33@@ ; __int64 @@v34@@ ; unsigned __int64 @@v35@@ ; @@v18@@ = @@a2@@ ; @@v13@@ = @@a9@@ ; @@v35@@ = __readfsqword ( Number ) ; if ( * ( _QWORD * ) ( @@a1@@ + Number ) == Number ) { if ( @@a8@@ && @@a7@@ >= @@a8@@ ) return Number L ; @@v22@@ = Number ; if ( @@a9@@ ) return Number ; if ( perf_evsel__is_group_event ( @@a4@@ ) ) @@v22@@ = Number * * ( _DWORD * ) ( @@a4@@ + Number ) ; if ( * * ( _BYTE * * ) ( @@a1@@ + Number ) ) printf ( String , @@v22@@ , String , * ( const char * * ) ( @@a1@@ + Number ) ) ; else printf ( String , @@v22@@ , String ) ; } else { @@s2@@ = Number L ; @@v9@@ = Number ; @@v26@@ = Number ; @@ptr@@ = & @@v25@@ ; @@v28@@ = & @@v24@@ ; @@v21@@ = Number ; @@v29@@ = symbol__annotation ( @@a2@@ ) ; @@v30@@ = * ( _QWORD * ) ( @@a1@@ + Number ) ; @@v31@@ = @@v30@@ + @@a3@@ ; @@v32@@ = disasm__get_next_ip_line ( * ( _QWORD * * ) ( @@v29@@ + Number ) , ( _QWORD * ) @@a1@@ ) ; if ( perf_evsel__is_group_event ( @@a4@@ ) ) { @@v21@@ = * ( _DWORD * ) ( @@a4@@ + Number ) ; @@ptr@@ = calloc ( @@v21@@ , Number ) ; @@v28@@ = calloc ( @@v21@@ , Number ) ; if ( ! @@ptr@@ || ! @@v28@@ ) return Number ; } for ( i = Number ; i < @@v21@@ ; ++ i ) { if ( @@v32@@ ) @@v11@@ = @@v32@@ [ Number ] ; else @@v11@@ = @@a5@@ ; if ( * ( _QWORD * ) ( * ( _QWORD * ) ( @@v29@@ + Number ) + Number L ) ) v12 = i ; else v12 = * ( _DWORD * ) ( @@a4@@ + Number ) + i ; disasm__calc_percent ( @@v29@@ , v12 , @@v30@@ , @@v11@@ , & @@s2@@ , & @@v24@@ ) ; @@v25@@ = @@v9@@ ; * ( ( double * ) @@ptr@@ + i ) = @@v9@@ ; * ( ( _QWORD * ) @@v28@@ + i ) = @@v24@@ ; @@v9@@ = @@v25@@ ; if ( @@v25@@ > @@v26@@ ) { @@v9@@ = @@v25@@ ; @@v26@@ = @@v25@@ ; } } if ( ( double ) @@a6@@ > @@v26@@ ) return Number ; if ( @@a8@@ && @@a7@@ >= @@a8@@ ) return Number L ; if ( @@a9@@ ) { while ( @@v13@@ != * ( __int64 * * ) ( @@v29@@ + Number ) && @@v13@@ != ( __int64 * ) @@a1@@ ) { disasm_line__print ( ( _DWORD ) @@v13@@ , @@v18@@ , @@a3@@ , @@a4@@ , @@a5@@ , Number , Number , Number , Number L ) ; @@v33@@ = ( __int64 * ) * @@v13@@ ; @@v13@@ = @@v33@@ ; } } @@v34@@ = get_percent_color ( @@v26@@ ) ; if ( @@s2@@ && ( ! prev_line_14041 || strcmp ( prev_line_14041 , @@s2@@ ) || @@v34@@ != prev_color_14042 ) ) { color_fprintf ( stdout , @@v34@@ , String , @@s2@@ ) ; prev_line_14041 = @@s2@@ ; prev_color_14042 = @@v34@@ ; } for ( j = Number ; j < @@v21@@ ; ++ j ) { @@v25@@ = * ( ( double * ) @@ptr@@ + j ) ; @@v24@@ = * ( ( _QWORD * ) @@v28@@ + j ) ; @@v34@@ = get_percent_color ( @@v25@@ ) ; if ( symbol_conf [ Number ] ) color_fprintf ( stdout , @@v34@@ , String , @@v24@@ ) ; else color_fprintf ( stdout , @@v34@@ , String , @@v25@@ ) ; } printf ( String ) ; color_fprintf ( stdout , String , String , @@v31@@ ) ; color_fprintf ( stdout , String , String , * ( const char * * ) ( @@a1@@ + Number ) ) ; if ( @@ptr@@ != & @@v25@@ ) free ( @@ptr@@ ) ; if ( @@v28@@ != & @@v24@@ ) free ( @@v28@@ ) ; } return Number L ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r24"}, {"n": "v9", "t": {"T": 1, "n": "double", "s": 8}, "location": "r496"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "a5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r72"}, {"n": "v11", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "a6", "t": {"T": 1, "n": "int", "s": 4}, "location": "r80"}, {"n": "a7", "t": {"T": 1, "n": "int", "s": 4}, "location": "s-16"}, {"n": "a8", "t": {"T": 1, "n": "int", "s": 4}, "location": "s-24"}, {"n": "a9", "t": {"T": 3, "t": "__int64"}, "location": "s-32"}, {"n": "s2", "t": {"T": 3, "t": "char"}, "location": "s104"}, {"n": "v22", "t": {"T": 1, "n": "int", "s": 4}, "location": "s108"}, {"n": "v21", "t": {"T": 1, "n": "int", "s": 4}, "location": "s112"}, {"n": "v18", "t": {"T": 1, "n": "int", "s": 4}, "location": "s144"}, {"n": "v34", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v13", "t": {"T": 3, "t": "__int64"}, "location": "s192"}, {"n": "v33", "t": {"T": 3, "t": "__int64"}, "location": "s24"}, {"n": "v32", "t": {"T": 3, "t": "_QWORD"}, "location": "s32"}, {"n": "v31", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s40"}, {"n": "v30", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s48"}, {"n": "v29", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s56"}, {"n": "v28", "t": {"T": 3, "t": "void"}, "location": "s64"}, {"n": "ptr", "t": {"T": 3, "t": "void"}, "location": "s72"}, {"n": "v35", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}, {"n": "v26", "t": {"T": 1, "n": "double", "s": 8}, "location": "s80"}, {"n": "v25", "t": {"T": 1, "n": "double", "s": 8}, "location": "s88"}, {"n": "v24", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s96"}]} {"name": "symbol__get_source_line", "code": "__int64 __fastcall symbol__get_source_line ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ , __int64 * @@a4@@ , int @@a5@@ ) { __int64 @@v6@@ ; __int64 v7 ; double v8 ; double @@v9@@ ; unsigned __int64 v10 ; double v11 ; __int64 v12 ; int i ; int j ; int @@k@@ ; int @@v19@@ ; int @@v20@@ ; __int64 @@v21@@ ; __int64 @@v22@@ ; __int64 @@v23@@ ; size_t @@size@@ ; double @@v25@@ ; __int64 @@v26@@ ; __int64 * @@v27@@ ; __int64 @@v28@@ ; __int64 @@v29@@ ; unsigned __int64 @@v30@@ ; @@v30@@ = __readfsqword ( Number ) ; @@v20@@ = * ( _DWORD * ) ( @@a3@@ + Number ) ; @@v26@@ = symbol__annotation ( @@a1@@ ) ; @@v27@@ = ( __int64 * ) annotation__histogram ( @@v26@@ , @@v20@@ ) ; @@v21@@ = Number L ; @@v19@@ = Number ; @@v23@@ = * @@v27@@ ; @@size@@ = Number L ; if ( perf_evsel__is_group_event ( @@a3@@ ) ) { for ( i = Number ; i < * ( _DWORD * ) ( @@a3@@ + Number ) ; ++ i ) { @@v27@@ = ( __int64 * ) annotation__histogram ( @@v26@@ , i + @@v20@@ ) ; @@v23@@ += * @@v27@@ ; } @@v19@@ = * ( _DWORD * ) ( @@a3@@ + Number ) ; @@size@@ += Number L * ( @@v19@@ - Number ) ; } if ( ! @@v23@@ ) return Number L ; @@v6@@ = * ( _QWORD * ) ( @@v26@@ + Number ) ; * ( _QWORD * ) ( @@v6@@ + Number ) = calloc ( @@a5@@ , @@size@@ ) ; @@v22@@ = * ( _QWORD * ) ( @@v6@@ + Number ) ; if ( ! * ( _QWORD * ) ( * ( _QWORD * ) ( @@v26@@ + Number ) + Number L ) ) return Number ; @@v28@@ = map__rip_2objdump ( @@a2@@ , * ( _QWORD * ) ( @@a1@@ + Number ) ) ; for ( j = Number ; j < @@a5@@ ; ++ j ) { @@v25@@ = Number ; * ( _DWORD * ) ( @@v22@@ + Number ) = @@v19@@ ; for ( @@k@@ = Number ; @@k@@ < @@v19@@ ; ++ @@k@@ ) { @@v27@@ = ( __int64 * ) annotation__histogram ( @@v26@@ , @@k@@ + @@v20@@ ) ; v7 = @@v27@@ [ j + Number ] ; if ( v7 < Number ) v8 = ( double ) ( int ) ( v7 & Number | ( ( unsigned __int64 ) v7 >> Number ) ) + ( double ) ( int ) ( v7 & Number | ( ( unsigned __int64 ) v7 >> Number ) ) ; else v8 = ( double ) ( int ) v7 ; @@v9@@ = Number * v8 ; v10 = * @@v27@@ ; if ( * @@v27@@ < Number ) v11 = ( double ) ( int ) ( * ( _DWORD * ) @@v27@@ & Number | ( v10 >> Number ) ) + ( double ) ( int ) ( * ( _DWORD * ) @@v27@@ & Number | ( v10 >> Number ) ) ; else v11 = ( double ) ( int ) v10 ; * ( double * ) ( @@v22@@ + Number L * @@k@@ + Number ) = @@v9@@ / v11 ; if ( * ( double * ) ( @@v22@@ + Number L * @@k@@ + Number ) > @@v25@@ ) @@v25@@ = * ( double * ) ( @@v22@@ + Number L * @@k@@ + Number ) ; } if ( @@v25@@ > Number ) { @@v29@@ = j + @@v28@@ ; v12 = get_srcline ( * ( _QWORD * ) ( @@a2@@ + Number ) , @@v29@@ , Number L , Number L ) ; * ( _QWORD * ) ( @@v22@@ + Number ) = v12 ; insert_source_line ( & @@v21@@ , @@v22@@ ) ; } @@v22@@ += @@size@@ ; } resort_source_line ( @@a4@@ , ( __int64 ) & @@v21@@ ) ; return Number L ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 3, "t": "__int64"}, "location": "r24"}, {"n": "v6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r32"}, {"n": "v9", "t": {"T": 1, "n": "double", "s": 8}, "location": "r512"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "a5", "t": {"T": 1, "n": "int", "s": 4}, "location": "r72"}, {"n": "v20", "t": {"T": 1, "n": "int", "s": 4}, "location": "s100"}, {"n": "v19", "t": {"T": 1, "n": "int", "s": 4}, "location": "s104"}, {"n": "k", "t": {"T": 1, "n": "int", "s": 4}, "location": "s108"}, {"n": "v30", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s24"}, {"n": "v29", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s32"}, {"n": "v28", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s40"}, {"n": "v27", "t": {"T": 3, "t": "__int64"}, "location": "s48"}, {"n": "v26", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s56"}, {"n": "v25", "t": {"T": 1, "n": "double", "s": 8}, "location": "s64"}, {"n": "size", "t": {"T": 1, "n": "size_t", "s": 8}, "location": "s72"}, {"n": "v23", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s80"}, {"n": "v22", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s88"}, {"n": "v21", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s96"}]} {"name": "symbol__annotate_printf", "code": "__int64 __fastcall symbol__annotate_printf ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ , char @@a4@@ , int @@a5@@ , int @@a6@@ , int @@a7@@ ) { int @@v8@@ ; int @@v13@@ ; int @@v14@@ ; unsigned int @@v15@@ ; int @@v16@@ ; int @@v17@@ ; int @@v18@@ ; const char * @@s@@ ; __int64 * @@i@@ ; __int64 * @@v21@@ ; __int64 @@v22@@ ; char * @@v23@@ ; __int64 @@v24@@ ; __int64 @@v25@@ ; char * @@path@@ ; __int64 @@v27@@ ; @@v22@@ = * ( _QWORD * ) ( @@a2@@ + Number ) ; @@v23@@ = ( char * ) perf_evsel__name ( @@a3@@ ) ; @@v24@@ = symbol__annotation ( @@a1@@ ) ; @@v21@@ = Number L ; @@v25@@ = map__rip_2objdump ( @@a2@@ , * ( _QWORD * ) ( @@a1@@ + Number ) ) ; @@v13@@ = Number ; @@v14@@ = Number ; @@v15@@ = Number ; @@v16@@ = Number ; @@path@@ = strdup ( * ( const char * * ) ( @@v22@@ + Number ) ) ; if ( ! @@path@@ ) return Number L ; if ( @@a4@@ ) @@s@@ = @@path@@ ; else @@s@@ = _xpg_basename ( @@path@@ ) ; @@v27@@ = symbol__size ( @@a1@@ ) ; @@v17@@ = strlen ( @@s@@ ) ; @@v18@@ = strlen ( @@v23@@ ) ; if ( perf_evsel__is_group_event ( @@a3@@ ) ) @@v16@@ = Number * * ( _DWORD * ) ( @@a3@@ + Number ) ; printf ( String , @@v16@@ , @@v16@@ , String , @@s@@ , @@v23@@ ) ; printf ( String , @@v17@@ + @@v16@@ + @@v18@@ , @@v17@@ + @@v16@@ + @@v18@@ , graph_dotted_line ) ; if ( verbose ) symbol__annotate_hits ( @@a1@@ , @@a3@@ ) ; for ( @@i@@ = * * ( __int64 * * * ) ( @@v24@@ + Number ) ; @@i@@ != * ( __int64 * * ) ( @@v24@@ + Number ) ; @@i@@ = ( __int64 * ) * @@i@@ ) { if ( @@a7@@ && ! @@v21@@ ) { @@v21@@ = @@i@@ ; @@v14@@ = Number ; } @@v8@@ = disasm_line__print ( ( __int64 ) @@i@@ , @@a1@@ , @@v25@@ , @@a3@@ , @@v27@@ , @@a5@@ , @@v13@@ , @@a6@@ , @@v21@@ ) ; if ( @@v8@@ ) { if ( @@v8@@ == Number ) { ++ @@v15@@ ; } else if ( @@a7@@ ) { if ( @@v14@@ == @@a7@@ ) @@v21@@ = ( __int64 * ) * @@v21@@ ; else ++ @@v14@@ ; } } else { ++ @@v13@@ ; if ( @@a7@@ ) { @@v13@@ += @@v14@@ ; @@v21@@ = Number L ; @@v14@@ = Number ; } } } free ( @@path@@ ) ; return @@v15@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "char", "s": 1}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "a5", "t": {"T": 1, "n": "int", "s": 4}, "location": "r72"}, {"n": "v8", "t": {"T": 1, "n": "int", "s": 4}, "location": "r8"}, {"n": "a6", "t": {"T": 1, "n": "int", "s": 4}, "location": "r80"}, {"n": "a7", "t": {"T": 1, "n": "int", "s": 4}, "location": "s-16"}, {"n": "s", "t": {"T": 3, "t": "const char"}, "location": "s104"}, {"n": "v18", "t": {"T": 1, "n": "int", "s": 4}, "location": "s112"}, {"n": "v17", "t": {"T": 1, "n": "int", "s": 4}, "location": "s116"}, {"n": "v16", "t": {"T": 1, "n": "int", "s": 4}, "location": "s120"}, {"n": "v15", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s124"}, {"n": "v14", "t": {"T": 1, "n": "int", "s": 4}, "location": "s128"}, {"n": "v13", "t": {"T": 1, "n": "int", "s": 4}, "location": "s132"}, {"n": "v27", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s40"}, {"n": "path", "t": {"T": 3, "t": "char"}, "location": "s48"}, {"n": "v25", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s56"}, {"n": "v24", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s64"}, {"n": "v23", "t": {"T": 3, "t": "char"}, "location": "s72"}, {"n": "v22", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s80"}, {"n": "v21", "t": {"T": 3, "t": "__int64"}, "location": "s88"}, {"n": "i", "t": {"T": 3, "t": "__int64"}, "location": "s96"}]}