{"name": "get_probe_trace_command_rawlist", "code": "__int64 __fastcall get_probe_trace_command_rawlist ( int @@a1@@ ) { int v1 ; int i ; char * v3 ; int @@v5@@ ; int @@v6@@ ; __int64 @@v7@@ ; FILE * @@stream@@ ; const char * @@v9@@ ; char @@s@@ [ Number ] ; unsigned __int64 @@v11@@ ; @@v11@@ = __readfsqword ( Number ) ; @@v7@@ = strlist__new ( Number L , Number L ) ; v1 = dup ( @@a1@@ ) ; @@stream@@ = fdopen ( v1 , String ) ; for ( i = feof ( @@stream@@ ) ; ! i ; i = feof ( @@stream@@ ) ) { @@v9@@ = fgets ( @@s@@ , Number , @@stream@@ ) ; if ( ! @@v9@@ ) break ; @@v5@@ = strlen ( @@v9@@ ) - Number ; if ( @@v9@@ [ @@v5@@ ] == Number ) @@v9@@ [ @@v5@@ ] = Number ; @@v6@@ = strlist__add ( @@v7@@ , @@s@@ ) ; if ( @@v6@@ < Number ) { v3 = strerror ( - @@v6@@ ) ; eprintf ( Number L , String , v3 ) ; strlist__delete ( @@v7@@ ) ; return Number L ; } } fclose ( @@stream@@ ) ; return @@v7@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r56"}, {"n": "s", "t": {"T": 2, "n": 264, "s": 1, "t": "char"}, "location": "s272"}, {"n": "v9", "t": {"T": 3, "t": "const char"}, "location": "s280"}, {"n": "stream", "t": {"T": 3, "t": "FILE"}, "location": "s288"}, {"n": "v7", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s296"}, {"n": "v6", "t": {"T": 1, "n": "int", "s": 4}, "location": "s300"}, {"n": "v5", "t": {"T": 1, "n": "int", "s": 4}, "location": "s304"}, {"n": "v11", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]}
{"name": "show_perf_probe_events", "code": "__int64 show_perf_probe_events ( ) { int @@v1@@ ; int @@fd@@ ; __int64 @@i@@ ; __int64 @@v4@@ ; char @@s@@ [ Number ] ; char @@v6@@ [ Number ] ; unsigned __int64 @@v7@@ ; @@v7@@ = __readfsqword ( Number ) ; setup_pager ( ) ; @@v1@@ = init_vmlinux ( ) ; if ( @@v1@@ < Number ) return ( unsigned int ) @@v1@@ ; memset ( @@s@@ , Number , sizeof ( @@s@@ ) ) ; memset ( @@v6@@ , Number , sizeof ( @@v6@@ ) ) ; @@fd@@ = open_kprobe_events ( Number ) ; if ( @@fd@@ < Number ) return ( unsigned int ) @@fd@@ ; @@v4@@ = get_probe_trace_command_rawlist ( @@fd@@ ) ; close ( @@fd@@ ) ; if ( ! @@v4@@ ) return Number L ; for ( @@i@@ = strlist__first ( @@v4@@ ) ; @@i@@ ; @@i@@ = strlist__next ( @@i@@ ) ) { @@v1@@ = parse_probe_trace_command ( * ( const char * * ) ( @@i@@ + Number ) , ( __int64 ) @@s@@ ) ; if ( @@v1@@ >= Number ) { @@v1@@ = convert_to_perf_probe_event ( ( __int64 ) @@s@@ , ( __int64 ) @@v6@@ ) ; if ( @@v1@@ >= Number ) @@v1@@ = show_perf_probe_event ( ( __int64 ) @@v6@@ ) ; } clear_perf_probe_event ( ( __int64 ) @@v6@@ ) ; clear_probe_trace_event ( ( __int64 ) @@s@@ ) ; if ( @@v1@@ < Number ) break ; } strlist__delete ( @@v4@@ ) ; return ( unsigned int ) @@v1@@ ; }", "source": [{"n": "s", "t": {"T": 2, "n": 64, "s": 1, "t": "char"}, "location": "s144"}, {"n": "v4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s152"}, {"n": "i", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s160"}, {"n": "fd", "t": {"T": 1, "n": "int", "s": 4}, "location": "s164"}, {"n": "v1", "t": {"T": 1, "n": "int", "s": 4}, "location": "s168"}, {"n": "v7", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}, {"n": "v6", "t": {"T": 2, "n": 72, "s": 1, "t": "char"}, "location": "s80"}]} {"name": "get_probe_trace_event_names", "code": "__int64 __fastcall get_probe_trace_event_names ( int @@a1@@ , char @@a2@@ ) { __int64 @@v2@@ ; int @@v4@@ ; __int64 @@i@@ ; __int64 @@v6@@ ; __int64 @@v7@@ ; __int64 @@s@@ [ Number ] ; char @@v9@@ [ Number ] ; unsigned __int64 @@v10@@ ; @@v10@@ = __readfsqword ( Number ) ; @@v4@@ = Number ; memset ( @@s@@ , Number , sizeof ( @@s@@ ) ) ; @@v6@@ = get_probe_trace_command_rawlist ( @@a1@@ ) ; @@v7@@ = strlist__new ( Number L , Number L ) ; for ( @@i@@ = strlist__first ( @@v6@@ ) ; @@i@@ ; @@i@@ = strlist__next ( @@i@@ ) ) { @@v4@@ = parse_probe_trace_command ( * ( const char * * ) ( @@i@@ + Number ) , ( __int64 ) @@s@@ ) ; if ( @@v4@@ < Number ) break ; if ( @@a2@@ ) { @@v4@@ = e_snprintf ( @@v9@@ , Number , String , @@s@@ [ Number ] , @@s@@ [ Number ] , @@v2@@ ) ; if ( @@v4@@ >= Number ) @@v4@@ = strlist__add ( @@v7@@ , @@v9@@ ) ; } else { @@v4@@ = strlist__add ( @@v7@@ , @@s@@ [ Number ] ) ; } clear_probe_trace_event ( ( __int64 ) @@s@@ ) ; if ( @@v4@@ < Number ) break ; } strlist__delete ( @@v6@@ ) ; if ( @@v4@@ >= Number ) return @@v7@@ ; strlist__delete ( @@v7@@ ) ; return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "char", "s": 1}, "location": "r64"}, {"n": "v2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r80"}, {"n": "v9", "t": {"T": 2, "n": 136, "s": 1, "t": "char"}, "location": "s144"}, {"n": "s", "t": {"T": 2, "n": 8, "s": 8, "t": "__int64"}, "location": "s208"}, {"n": "v7", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s216"}, {"n": "v6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s224"}, {"n": "i", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s232"}, {"n": "v4", "t": {"T": 1, "n": "int", "s": 4}, "location": "s236"}, {"n": "v10", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]}