Lines Matching refs:DPRINT
165 DPRINT(("spinlock_irq_save ctx %p by [%d]\n", c, task_pid_nr(current))); \
167 DPRINT(("spinlocked ctx %p by [%d]\n", c, task_pid_nr(current))); \
172 DPRINT(("spinlock_irq_restore ctx %p by [%d]\n", c, task_pid_nr(current))); \
232 #define DPRINT(a) \ macro
777 DPRINT(("ctx_fd=%p head=%d tail=%d\n", ctx, ctx->ctx_msgq_head, ctx->ctx_msgq_tail)); in pfm_get_new_msg()
783 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()
793 DPRINT(("ctx=%p head=%d tail=%d\n", ctx, ctx->ctx_msgq_head, ctx->ctx_msgq_tail)); in pfm_get_next_msg()
807 …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()
816 DPRINT(("ctx=%p msgq reset\n", ctx)); in pfm_reset_msgq()
845 DPRINT(("freeing physical buffer @%p size=%lu\n", mem, size)); in pfm_rvfree()
868 DPRINT(("alloc ctx @%p\n", ctx)); in pfm_context_alloc()
917 DPRINT(("free ctx @%p\n", ctx)); in pfm_context_free()
1054 DPRINT(("pmd[%d]=0x%lx hw_pmd=0x%lx\n", in pfm_restore_monitoring()
1067 DPRINT(("[%d] pmc[%d]=0x%lx\n", in pfm_restore_monitoring()
1132 DPRINT(("mask=0x%lx\n", mask)); in pfm_copy_pmds()
1150 DPRINT(("pmd[%d]=0x%lx soft_val=0x%lx\n", in pfm_copy_pmds()
1166 DPRINT(("mask=0x%lx\n", mask)); in pfm_copy_pmcs()
1171 DPRINT(("pmc[%d]=0x%lx\n", i, ctx->th_pmcs[i])); in pfm_copy_pmcs()
1337 DPRINT(("in sys_sessions=%u task_sessions=%u dbregs=%u syswide=%d cpu=%u\n", in pfm_reserve_session()
1349 DPRINT(("system wide not possible, %u conflicting task_sessions\n", in pfm_reserve_session()
1356 DPRINT(("reserving system wide session on CPU%u currently on CPU%u\n", cpu, smp_processor_id())); in pfm_reserve_session()
1367 DPRINT(("out sys_sessions=%u task_sessions=%u dbregs=%u syswide=%d cpu=%u\n", in pfm_reserve_session()
1384 DPRINT(("system wide not possible, conflicting session [%d] on CPU%d\n", in pfm_reserve_session()
1403 DPRINT(("in sys_sessions=%u task_sessions=%u dbregs=%u syswide=%d cpu=%u\n", in pfm_unreserve_session()
1427 DPRINT(("out sys_sessions=%u task_sessions=%u dbregs=%u syswide=%d cpu=%u\n", in pfm_unreserve_session()
1459 DPRINT(("smpl_vaddr=%p size=%lu\n", vaddr, size)); in pfm_remove_smpl_mapping()
1470 DPRINT(("do_unmap(%p, %lu)=%d\n", vaddr, size, r)); in pfm_remove_smpl_mapping()
1491 DPRINT(("sampling buffer @%p size %lu vaddr=%p\n",
1569 DPRINT(("message is too small ctx=%p (>=%ld)\n", ctx, sizeof(pfm_msg_t))); in pfm_read()
1588 DPRINT(("head=%d tail=%d\n", ctx->ctx_msgq_head, ctx->ctx_msgq_tail)); in pfm_read()
1615 DPRINT(("[%d] back to running ret=%ld\n", task_pid_nr(current), ret)); in pfm_read()
1628 DPRINT(("fd=%d type=%d\n", msg->pfm_gen_msg.msg_ctx_fd, msg->pfm_gen_msg.msg_type)); in pfm_read()
1643 DPRINT(("pfm_write called\n")); in pfm_write()
1666 DPRINT(("pfm_poll ctx_fd=%d before poll_wait\n", ctx->ctx_fd)); in pfm_poll()
1677 DPRINT(("pfm_poll ctx_fd=%d mask=0x%x\n", ctx->ctx_fd, mask)); in pfm_poll()
1685 DPRINT(("pfm_ioctl called\n")); in pfm_ioctl()
1699 DPRINT(("pfm_fasync called by [%d] on ctx_fd=%d on=%d async_queue=%p ret=%d\n", in pfm_do_fasync()
1734 DPRINT(("pfm_fasync called on ctx_fd=%d on=%d async_queue=%p ret=%d\n", in pfm_fasync()
1777 …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()
1787 DPRINT(("context_unload returned %d\n", ret)); in pfm_syswide_force_stop()
1801 DPRINT(("calling CPU%d for cleanup\n", ctx->ctx_cpu)); in pfm_syswide_cleanup_other_cpu()
1803 DPRINT(("called CPU%d for cleanup ret=%d\n", ctx->ctx_cpu, ret)); in pfm_syswide_cleanup_other_cpu()
1823 DPRINT(("bad magic for\n")); in pfm_flush()
1854 DPRINT(("ctx_state=%d is_current=%d\n", in pfm_flush()
1876 DPRINT(("should be running on CPU%d\n", ctx->ctx_cpu)); in pfm_flush()
1896 DPRINT(("forcing unload\n")); in pfm_flush()
1903 DPRINT(("ctx_state=%d\n", ctx->ctx_state)); in pfm_flush()
1963 DPRINT(("pfm_close called private=%p\n", filp->private_data)); in pfm_close()
1966 DPRINT(("bad magic\n")); in pfm_close()
1984 DPRINT(("ctx_state=%d is_current=%d\n", in pfm_close()
2028 DPRINT(("waking up ctx_state=%d\n", state)); in pfm_close()
2060 DPRINT(("after zombie wakeup ctx_state=%d for\n", state)); in pfm_close()
2069 DPRINT(("zombie ctx for [%d]\n", task_pid_nr(task))); in pfm_close()
2106 DPRINT(("ctx_state=%d free_possible=%d addr=%p size=%lu\n", in pfm_close()
2188 DPRINT(("new inode ino=%ld @%p\n", inode->i_ino, inode)); in pfm_alloc_file()
2221 DPRINT(("CPU%d buf=0x%lx addr=0x%lx size=%ld\n", smp_processor_id(), buf, addr, size)); in pfm_remap_buffer()
2254 DPRINT(("sampling buffer rsize=%lu size=%lu bytes\n", rsize, size)); in pfm_smpl_buffer_alloc()
2274 DPRINT(("Can't allocate sampling buffer\n")); in pfm_smpl_buffer_alloc()
2278 DPRINT(("smpl_buf @%p\n", smpl_buf)); in pfm_smpl_buffer_alloc()
2283 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()
2369 DPRINT(("cur: uid=%d gid=%d task: euid=%d suid=%d uid=%d egid=%d sgid=%d\n", in pfm_bad_permissions()
2404 DPRINT(("cannot use blocking mode when in system wide monitoring\n")); in pfarg_is_sane()
2428 DPRINT(("[%d] cannot find buffer format\n", task_pid_nr(task))); in pfm_setup_buffer_fmt()
2439 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()
2480 DPRINT(("pmc[%d]=0x%lx\n", i, ctx->ctx_pmcs[i])); in pfm_reset_pmu_state()
2516 …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()
2537 DPRINT(("cannot find buffer format\n")); in pfm_ctx_getsize()
2542 DPRINT(("arg_size=%lu\n", *sz)); in pfm_ctx_getsize()
2562 DPRINT(("task [%d] has not memory context (kernel thread)\n", task_pid_nr(task))); in pfm_task_incompatible()
2566 DPRINT(("no permission to attach to [%d]\n", task_pid_nr(task))); in pfm_task_incompatible()
2573 DPRINT(("cannot load a blocking context on self for [%d]\n", task_pid_nr(task))); in pfm_task_incompatible()
2578 DPRINT(("cannot attach to zombie task [%d]\n", task_pid_nr(task))); in pfm_task_incompatible()
2588 DPRINT(("cannot attach to non-stopped task [%d] state=%ld\n", task_pid_nr(task), task->state)); in pfm_task_incompatible()
2672 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()
2841 DPRINT(("should be running on CPU%d\n", ctx->ctx_cpu)); in pfm_write_pmcs()
2859 DPRINT(("pmc%u is invalid\n", cnum)); in pfm_write_pmcs()
2874 DPRINT(("pmc%u is unimplemented or no-access pmc_type=%x\n", cnum, pmc_type)); in pfm_write_pmcs()
2884 DPRINT(("pmc%u pmc_pm=%lu is_system=%d\n", in pfm_write_pmcs()
2906 DPRINT(("invalid smpl_pmds 0x%lx for pmc%u\n", smpl_pmds, cnum)); in pfm_write_pmcs()
2912 DPRINT(("invalid reset_pmds 0x%lx for pmc%u\n", reset_pmds, cnum)); in pfm_write_pmcs()
2917 DPRINT(("cannot set ovfl_notify or random on pmc%u\n", cnum)); in pfm_write_pmcs()
3025 …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()
3084 DPRINT(("should be running on CPU%d\n", ctx->ctx_cpu)); in pfm_write_pmds()
3097 DPRINT(("pmd[%u] is unimplemented or invalid\n", cnum)); in pfm_write_pmds()
3204 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()
3280 DPRINT(("should be running on CPU%d\n", ctx->ctx_cpu)); in pfm_read_pmds()
3292 DPRINT(("ld=%d apmu=%d ctx_state=%d\n", in pfm_read_pmds()
3360 DPRINT(("pmd[%u]=0x%lx\n", cnum, val)); in pfm_read_pmds()
3434 DPRINT(("called for [%d]\n", task_pid_nr(task))); in pfm_use_debug_registers()
3462 DPRINT(("ptrace_use_dbregs=%u sys_use_dbregs=%u by [%d] ret = %d\n", in pfm_use_debug_registers()
3523 DPRINT(("invalid state=%d\n", state)); in pfm_restart()
3526 DPRINT(("state=%d, cannot operate (no active_restart handler)\n", state)); in pfm_restart()
3536 DPRINT(("should be running on CPU%d\n", ctx->ctx_cpu)); in pfm_restart()
3550 DPRINT(("restarting self %d ovfl=0x%lx\n", in pfm_restart()
3575 DPRINT(("resuming monitoring for [%d]\n", task_pid_nr(task))); in pfm_restart()
3579 DPRINT(("keeping monitoring stopped for [%d]\n", task_pid_nr(task))); in pfm_restart()
3636 DPRINT(("unblocking [%d]\n", task_pid_nr(task))); in pfm_restart()
3639 DPRINT(("[%d] armed exit trap\n", task_pid_nr(task))); in pfm_restart()
3708 DPRINT(("should be running on CPU%d\n", ctx->ctx_cpu)); in pfm_write_ibr_dbr()
3727 DPRINT(("debug registers already in use for [%d]\n", task_pid_nr(task))); in pfm_write_ibr_dbr()
3768 DPRINT(("[%d] clearing ibrs, dbrs\n", task_pid_nr(task))); in pfm_write_ibr_dbr()
3792 DPRINT(("invalid register %u val=0x%lx mode=%d i=%d count=%d\n", in pfm_write_ibr_dbr()
3830 DPRINT(("write ibr%u=0x%lx used_ibrs=0x%x ld=%d apmu=%d\n", in pfm_write_ibr_dbr()
3841 DPRINT(("write dbr%u=0x%lx used_dbrs=0x%x ld=%d apmu=%d\n", in pfm_write_ibr_dbr()
3953 DPRINT(("should be running on CPU%d\n", ctx->ctx_cpu)); in pfm_stop()
3956 DPRINT(("task [%d] ctx_state=%d is_system=%d\n", in pfm_stop()
4015 DPRINT(("task=[%d]\n", task_pid_nr(task))); in pfm_stop()
4038 DPRINT(("should be running on CPU%d\n", ctx->ctx_cpu)); in pfm_start()
4120 DPRINT(("pmc_reset_val pmc[%u]=0x%lx\n", cnum, req->reg_value)); in pfm_get_pmc_reset()
4146 DPRINT(("pfm_check_task_exist: ret=%d ctx=%p\n", ret, ctx)); in pfm_check_task_exist()
4173 DPRINT(("cannot load to [%d], invalid ctx_state=%d\n", in pfm_context_load()
4179 DPRINT(("load_pid [%d] using_dbreg=%d\n", req->load_pid, ctx->ctx_fl_using_dbreg)); in pfm_context_load()
4182 DPRINT(("cannot use blocking mode on self\n")); in pfm_context_load()
4188 DPRINT(("load_pid [%d] get_task=%d\n", req->load_pid, ret)); in pfm_context_load()
4198 DPRINT(("system wide is self monitoring only load_pid=%d\n", in pfm_context_load()
4213 DPRINT(("load_pid [%d] task is debugged, cannot load range restrictions\n", req->load_pid)); in pfm_context_load()
4220 DPRINT(("cannot load [%d] dbregs in use\n", in pfm_context_load()
4225 …DPRINT(("load [%d] increased sys_use_dbreg=%u\n", task_pid_nr(task), pfm_sessions.pfs_sys_use_dbre… in pfm_context_load()
4268 DPRINT(("before cmpxchg() old_ctx=%p new_ctx=%p\n", in pfm_context_load()
4274 DPRINT(("load_pid [%d] already has a context\n", req->load_pid)); in pfm_context_load()
4317 DPRINT(("clearing psr.sp for [%d]\n", task_pid_nr(task))); in pfm_context_load()
4352 DPRINT(("context loaded on PMU for [%d]\n", task_pid_nr(task))); in pfm_context_load()
4416 DPRINT(("ctx_state=%d task [%d]\n", ctx->ctx_state, task ? task_pid_nr(task) : -1)); in pfm_context_unload()
4425 DPRINT(("ctx_state=%d, nothing to do\n", prev_state)); in pfm_context_unload()
4491 DPRINT(("setting psr.sp for [%d]\n", task_pid_nr(task))); in pfm_context_unload()
4531 DPRINT(("disconnected [%d] from context\n", task_pid_nr(task))); in pfm_context_unload()
4554 DPRINT(("state=%d task [%d]\n", ctx->ctx_state, task_pid_nr(task))); in pfm_exit_thread()
4571 DPRINT(("ctx unloaded for current state was %d\n", state)); in pfm_exit_thread()
4660 DPRINT(("context %d no task, state=%d\n", ctx->ctx_fd, state)); in pfm_check_task_state()
4664 DPRINT(("context %d state=%d [%d] task_state=%ld must_stop=%d\n", in pfm_check_task_state()
4692 DPRINT(("cmd %d state zombie cannot operate on context\n", cmd)); in pfm_check_task_state()
4714 DPRINT(("[%d] task not in stopped state\n", task_pid_nr(task))); in pfm_check_task_state()
4743 DPRINT(("old_state=%d new_state=%d\n", old_state, ctx->ctx_state)); in pfm_check_task_state()
4773 DPRINT(("invalid cmd=%d\n", cmd)); in sys_perfmonctl()
4784 DPRINT(("invalid cmd=%d\n", cmd)); in sys_perfmonctl()
4788 DPRINT(("cmd=%s idx=%d narg=0x%x argsz=%lu count=%d\n", in sys_perfmonctl()
4827 DPRINT(("cannot copy_from_user %lu bytes @%p\n", sz, arg)); in sys_perfmonctl()
4843 DPRINT(("restart_args sz=%lu xtra_sz=%lu\n", sz, xtra_sz)); in sys_perfmonctl()
4855 DPRINT(("invalid fd %d\n", fd)); in sys_perfmonctl()
4859 DPRINT(("fd %d not related to perfmon\n", fd)); in sys_perfmonctl()
4865 DPRINT(("no context for fd %d\n", fd)); in sys_perfmonctl()
4885 DPRINT(("context unlocked\n")); in sys_perfmonctl()
4898 DPRINT(("cmd=%s ret=%ld\n", PFM_CMD_NAME(cmd), ret)); in sys_perfmonctl()
4935 DPRINT(("resuming monitoring\n")); in pfm_resume_after_ovfl()
4938 DPRINT(("stopping monitoring\n")); in pfm_resume_after_ovfl()
4954 DPRINT(("entering for [%d]\n", task_pid_nr(current))); in pfm_context_force_terminate()
5014 DPRINT(("reason=%d state=%d\n", reason, ctx->ctx_state)); in pfm_handle_work()
5037 DPRINT(("before block sleeping\n")); in pfm_handle_work()
5045 DPRINT(("after block sleeping ret=%d\n", ret)); in pfm_handle_work()
5065 DPRINT(("context is zombie, bailing out\n")); in pfm_handle_work()
5090 DPRINT(("ignoring overflow notification, owner is zombie\n")); in pfm_notify_user()
5094 DPRINT(("waking up somebody\n")); in pfm_notify_user()
5129 DPRINT(("ovfl msg: msg=%p no_msg=%d fd=%d ovfl_pmds=0x%lx\n", in pfm_ovfl_notify_user()
5155 DPRINT(("end msg: msg=%p no_msg=%d ctx_fd=%d\n", in pfm_end_notify_user()
5319 DPRINT(("handler aborts leftover ovfl_pmds=0x%lx\n", in pfm_overflow_handler()
5441 DPRINT(("ctx is zombie for [%d], converted to spurious\n", task ? task_pid_nr(task): -1)); in pfm_overflow_handler()
5772 DPRINT(("cleared ownership for [%d]\n", in pfm_force_cleanup()
5785 DPRINT(("force cleanup for [%d]\n", task_pid_nr(task))); in pfm_force_cleanup()
6285 DPRINT(("releasing ownership\n")); in pfm_flush_pmds()
6315 DPRINT(("is_self=%d ovfl_val=0x%lx mask2=0x%lx\n", is_self, ovfl_val, mask2)); in pfm_flush_pmds()
6328 DPRINT(("[%d] pmd[%d] ctx_pmd=0x%lx hw_pmd=0x%lx\n", in pfm_flush_pmds()
6351 DPRINT(("[%d] pmd[%d] overflowed\n", task_pid_nr(task), i)); in pfm_flush_pmds()
6355 DPRINT(("[%d] ctx_pmd[%d]=0x%lx pmd_val=0x%lx\n", task_pid_nr(task), i, val, pmd_val)); in pfm_flush_pmds()
6375 DPRINT(("called\n")); in pfm_alt_save_pmu_state()
6401 DPRINT(("called\n")); in pfm_alt_restore_pmu_state()
6445 DPRINT(("on_each_cpu() failed: %d\n", ret)); in pfm_install_alt_pmu_interrupt()
6490 DPRINT(("on_each_cpu() failed: %d\n", ret)); in pfm_remove_alt_pmu_interrupt()
6739 DPRINT(("perfmon: pfm_inherit clearing state for [%d]\n", task_pid_nr(task))); in pfm_inherit()