Changeset 1597

Show
Ignore:
Timestamp:
03/06/08 21:19:00 (6 months ago)
Author:
common
Message:

libemu

  • profiling for socket in w32 env
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libemu/trunk/src/environment/win32/env_w32_dll_export_ws2_32_hooks.c

    r1551 r1597  
    499499*/ 
    500500 
     501        emu_profile_function_add(env->profile, "socket"); 
     502 
    501503        uint32_t af; 
    502504        POP_DWORD(c, &af); 
     505        emu_profile_argument_add_int(env->profile, "int", "af", af); 
    503506 
    504507        uint32_t type; 
    505508        POP_DWORD(c, &type); 
     509        emu_profile_argument_add_int(env->profile, "int", "type", type); 
    506510 
    507511        uint32_t protocol; 
    508512        POP_DWORD(c, &protocol); 
     513        emu_profile_argument_add_int(env->profile, "int", "protocol", protocol); 
    509514 
    510515        int s = 111; 
     
    516521        printf("socket %i \n", s); 
    517522        emu_cpu_reg32_set(c, eax, s); 
     523 
     524        emu_profile_function_returnvalue_int_set(env->profile, "SOCKET", s); 
    518525 
    519526        emu_cpu_eip_set(c, eip_save);