{"name": "count_tracepoints", "code": "__int64 count_tracepoints ( ) { __int64 v0 ; __int64 @@v1@@ ; __int64 v2 ; __int64 result ; __int64 v4 ; unsigned int @@v5@@ ; DIR * @@v6@@ ; struct dirent64 * @@v7@@ ; DIR * @@dirp@@ ; struct dirent64 * @@v9@@ ; char @@name@@ [ Number ] ; char @@v11@@ [ Number ] ; unsigned __int64 @@v12@@ ; @@v12@@ = __readfsqword ( Number ) ; @@v5@@ = Number ; v0 = debugfs_find_mountpoint ( ) ; scnprintf ( @@name@@ , Number L , String , v0 , @@v1@@ , v2 ) ; @@v6@@ = opendir ( @@name@@ ) ; if ( @@v6@@ ) { while ( Number ) { @@v7@@ = readdir64 ( @@v6@@ ) ; if ( ! @@v7@@ ) break ; if ( strcmp ( @@v7@@ -> d_name , String ) && strcmp ( @@v7@@ -> d_name , String ) && strcmp ( @@v7@@ -> d_name , String ) && strcmp ( @@v7@@ -> d_name , String ) && strcmp ( @@v7@@ -> d_name , String ) ) { scnprintf ( @@v11@@ , Number L , String , ( __int64 ) @@name@@ , ( __int64 ) @@v7@@ -> d_name , v4 ) ; @@dirp@@ = opendir ( @@v11@@ ) ; if ( ! @@dirp@@ ) { eprintf ( Number L , String , String , Number L , String ) ; return Number ; } while ( Number ) { @@v9@@ = readdir64 ( @@dirp@@ ) ; if ( ! @@v9@@ ) break ; if ( strcmp ( @@v9@@ -> d_name , String ) && strcmp ( @@v9@@ -> d_name , String ) && strcmp ( @@v9@@ -> d_name , String ) ) { if ( strcmp ( @@v9@@ -> d_name , String ) ) ++ @@v5@@ ; } } closedir ( @@dirp@@ ) ; } } closedir ( @@v6@@ ) ; result = @@v5@@ ; } else { eprintf ( Number L , String , String , Number L , String ) ; result = Number ; } return result ; }", "source": [{"n": "v1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r72"}, {"n": "v11", "t": {"T": 2, "n": 4104, "s": 1, "t": "char"}, "location": "s4112"}, {"n": "v12", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}, {"n": "name", "t": {"T": 2, "n": 4096, "s": 1, "t": "char"}, "location": "s8208"}, {"n": "v9", "t": {"T": 3, "t": "struct dirent64"}, "location": "s8216"}, {"n": "dirp", "t": {"T": 3, "t": "DIR"}, "location": "s8224"}, {"n": "v7", "t": {"T": 3, "t": "struct dirent64"}, "location": "s8232"}, {"n": "v6", "t": {"T": 3, "t": "DIR"}, "location": "s8240"}, {"n": "v5", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s8244"}]}
{"name": "scnprintf", "code": "__int64 scnprintf ( char * @@a1@@ , signed __int64 @@a2@@ , const char * @@a3@@ , __int64 @@a4@@ , __int64 @@a5@@ , __int64 @@a6@@ , ... ) { __int64 @@result@@ ; 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 ( @@a2@@ > @@v7@@ ) @@result@@ = ( unsigned int ) @@v7@@ ; else @@result@@ = ( unsigned int ) ( @@a2@@ - Number ) ; 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": "signed __int64", "s": 8}, "location": "r64"}, {"n": "a5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r72"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"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": "s220"}]} {"name": "test__all_tracepoints", "code": "__int64 __fastcall test__all_tracepoints ( __int64 @@a1@@ ) { if ( ( unsigned int ) count_tracepoints ( ) == * ( _DWORD * ) ( @@a1@@ + Number ) ) return test__checkevent_tracepoint_multi ( ( __int64 * * ) @@a1@@ ) ; eprintf ( Number L , String , String , Number L , String ) ; return Number ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}]}