Lines Matching refs:DPRINT
163 DPRINT(("spinlock_irq_save ctx %p by [%d]\n", c, task_pid_nr(current))); \
165 DPRINT(("spinlocked ctx %p by [%d]\n", c, task_pid_nr(current))); \
170 DPRINT(("spinlock_irq_restore ctx %p by [%d]\n", c, task_pid_nr(current))); \
230 #define DPRINT(a) \ macro
775 DPRINT(("ctx_fd=%p head=%d tail=%d\n", ctx, ctx->ctx_msgq_head, ctx->ctx_msgq_tail)); in pfm_get_new_msg()
781 DPRINT(("ctx=%p head=%d tail=%d msg=%d\n", ctx, ctx->ctx_msgq_head, ctx->ctx_msgq_tail, idx)); in pfm_get_new_msg()
791 DPRINT(("ctx=%p head=%d tail=%d\n", ctx, ctx->ctx_msgq_head, ctx->ctx_msgq_tail)); in pfm_get_next_msg()
805 …DPRINT(("ctx=%p head=%d tail=%d type=%d\n", ctx, ctx->ctx_msgq_head, ctx->ctx_msgq_tail, msg->pfm_… in pfm_get_next_msg()
814 DPRINT(("ctx=%p msgq reset\n", ctx)); in pfm_reset_msgq()
843 DPRINT(("freeing physical buffer @%p size=%lu\n", mem, size)); in pfm_rvfree()
866 DPRINT(("alloc ctx @%p\n", ctx)); in pfm_context_alloc()
915 DPRINT(("free ctx @%p\n", ctx)); in pfm_context_free()
1052 DPRINT(("pmd[%d]=0x%lx hw_pmd=0x%lx\n", in pfm_restore_monitoring()
1065 DPRINT(("[%d] pmc[%d]=0x%lx\n", in pfm_restore_monitoring()
1130 DPRINT(("mask=0x%lx\n", mask)); in pfm_copy_pmds()
1148 DPRINT(("pmd[%d]=0x%lx soft_val=0x%lx\n", in pfm_copy_pmds()
1164 DPRINT(("mask=0x%lx\n", mask)); in pfm_copy_pmcs()
1169 DPRINT(("pmc[%d]=0x%lx\n", i, ctx->th_pmcs[i])); in pfm_copy_pmcs()
1335 DPRINT(("in sys_sessions=%u task_sessions=%u dbregs=%u syswide=%d cpu=%u\n", in pfm_reserve_session()
1347 DPRINT(("system wide not possible, %u conflicting task_sessions\n", in pfm_reserve_session()
1354 DPRINT(("reserving system wide session on CPU%u currently on CPU%u\n", cpu, smp_processor_id())); in pfm_reserve_session()
1365 DPRINT(("out sys_sessions=%u task_sessions=%u dbregs=%u syswide=%d cpu=%u\n", in pfm_reserve_session()
1382 DPRINT(("system wide not possible, conflicting session [%d] on CPU%d\n", in pfm_reserve_session()
1401 DPRINT(("in sys_sessions=%u task_sessions=%u dbregs=%u syswide=%d cpu=%u\n", in pfm_unreserve_session()
1425 DPRINT(("out sys_sessions=%u task_sessions=%u dbregs=%u syswide=%d cpu=%u\n", in pfm_unreserve_session()
1457 DPRINT(("smpl_vaddr=%p size=%lu\n", vaddr, size)); in pfm_remove_smpl_mapping()
1468 DPRINT(("do_unmap(%p, %lu)=%d\n", vaddr, size, r)); in pfm_remove_smpl_mapping()
1489 DPRINT(("sampling buffer @%p size %lu vaddr=%p\n",
1567 DPRINT(("message is too small ctx=%p (>=%ld)\n", ctx, sizeof(pfm_msg_t))); in pfm_read()
1586 DPRINT(("head=%d tail=%d\n", ctx->ctx_msgq_head, ctx->ctx_msgq_tail)); in pfm_read()
1613 DPRINT(("[%d] back to running ret=%ld\n", task_pid_nr(current), ret)); in pfm_read()
1626 DPRINT(("fd=%d type=%d\n", msg->pfm_gen_msg.msg_ctx_fd, msg->pfm_gen_msg.msg_type)); in pfm_read()
1641 DPRINT(("pfm_write called\n")); in pfm_write()
1664 DPRINT(("pfm_poll ctx_fd=%d before poll_wait\n", ctx->ctx_fd)); in pfm_poll()
1675 DPRINT(("pfm_poll ctx_fd=%d mask=0x%x\n", ctx->ctx_fd, mask)); in pfm_poll()
1683 DPRINT(("pfm_ioctl called\n")); in pfm_ioctl()
1697 DPRINT(("pfm_fasync called by [%d] on ctx_fd=%d on=%d async_queue=%p ret=%d\n", in pfm_do_fasync()
1732 DPRINT(("pfm_fasync called on ctx_fd=%d on=%d async_queue=%p ret=%d\n", in pfm_fasync()
1775 …DPRINT(("on CPU%d forcing system wide stop for [%d]\n", smp_processor_id(), task_pid_nr(ctx->ctx_t… in pfm_syswide_force_stop()
1785 DPRINT(("context_unload returned %d\n", ret)); in pfm_syswide_force_stop()
1799 DPRINT(("calling CPU%d for cleanup\n", ctx->ctx_cpu)); in pfm_syswide_cleanup_other_cpu()
1801 DPRINT(("called CPU%d for cleanup ret=%d\n", ctx->ctx_cpu, ret)); in pfm_syswide_cleanup_other_cpu()
1821 DPRINT(("bad magic for\n")); in pfm_flush()
1852 DPRINT(("ctx_state=%d is_current=%d\n", in pfm_flush()
1874 DPRINT(("should be running on CPU%d\n", ctx->ctx_cpu)); in pfm_flush()
1894 DPRINT(("forcing unload\n")); in pfm_flush()
1901 DPRINT(("ctx_state=%d\n", ctx->ctx_state)); in pfm_flush()
1961 DPRINT(("pfm_close called private=%p\n", filp->private_data)); in pfm_close()
1964 DPRINT(("bad magic\n")); in pfm_close()
1982 DPRINT(("ctx_state=%d is_current=%d\n", in pfm_close()
2026 DPRINT(("waking up ctx_state=%d\n", state)); in pfm_close()
2058 DPRINT(("after zombie wakeup ctx_state=%d for\n", state)); in pfm_close()
2067 DPRINT(("zombie ctx for [%d]\n", task_pid_nr(task))); in pfm_close()
2104 DPRINT(("ctx_state=%d free_possible=%d addr=%p size=%lu\n", in pfm_close()
2186 DPRINT(("new inode ino=%ld @%p\n", inode->i_ino, inode)); in pfm_alloc_file()
2219 DPRINT(("CPU%d buf=0x%lx addr=0x%lx size=%ld\n", smp_processor_id(), buf, addr, size)); in pfm_remap_buffer()
2252 DPRINT(("sampling buffer rsize=%lu size=%lu bytes\n", rsize, size)); in pfm_smpl_buffer_alloc()
2272 DPRINT(("Can't allocate sampling buffer\n")); in pfm_smpl_buffer_alloc()
2276 DPRINT(("smpl_buf @%p\n", smpl_buf)); in pfm_smpl_buffer_alloc()
2281 DPRINT(("Cannot allocate vma\n")); in pfm_smpl_buffer_alloc()
2313 DPRINT(("Cannot find unmapped area for size %ld\n", size)); in pfm_smpl_buffer_alloc()
2320 DPRINT(("aligned size=%ld, hdr=%p mapped @0x%lx\n", size, ctx->ctx_smpl_hdr, vma->vm_start)); in pfm_smpl_buffer_alloc()
2324 DPRINT(("Can't remap buffer\n")); in pfm_smpl_buffer_alloc()
2370 DPRINT(("cur: uid=%d gid=%d task: euid=%d suid=%d uid=%d egid=%d sgid=%d\n", in pfm_bad_permissions()
2405 DPRINT(("cannot use blocking mode when in system wide monitoring\n")); in pfarg_is_sane()
2429 DPRINT(("[%d] cannot find buffer format\n", task_pid_nr(task))); in pfm_setup_buffer_fmt()
2440 DPRINT(("[%d] after validate(0x%x,%d,%p)=%d\n", task_pid_nr(task), ctx_flags, cpu, fmt_arg, ret)); in pfm_setup_buffer_fmt()
2481 DPRINT(("pmc[%d]=0x%lx\n", i, ctx->ctx_pmcs[i])); in pfm_reset_pmu_state()
2517 …DPRINT(("<%d> all_pmcs=0x%lx all_pmds=0x%lx\n", ctx->ctx_fd, ctx->ctx_all_pmcs[0],ctx->ctx_all_pmd… in pfm_reset_pmu_state()
2538 DPRINT(("cannot find buffer format\n")); in pfm_ctx_getsize()
2543 DPRINT(("arg_size=%lu\n", *sz)); in pfm_ctx_getsize()
2563 DPRINT(("task [%d] has not memory context (kernel thread)\n", task_pid_nr(task))); in pfm_task_incompatible()
2567 DPRINT(("no permission to attach to [%d]\n", task_pid_nr(task))); in pfm_task_incompatible()
2574 DPRINT(("cannot load a blocking context on self for [%d]\n", task_pid_nr(task))); in pfm_task_incompatible()
2579 DPRINT(("cannot attach to zombie task [%d]\n", task_pid_nr(task))); in pfm_task_incompatible()
2589 DPRINT(("cannot attach to non-stopped task [%d] state=%ld\n", task_pid_nr(task), task->state)); in pfm_task_incompatible()
2680 DPRINT(("ctx=%p flags=0x%x system=%d notify_block=%d excl_idle=%d no_msg=%d ctx_fd=%d\n", in pfm_context_create()
2849 DPRINT(("should be running on CPU%d\n", ctx->ctx_cpu)); in pfm_write_pmcs()
2867 DPRINT(("pmc%u is invalid\n", cnum)); in pfm_write_pmcs()
2882 DPRINT(("pmc%u is unimplemented or no-access pmc_type=%x\n", cnum, pmc_type)); in pfm_write_pmcs()
2892 DPRINT(("pmc%u pmc_pm=%lu is_system=%d\n", in pfm_write_pmcs()
2914 DPRINT(("invalid smpl_pmds 0x%lx for pmc%u\n", smpl_pmds, cnum)); in pfm_write_pmcs()
2920 DPRINT(("invalid reset_pmds 0x%lx for pmc%u\n", reset_pmds, cnum)); in pfm_write_pmcs()
2925 DPRINT(("cannot set ovfl_notify or random on pmc%u\n", cnum)); in pfm_write_pmcs()
3033 …DPRINT(("pmc[%u]=0x%lx ld=%d apmu=%d flags=0x%x all_pmcs=0x%lx used_pmds=0x%lx eventid=%ld smpl_pm… in pfm_write_pmcs()
3092 DPRINT(("should be running on CPU%d\n", ctx->ctx_cpu)); in pfm_write_pmds()
3105 DPRINT(("pmd[%u] is unimplemented or invalid\n", cnum)); in pfm_write_pmds()
3212 DPRINT(("pmd[%u]=0x%lx ld=%d apmu=%d, hw_value=0x%lx ctx_pmd=0x%lx short_reset=0x%lx " in pfm_write_pmds()
3288 DPRINT(("should be running on CPU%d\n", ctx->ctx_cpu)); in pfm_read_pmds()
3300 DPRINT(("ld=%d apmu=%d ctx_state=%d\n", in pfm_read_pmds()
3368 DPRINT(("pmd[%u]=0x%lx\n", cnum, val)); in pfm_read_pmds()
3442 DPRINT(("called for [%d]\n", task_pid_nr(task))); in pfm_use_debug_registers()
3470 DPRINT(("ptrace_use_dbregs=%u sys_use_dbregs=%u by [%d] ret = %d\n", in pfm_use_debug_registers()
3531 DPRINT(("invalid state=%d\n", state)); in pfm_restart()
3534 DPRINT(("state=%d, cannot operate (no active_restart handler)\n", state)); in pfm_restart()
3544 DPRINT(("should be running on CPU%d\n", ctx->ctx_cpu)); in pfm_restart()
3558 DPRINT(("restarting self %d ovfl=0x%lx\n", in pfm_restart()
3583 DPRINT(("resuming monitoring for [%d]\n", task_pid_nr(task))); in pfm_restart()
3587 DPRINT(("keeping monitoring stopped for [%d]\n", task_pid_nr(task))); in pfm_restart()
3644 DPRINT(("unblocking [%d]\n", task_pid_nr(task))); in pfm_restart()
3647 DPRINT(("[%d] armed exit trap\n", task_pid_nr(task))); in pfm_restart()
3716 DPRINT(("should be running on CPU%d\n", ctx->ctx_cpu)); in pfm_write_ibr_dbr()
3735 DPRINT(("debug registers already in use for [%d]\n", task_pid_nr(task))); in pfm_write_ibr_dbr()
3776 DPRINT(("[%d] clearing ibrs, dbrs\n", task_pid_nr(task))); in pfm_write_ibr_dbr()
3800 DPRINT(("invalid register %u val=0x%lx mode=%d i=%d count=%d\n", in pfm_write_ibr_dbr()
3838 DPRINT(("write ibr%u=0x%lx used_ibrs=0x%x ld=%d apmu=%d\n", in pfm_write_ibr_dbr()
3849 DPRINT(("write dbr%u=0x%lx used_dbrs=0x%x ld=%d apmu=%d\n", in pfm_write_ibr_dbr()
3961 DPRINT(("should be running on CPU%d\n", ctx->ctx_cpu)); in pfm_stop()
3964 DPRINT(("task [%d] ctx_state=%d is_system=%d\n", in pfm_stop()
4023 DPRINT(("task=[%d]\n", task_pid_nr(task))); in pfm_stop()
4046 DPRINT(("should be running on CPU%d\n", ctx->ctx_cpu)); in pfm_start()
4128 DPRINT(("pmc_reset_val pmc[%u]=0x%lx\n", cnum, req->reg_value)); in pfm_get_pmc_reset()
4154 DPRINT(("pfm_check_task_exist: ret=%d ctx=%p\n", ret, ctx)); in pfm_check_task_exist()
4181 DPRINT(("cannot load to [%d], invalid ctx_state=%d\n", in pfm_context_load()
4187 DPRINT(("load_pid [%d] using_dbreg=%d\n", req->load_pid, ctx->ctx_fl_using_dbreg)); in pfm_context_load()
4190 DPRINT(("cannot use blocking mode on self\n")); in pfm_context_load()
4196 DPRINT(("load_pid [%d] get_task=%d\n", req->load_pid, ret)); in pfm_context_load()
4206 DPRINT(("system wide is self monitoring only load_pid=%d\n", in pfm_context_load()
4221 DPRINT(("load_pid [%d] task is debugged, cannot load range restrictions\n", req->load_pid)); in pfm_context_load()
4228 DPRINT(("cannot load [%d] dbregs in use\n", in pfm_context_load()
4233 …DPRINT(("load [%d] increased sys_use_dbreg=%u\n", task_pid_nr(task), pfm_sessions.pfs_sys_use_dbre… in pfm_context_load()
4276 DPRINT(("before cmpxchg() old_ctx=%p new_ctx=%p\n", in pfm_context_load()
4282 DPRINT(("load_pid [%d] already has a context\n", req->load_pid)); in pfm_context_load()
4325 DPRINT(("clearing psr.sp for [%d]\n", task_pid_nr(task))); in pfm_context_load()
4360 DPRINT(("context loaded on PMU for [%d]\n", task_pid_nr(task))); in pfm_context_load()
4424 DPRINT(("ctx_state=%d task [%d]\n", ctx->ctx_state, task ? task_pid_nr(task) : -1)); in pfm_context_unload()
4433 DPRINT(("ctx_state=%d, nothing to do\n", prev_state)); in pfm_context_unload()
4499 DPRINT(("setting psr.sp for [%d]\n", task_pid_nr(task))); in pfm_context_unload()
4539 DPRINT(("disconnected [%d] from context\n", task_pid_nr(task))); in pfm_context_unload()
4562 DPRINT(("state=%d task [%d]\n", ctx->ctx_state, task_pid_nr(task))); in pfm_exit_thread()
4579 DPRINT(("ctx unloaded for current state was %d\n", state)); in pfm_exit_thread()
4668 DPRINT(("context %d no task, state=%d\n", ctx->ctx_fd, state)); in pfm_check_task_state()
4672 DPRINT(("context %d state=%d [%d] task_state=%ld must_stop=%d\n", in pfm_check_task_state()
4700 DPRINT(("cmd %d state zombie cannot operate on context\n", cmd)); in pfm_check_task_state()
4722 DPRINT(("[%d] task not in stopped state\n", task_pid_nr(task))); in pfm_check_task_state()
4751 DPRINT(("old_state=%d new_state=%d\n", old_state, ctx->ctx_state)); in pfm_check_task_state()
4781 DPRINT(("invalid cmd=%d\n", cmd)); in sys_perfmonctl()
4792 DPRINT(("invalid cmd=%d\n", cmd)); in sys_perfmonctl()
4796 DPRINT(("cmd=%s idx=%d narg=0x%x argsz=%lu count=%d\n", in sys_perfmonctl()
4835 DPRINT(("cannot copy_from_user %lu bytes @%p\n", sz, arg)); in sys_perfmonctl()
4851 DPRINT(("restart_args sz=%lu xtra_sz=%lu\n", sz, xtra_sz)); in sys_perfmonctl()
4863 DPRINT(("invalid fd %d\n", fd)); in sys_perfmonctl()
4867 DPRINT(("fd %d not related to perfmon\n", fd)); in sys_perfmonctl()
4873 DPRINT(("no context for fd %d\n", fd)); in sys_perfmonctl()
4893 DPRINT(("context unlocked\n")); in sys_perfmonctl()
4906 DPRINT(("cmd=%s ret=%ld\n", PFM_CMD_NAME(cmd), ret)); in sys_perfmonctl()
4943 DPRINT(("resuming monitoring\n")); in pfm_resume_after_ovfl()
4946 DPRINT(("stopping monitoring\n")); in pfm_resume_after_ovfl()
4962 DPRINT(("entering for [%d]\n", task_pid_nr(current))); in pfm_context_force_terminate()
5022 DPRINT(("reason=%d state=%d\n", reason, ctx->ctx_state)); in pfm_handle_work()
5045 DPRINT(("before block sleeping\n")); in pfm_handle_work()
5053 DPRINT(("after block sleeping ret=%d\n", ret)); in pfm_handle_work()
5073 DPRINT(("context is zombie, bailing out\n")); in pfm_handle_work()
5098 DPRINT(("ignoring overflow notification, owner is zombie\n")); in pfm_notify_user()
5102 DPRINT(("waking up somebody\n")); in pfm_notify_user()
5137 DPRINT(("ovfl msg: msg=%p no_msg=%d fd=%d ovfl_pmds=0x%lx\n", in pfm_ovfl_notify_user()
5163 DPRINT(("end msg: msg=%p no_msg=%d ctx_fd=%d\n", in pfm_end_notify_user()
5327 DPRINT(("handler aborts leftover ovfl_pmds=0x%lx\n", in pfm_overflow_handler()
5449 DPRINT(("ctx is zombie for [%d], converted to spurious\n", task ? task_pid_nr(task): -1)); in pfm_overflow_handler()
5787 DPRINT(("cleared ownership for [%d]\n", in pfm_force_cleanup()
5800 DPRINT(("force cleanup for [%d]\n", task_pid_nr(task))); in pfm_force_cleanup()
6300 DPRINT(("releasing ownership\n")); in pfm_flush_pmds()
6330 DPRINT(("is_self=%d ovfl_val=0x%lx mask2=0x%lx\n", is_self, ovfl_val, mask2)); in pfm_flush_pmds()
6343 DPRINT(("[%d] pmd[%d] ctx_pmd=0x%lx hw_pmd=0x%lx\n", in pfm_flush_pmds()
6366 DPRINT(("[%d] pmd[%d] overflowed\n", task_pid_nr(task), i)); in pfm_flush_pmds()
6370 DPRINT(("[%d] ctx_pmd[%d]=0x%lx pmd_val=0x%lx\n", task_pid_nr(task), i, val, pmd_val)); in pfm_flush_pmds()
6390 DPRINT(("called\n")); in pfm_alt_save_pmu_state()
6416 DPRINT(("called\n")); in pfm_alt_restore_pmu_state()
6460 DPRINT(("on_each_cpu() failed: %d\n", ret)); in pfm_install_alt_pmu_interrupt()
6505 DPRINT(("on_each_cpu() failed: %d\n", ret)); in pfm_remove_alt_pmu_interrupt()
6761 DPRINT(("perfmon: pfm_inherit clearing state for [%d]\n", task_pid_nr(task))); in pfm_inherit()