Commit 4005ca60 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig 💜

Dump JS

parent fc1d98a5
......@@ -254,6 +254,7 @@ close(int fd)
/* HW version */
static bool bifrost = false;
int allocation_number = 0;
extern FILE * log_output;
/* XXX: Android has a messed up ioctl signature */
int ioctl(int fd, int _request, ...)
......@@ -287,6 +288,14 @@ int ioctl(int fd, int _request, ...)
if (IOCTL_CASE(request) == IOCTL_CASE(MALI_IOCTL_JOB_SUBMIT)) {
const struct mali_ioctl_job_submit *js = ptr;
struct mali_jd_atom_v2 *atoms = js->addr;
for (unsigned i = 0; i < js->nr_atoms; ++i) {
unsigned core_req = atoms[i].core_req | atoms[i].compat_core_req;
fprintf(log_output, "JS %llx %X %d\n", atoms[i].jc, core_req, bifrost);
}
replay_memory();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment