NVlabs / NVBit

198 stars 18 forks source link

mem_trace address type #117

Open mahmoodn opened 1 year ago

mahmoodn commented 1 year ago

Regarding the memory addresses in mem_trace, I would like to know if the addresses are virtual or physical? I mean this piece of code:

                std::stringstream ss;
                ss << "CTX " << HEX(ctx) << " - grid_launch_id "
                   << ma->grid_launch_id << " - CTA " << ma->cta_id_x << ","
                   << ma->cta_id_y << "," << ma->cta_id_z << " - warp "
                   << ma->warp_id << " - " << id_to_opcode_map[ma->opcode_id]
                   << " - ";

                for (int i = 0; i < 32; i++) {
                    ss << HEX(ma->addrs[i]) << " ";
                }

                printf("MEMTRACE: %s\n", ss.str().c_str());

The structure defines the addresses as uint64_t addrs[32];. Any thoughts on that?