Skip to main content

drmgr_insert_write_tls_field

Function drmgr_insert_write_tls_field 

Source
pub unsafe extern "C" fn drmgr_insert_write_tls_field(
    drcontext: *mut c_void,
    idx: c_int,
    ilist: *mut instrlist_t,
    where_: *mut instr_t,
    reg: reg_id_t,
    scratch: reg_id_t,
) -> bool_
Expand description

Inserts into \p ilist prior to \p where meta-instruction(s) to write the general-purpose full-size register \p reg to the user-controlled drcontext field for this thread and index. Writes to the same field as drmgr_set_tls_field(). The register \p scratch will be overwritten. \return whether successful.