{"name": "get_new_event_name", "code": "__int64 __fastcall get_new_event_name ( char * @@a1@@ , size_t @@a2@@ , const char * @@a3@@ , __int64 @@a4@@ , __int64 @@a5@@ , __int64 @@a6@@ ) { char * v6 ; __int64 result ; __int64 v8 ; char @@v9@@ ; int @@i@@ ; int @@v13@@ ; @@v9@@ = @@a5@@ ; @@v13@@ = e_snprintf ( @@a1@@ , @@a2@@ , String , ( __int64 ) @@a3@@ , @@a5@@ , @@a6@@ ) ; if ( @@v13@@ >= Number ) { if ( ! strlist__has_entry ( @@a4@@ , ( __int64 ) @@a1@@ ) ) { result = Number L ; } else if ( @@v9@@ != Number ) { eprintf ( Number L , String , @@a3@@ ) ; result = Number L ; } else { for ( @@i@@ = Number ; @@i@@ <= Number ; ++ @@i@@ ) { @@v13@@ = e_snprintf ( @@a1@@ , @@a2@@ , String , ( __int64 ) @@a3@@ , ( unsigned int ) @@i@@ , v8 ) ; if ( @@v13@@ < Number ) goto LABEL_2 ; if ( ! strlist__has_entry ( @@a4@@ , ( __int64 ) @@a1@@ ) ) break ; } if ( @@i@@ == Number ) { eprintf ( Number L , String ) ; @@v13@@ = Number ; } result = ( unsigned int ) @@v13@@ ; } } else { LABEL_2 : v6 = strerror ( - @@v13@@ ) ; eprintf ( Number L , String , v6 ) ; result = ( unsigned int ) @@v13@@ ; } return result ; }", "source": [{"n": "a3", "t": {"T": 3, "t": "const char"}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r24"}, {"n": "a1", "t": {"T": 3, "t": "char"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "size_t", "s": 8}, "location": "r64"}, {"n": "a5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r72"}, {"n": "a6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r80"}, {"n": "v13", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s16"}, {"n": "v9", "t": {"T": 1, "n": "char", "s": 1}, "location": "s52"}]}
{"name": "strlist__has_entry", "code": "bool __fastcall strlist__has_entry ( __int64 @@a1@@ , __int64 @@a2@@ ) { return strlist__find ( @@a1@@ , @@a2@@ ) != Number ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}]} {"name": "e_snprintf", "code": "__int64 e_snprintf ( char * @@a1@@ , size_t @@a2@@ , const char * @@a3@@ , __int64 @@a4@@ , __int64 @@a5@@ , __int64 @@a6@@ , ... ) { int @@v7@@ ; gcc_va_list @@arg@@ ; unsigned __int64 @@v9@@ ; __int64 @@v10@@ ; __int64 @@v11@@ ; __int64 @@v12@@ ; va_start ( @@arg@@ , @@a6@@ ) ; @@v10@@ = @@a4@@ ; @@v11@@ = @@a5@@ ; @@v12@@ = @@a6@@ ; @@v9@@ = __readfsqword ( Number ) ; @@arg@@ [ Number ] . gp_offset = Number ; @@v7@@ = vsnprintf ( @@a1@@ , @@a2@@ , @@a3@@ , @@arg@@ ) ; if ( @@v7@@ >= ( int ) @@a2@@ ) @@v7@@ = Number ; return ( unsigned int ) @@v7@@ ; }", "source": [{"n": "a3", "t": {"T": 3, "t": "const char"}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r24"}, {"n": "a1", "t": {"T": 3, "t": "char"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "size_t", "s": 8}, "location": "r64"}, {"n": "a5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r72"}, {"n": "a6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r80"}, {"n": "v12", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s136"}, {"n": "v11", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s144"}, {"n": "v10", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s152"}, {"n": "v9", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s184"}, {"n": "arg", "t": {"T": 2, "n": 1, "s": 24, "t": "__va_list_tag"}, "location": "s208"}, {"n": "v7", "t": {"T": 1, "n": "int", "s": 4}, "location": "s212"}]} {"name": "__add_probe_trace_events", "code": "__int64 __fastcall _add_probe_trace_events ( char * * @@a1@@ , __int64 @@a2@@ , int @@a3@@ , unsigned __int8 @@a4@@ ) { __int64 result ; const char * v5 ; __int64 @@v6@@ ; int @@i@@ ; int @@v10@@ ; _BYTE @@fd@@ [ Number ] ; char * s ; char * sa ; char * v14 ; char * v15 ; __int64 @@v16@@ ; char @@v17@@ [ Number ] ; unsigned __int64 @@v18@@ ; @@v18@@ = __readfsqword ( Number ) ; * ( _DWORD * ) & @@fd@@ [ Number ] = Number ; * ( _QWORD * ) @@fd@@ = ( unsigned int ) open_kprobe_events ( Number ) ; if ( * ( int * ) @@fd@@ < Number ) return * ( unsigned int * ) @@fd@@ ; @@v16@@ = get_probe_trace_event_names ( * ( int * ) @@fd@@ , Number ) ; if ( @@v16@@ ) { @@v10@@ = Number ; if ( @@a3@@ <= Number ) v5 = String ; else v5 = String ; printf ( String , v5 ) ; for ( @@i@@ = Number ; @@i@@ < @@a3@@ ; ++ @@i@@ ) { * ( _QWORD * ) & @@fd@@ [ Number ] = ( ( __int64 ) @@i@@ << Number ) + @@a2@@ ; if ( * @@a1@@ ) s = * @@a1@@ ; else s = @@a1@@ [ Number ] ? @@a1@@ [ Number ] : * ( _QWORD * ) ( * ( _QWORD * ) & @@fd@@ [ Number ] + Number L ) ; v14 = @@a1@@ [ Number ] ? @@a1@@ [ Number ] : String ; @@v10@@ = get_new_event_name ( @@v17@@ , Number , s , @@v16@@ , @@a4@@ , @@v6@@ ) ; if ( @@v10@@ < Number ) break ; * * ( _QWORD * * ) & @@fd@@ [ Number ] = strdup ( @@v17@@ ) ; * ( _QWORD * ) ( * ( _QWORD * ) & @@fd@@ [ Number ] + Number L ) = strdup ( v14 ) ; if ( ! * * ( _QWORD * * ) & @@fd@@ [ Number ] || ! * ( _QWORD * ) ( * ( _QWORD * ) & @@fd@@ [ Number ] + Number L ) ) { @@v10@@ = Number ; break ; } @@v10@@ = write_probe_trace_event ( * ( int * ) @@fd@@ , * ( __int64 * ) & @@fd@@ [ Number ] ) ; if ( @@v10@@ < Number ) break ; strlist__add ( @@v16@@ , @@v17@@ ) ; sa = * @@a1@@ ; v15 = @@a1@@ [ Number ] ; * @@a1@@ = * * ( char * * * ) & @@fd@@ [ Number ] ; @@a1@@ [ Number ] = * ( char * * ) ( * ( _QWORD * ) & @@fd@@ [ Number ] + Number L ) ; show_perf_probe_event ( ( __int64 ) @@a1@@ ) ; * @@a1@@ = sa ; @@a1@@ [ Number ] = v15 ; @@a4@@ = Number ; } if ( @@v10@@ >= Number ) { puts ( String ) ; printf ( String , * ( const char * * ) ( * ( _QWORD * ) & @@fd@@ [ Number ] + Number L ) , * * ( const char * * * ) & @@fd@@ [ Number ] ) ; } strlist__delete ( @@v16@@ ) ; close ( * ( int * ) @@fd@@ ) ; result = ( unsigned int ) @@v10@@ ; } else { eprintf ( Number L , String ) ; result = Number L ; } return result ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "int", "s": 4}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "unsigned __int8", "s": 1}, "location": "r24"}, {"n": "a1", "t": {"T": 3, "t": "char *"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r80"}, {"n": "fd", "t": {"T": 2, "n": 12, "s": 1, "t": "_BYTE"}, "location": "s116"}, {"n": "v10", "t": {"T": 1, "n": "int", "s": 4}, "location": "s120"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s124"}, {"n": "v18", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}, {"n": "v17", "t": {"T": 2, "n": 72, "s": 1, "t": "char"}, "location": "s80"}, {"n": "v16", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s88"}]}