Fix tracer
authorCafe <cafe@not.applicable>
Wed, 2 Aug 2017 02:17:48 +0000 (02:17 +0000)
committerCafe <cafe@not.applicable>
Wed, 2 Aug 2017 02:17:48 +0000 (02:17 +0000)
src/trace.c

index 15ee0281b7e38e946522102df0825d920617b888..71dc1720fc9872435a206ce5ee0a5f477e25a1d5 100644 (file)
@@ -50,6 +50,7 @@ static void assert_gpu_same(uint64_t addr, size_t s, uint8_t *synth)
 static void assert_gpu_zeroes(uint64_t addr, size_t s) 
 {
        uint8_t *zero = calloc(s, 1);
+       printf("Zero address %LX\n", addr);
        assert_gpu_same(addr, s, zero);
        free(zero);
 }
@@ -473,9 +474,9 @@ static void chai_trace_atom(const struct mali_jd_atom_v2 *v)
 {
        if (v->core_req & MALI_JD_REQ_SOFT_JOB) {
                if (v->core_req & MALI_JD_REQ_SOFT_REPLAY) {
-                       struct base_jd_replay_payload *payload;
+                       struct mali_jd_replay_payload *payload;
 
-                       payload = (struct base_jd_replay_payload *)
+                       payload = (struct mali_jd_replay_payload *)
                                fetch_mapped_gpu(v->jc, sizeof(*payload));
 
                        panwrap_log("tiler_jc_list = %llX, fragment_jc = %llX, \nt "