/linux/tools/perf/util/ |
H A D | intel-pt.c | 35 #include "intel-pt.h" 43 #include "intel-pt-decoder/intel-pt-log.h" 44 #include "intel-pt-decoder/intel-pt-decoder.h" 45 #include "intel-pt-decoder/intel-pt-insn-decoder.h" 46 #include "intel-pt-decoder/intel-pt-pkt-decoder.h" 181 struct intel_pt *pt; member 271 intel_pt_dump_event(struct intel_pt * pt,unsigned char * buf,size_t len) intel_pt_dump_event() argument 291 struct intel_pt *pt = container_of(session->auxtrace, struct intel_pt, intel_pt_dump_sample() local 298 intel_pt_log_events(struct intel_pt * pt,u64 tm) intel_pt_log_events() argument 353 struct intel_pt *pt = ptq->pt; intel_pt_findnew_vmcs_info() local 361 intel_pt_free_vmcs_info(struct intel_pt * pt) intel_pt_free_vmcs_info() argument 375 intel_pt_do_fix_overlap(struct intel_pt * pt,struct auxtrace_buffer * a,struct auxtrace_buffer * b) intel_pt_do_fix_overlap() argument 945 intel_pt_match_pgd_ip(struct intel_pt * pt,uint64_t ip,uint64_t offset,const char * filename) intel_pt_match_pgd_ip() argument 1023 intel_pt_get_config(struct intel_pt * pt,struct perf_event_attr * attr,u64 * config) intel_pt_get_config() argument 1035 intel_pt_exclude_kernel(struct intel_pt * pt) intel_pt_exclude_kernel() argument 1047 intel_pt_return_compression(struct intel_pt * pt) intel_pt_return_compression() argument 1063 intel_pt_branch_enable(struct intel_pt * pt) intel_pt_branch_enable() argument 1077 intel_pt_disabled_tnt(struct intel_pt * pt) intel_pt_disabled_tnt() argument 1090 intel_pt_mtc_period(struct intel_pt * pt) intel_pt_mtc_period() argument 1109 intel_pt_timeless_decoding(struct intel_pt * pt) intel_pt_timeless_decoding() argument 1131 intel_pt_tracing_kernel(struct intel_pt * pt) intel_pt_tracing_kernel() argument 1143 intel_pt_have_tsc(struct intel_pt * pt) intel_pt_have_tsc() argument 1163 intel_pt_have_mtc(struct intel_pt * pt) intel_pt_have_mtc() argument 1176 intel_pt_sampling_mode(struct intel_pt * pt) intel_pt_sampling_mode() argument 1188 intel_pt_ctl(struct intel_pt * pt) intel_pt_ctl() argument 1200 intel_pt_ns_to_ticks(const struct intel_pt * pt,u64 ns) intel_pt_ns_to_ticks() argument 1210 intel_pt_alloc_chain(struct intel_pt * pt) intel_pt_alloc_chain() argument 1219 intel_pt_callchain_init(struct intel_pt * pt) intel_pt_callchain_init() argument 1235 intel_pt_add_callchain(struct intel_pt * pt,struct perf_sample * sample) intel_pt_add_callchain() argument 1257 intel_pt_br_stack_init(struct intel_pt * pt) intel_pt_br_stack_init() argument 1273 intel_pt_add_br_stack(struct intel_pt * pt,struct perf_sample * sample) intel_pt_add_br_stack() argument 1291 intel_pt_alloc_queue(struct intel_pt * pt,unsigned int queue_nr) intel_pt_alloc_queue() argument 1414 intel_pt_first_timestamp(struct intel_pt * pt,u64 timestamp) intel_pt_first_timestamp() argument 1478 intel_pt_set_pid_tid_cpu(struct intel_pt * pt,struct auxtrace_queue * queue) intel_pt_set_pid_tid_cpu() argument 1509 struct intel_pt *pt = ptq->pt; intel_pt_sample_flags() local 1556 intel_pt_setup_time_range(struct intel_pt * pt,struct intel_pt_queue * ptq) intel_pt_setup_time_range() argument 1573 intel_pt_setup_queue(struct intel_pt * pt,struct auxtrace_queue * queue,unsigned int queue_nr) intel_pt_setup_queue() argument 1655 intel_pt_setup_queues(struct intel_pt * pt) intel_pt_setup_queues() argument 1668 intel_pt_skip_event(struct intel_pt * pt) intel_pt_skip_event() argument 1679 intel_pt_skip_cbr_event(struct intel_pt * pt) intel_pt_skip_cbr_event() argument 1710 intel_pt_prep_b_sample(struct intel_pt * pt,struct intel_pt_queue * ptq,union perf_event * event,struct perf_sample * sample) intel_pt_prep_b_sample() argument 1736 intel_pt_opt_inject(struct intel_pt * pt,union perf_event * event,struct perf_sample * sample,u64 type) intel_pt_opt_inject() argument 1746 intel_pt_deliver_synth_event(struct intel_pt * pt,union perf_event * event,struct perf_sample * sample,u64 type) intel_pt_deliver_synth_event() argument 1765 struct intel_pt *pt = ptq->pt; intel_pt_synth_branch_sample() local 1813 intel_pt_prep_sample(struct intel_pt * pt,struct intel_pt_queue * ptq,union perf_event * event,struct perf_sample * sample) intel_pt_prep_sample() argument 1836 struct intel_pt *pt = ptq->pt; intel_pt_synth_instruction_sample() local 1868 struct intel_pt *pt = ptq->pt; intel_pt_synth_cycle_sample() local 1895 struct intel_pt *pt = ptq->pt; intel_pt_synth_transaction_sample() local 1911 intel_pt_prep_p_sample(struct intel_pt * pt,struct intel_pt_queue * ptq,union perf_event * event,struct perf_sample * sample) intel_pt_prep_p_sample() argument 1928 struct intel_pt *pt = ptq->pt; intel_pt_synth_ptwrite_sample() local 1954 struct intel_pt *pt = ptq->pt; intel_pt_synth_cbr_sample() local 1984 struct intel_pt *pt = ptq->pt; intel_pt_synth_psb_sample() local 2010 struct intel_pt *pt = ptq->pt; intel_pt_synth_mwait_sample() local 2035 struct intel_pt *pt = ptq->pt; intel_pt_synth_pwre_sample() local 2060 struct intel_pt *pt = ptq->pt; intel_pt_synth_exstop_sample() local 2085 struct intel_pt *pt = ptq->pt; intel_pt_synth_pwrx_sample() local 2240 struct intel_pt *pt = ptq->pt; intel_pt_do_synth_pebs_sample() local 2369 struct intel_pt *pt = ptq->pt; intel_pt_synth_single_pebs_sample() local 2380 struct intel_pt *pt = ptq->pt; intel_pt_synth_pebs_sample() local 2408 struct intel_pt *pt = ptq->pt; intel_pt_synth_events_sample() local 2447 struct intel_pt *pt = ptq->pt; intel_pt_synth_iflag_chg_sample() local 2478 intel_pt_synth_error(struct intel_pt * pt,int code,int cpu,pid_t pid,pid_t tid,u64 ip,u64 timestamp,pid_t machine_pid,int vcpu) intel_pt_synth_error() argument 2524 struct intel_pt *pt = ptq->pt; intel_ptq_synth_error() local 2544 intel_pt_next_tid(struct intel_pt * pt,struct intel_pt_queue * ptq) intel_pt_next_tid() argument 2567 struct intel_pt *pt = ptq->pt; intel_pt_is_switch_ip() local 2581 struct intel_pt *pt = ptq->pt; intel_pt_sample() local 2755 intel_pt_switch_ip(struct intel_pt * pt,u64 * ptss_ip) intel_pt_switch_ip() argument 2807 intel_pt_enable_sync_switch(struct intel_pt * pt) intel_pt_enable_sync_switch() argument 2825 intel_pt_disable_sync_switch(struct intel_pt * pt) intel_pt_disable_sync_switch() argument 2848 struct intel_pt *pt = ptq->pt; intel_pt_next_time() local 2917 struct intel_pt *pt = ptq->pt; intel_pt_run_decoder() local 2998 intel_pt_update_queues(struct intel_pt * pt) intel_pt_update_queues() argument 3007 intel_pt_process_queues(struct intel_pt * pt,u64 timestamp) intel_pt_process_queues() argument 3062 intel_pt_process_timeless_queues(struct intel_pt * pt,pid_t tid,u64 time_) intel_pt_process_timeless_queues() argument 3110 intel_pt_process_timeless_sample(struct intel_pt * pt,struct perf_sample * sample) intel_pt_process_timeless_sample() argument 3132 intel_pt_lost(struct intel_pt * pt,struct perf_sample * sample) intel_pt_lost() argument 3139 intel_pt_cpu_to_ptq(struct intel_pt * pt,int cpu) intel_pt_cpu_to_ptq() argument 3167 intel_pt_sync_switch(struct intel_pt * pt,int cpu,pid_t tid,u64 timestamp) intel_pt_sync_switch() argument 3213 intel_pt_process_switch(struct intel_pt * pt,struct perf_sample * sample) intel_pt_process_switch() argument 3238 intel_pt_context_switch_in(struct intel_pt * pt,struct perf_sample * sample) intel_pt_context_switch_in() argument 3276 intel_pt_guest_context_switch(struct intel_pt * pt,union perf_event * event,struct perf_sample * sample) intel_pt_guest_context_switch() argument 3303 intel_pt_context_switch(struct intel_pt * pt,union perf_event * event,struct perf_sample * sample) intel_pt_context_switch() argument 3341 intel_pt_process_itrace_start(struct intel_pt * pt,union perf_event * event,struct perf_sample * sample) intel_pt_process_itrace_start() argument 3358 intel_pt_process_aux_output_hw_id(struct intel_pt * pt,union perf_event * event,struct perf_sample * sample) intel_pt_process_aux_output_hw_id() argument 3394 intel_pt_text_poke(struct intel_pt * pt,union perf_event * event) intel_pt_text_poke() argument 3454 struct intel_pt *pt = container_of(session->auxtrace, struct intel_pt, intel_pt_process_event() local 3538 struct intel_pt *pt = container_of(session->auxtrace, struct intel_pt, intel_pt_flush() local 3561 struct intel_pt *pt = container_of(session->auxtrace, struct intel_pt, intel_pt_free_events() local 3576 struct intel_pt *pt = container_of(session->auxtrace, struct intel_pt, intel_pt_free() local 3595 struct intel_pt *pt = container_of(session->auxtrace, struct intel_pt, intel_pt_evsel_is_auxtrace() local 3605 struct intel_pt *pt = container_of(session->auxtrace, struct intel_pt, intel_pt_process_auxtrace_event() local 3644 struct intel_pt *pt = container_of(session->auxtrace, struct intel_pt, intel_pt_queue_data() local 3693 intel_pt_evsel(struct intel_pt * pt,struct evlist * evlist) intel_pt_evsel() argument 3706 intel_pt_synth_events(struct intel_pt * pt,struct perf_session * session) intel_pt_synth_events() argument 3912 intel_pt_setup_pebs_events(struct intel_pt * pt) intel_pt_setup_pebs_events() argument 3960 struct intel_pt *pt = data; intel_pt_perf_config() local 3972 intel_pt_tsc_start(u64 ns,struct intel_pt * pt) intel_pt_tsc_start() argument 3992 intel_pt_tsc_end(u64 ns,struct intel_pt * pt) intel_pt_tsc_end() argument 4011 intel_pt_setup_time_ranges(struct intel_pt * pt,struct itrace_synth_opts * opts) intel_pt_setup_time_ranges() argument 4050 intel_pt_parse_vm_tm_corr_arg(struct intel_pt * pt,char ** args) intel_pt_parse_vm_tm_corr_arg() argument 4090 intel_pt_parse_vm_tm_corr_args(struct intel_pt * pt) intel_pt_parse_vm_tm_corr_args() argument 4164 struct intel_pt *pt; intel_pt_process_auxtrace_info() local [all...] |
/linux/drivers/dma/ptdma/ |
H A D | ptdma-pci.c | 38 struct pt_device *pt; in pt_alloc_struct() local 40 pt = devm_kzalloc(dev, sizeof(*pt), GFP_KERNEL); in pt_alloc_struct() 42 if (!pt) in pt_alloc_struct() 44 pt->dev = dev; in pt_alloc_struct() 46 INIT_LIST_HEAD(&pt->cmd); in pt_alloc_struct() 48 return pt; in pt_alloc_struct() 51 static int pt_get_msix_irqs(struct pt_device *pt) in pt_get_msix_irqs() argument 53 struct pt_msix *pt_msix = pt->pt_msix; in pt_get_msix_irqs() 54 struct device *dev = pt->dev; in pt_get_msix_irqs() 66 pt->pt_irq = pt_msix->msix_entry.vector; in pt_get_msix_irqs() [all …]
|
H A D | ptdma-dev.c | 104 struct pt_device *pt = container_of(cmd_q, struct pt_device, cmd_q); in pt_core_perform_passthru() local 117 pt_core_enable_queue_interrupts(pt); in pt_core_perform_passthru() 119 pt_core_disable_queue_interrupts(pt); in pt_core_perform_passthru() 128 struct pt_cmd_queue *cmd_q = &cmd->pt->cmd_q; in pt_do_cmd_complete() 137 pt_log_error(cmd_q->pt, cmd_q->cmd_error); in pt_do_cmd_complete() 144 void pt_check_status_trans(struct pt_device *pt, struct pt_cmd_queue *cmd_q) in pt_check_status_trans() argument 160 pt_do_cmd_complete((ulong)&pt->tdata); in pt_check_status_trans() 166 struct pt_device *pt = data; in pt_core_irq_handler() local 167 struct pt_cmd_queue *cmd_q = &pt->cmd_q; in pt_core_irq_handler() 169 pt_core_disable_queue_interrupts(pt); in pt_core_irq_handler() [all …]
|
H A D | ptdma-dmaengine.c | 43 struct pt_device *pt = desc->pt; in pt_do_cleanup() local 45 kmem_cache_free(pt->dma_desc_cache, desc); in pt_do_cleanup() 51 struct pt_device *pt; in pt_dma_start_desc() local 58 pt = pt_cmd->pt; in pt_dma_start_desc() 59 cmd_q = &pt->cmd_q; in pt_dma_start_desc() 62 pt->tdata.cmd = pt_cmd; in pt_dma_start_desc() 167 desc = kmem_cache_zalloc(chan->pt->dma_desc_cache, GFP_NOWAIT); in pt_alloc_dma_desc() 173 desc->pt = chan->pt; in pt_alloc_dma_desc() 174 desc->pt->cmd_q.int_en = !!(flags & DMA_PREP_INTERRUPT); in pt_alloc_dma_desc() 197 pt_cmd->pt = chan->pt; in pt_create_desc() [all …]
|
H A D | ptdma-debugfs.c | 25 struct pt_device *pt = s->private; in pt_debugfs_info_show() local 28 seq_printf(s, "Device name: %s\n", dev_name(pt->dev)); in pt_debugfs_info_show() 30 seq_printf(s, " # Cmds: %d\n", pt->cmd_count); in pt_debugfs_info_show() 32 regval = ioread32(pt->io_regs + CMD_PT_VERSION); in pt_debugfs_info_show() 48 struct pt_device *pt = s->private; in pt_debugfs_stats_show() local 50 seq_printf(s, "Total Interrupts Handled: %ld\n", pt->total_interrupts); in pt_debugfs_stats_show() 85 void ptdma_debugfs_setup(struct pt_device *pt) in ptdma_debugfs_setup() argument 93 debugfs_create_file("info", 0400, pt->dma_dev.dbg_dev_root, pt, in ptdma_debugfs_setup() 96 debugfs_create_file("stats", 0400, pt->dma_dev.dbg_dev_root, pt, in ptdma_debugfs_setup() 99 cmd_q = &pt->cmd_q; in ptdma_debugfs_setup() [all …]
|
/linux/sound/i2c/other/ |
H A D | pt2258.c | 32 int snd_pt2258_reset(struct snd_pt2258 *pt) in snd_pt2258_reset() argument 39 snd_i2c_lock(pt->i2c_bus); in snd_pt2258_reset() 40 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 1) != 1) in snd_pt2258_reset() 42 snd_i2c_unlock(pt->i2c_bus); in snd_pt2258_reset() 45 pt->mute = 1; in snd_pt2258_reset() 47 snd_i2c_lock(pt->i2c_bus); in snd_pt2258_reset() 48 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 1) != 1) in snd_pt2258_reset() 50 snd_i2c_unlock(pt->i2c_bus); in snd_pt2258_reset() 54 pt->volume[i] = 0; in snd_pt2258_reset() 57 snd_i2c_lock(pt->i2c_bus); in snd_pt2258_reset() [all …]
|
/linux/drivers/gpu/drm/i915/gt/ |
H A D | intel_ppgtt.c | 18 struct i915_page_table *pt; in alloc_pt() local 20 pt = kmalloc(sizeof(*pt), I915_GFP_ALLOW_FAIL); in alloc_pt() 21 if (unlikely(!pt)) in alloc_pt() 24 pt->base = vm->alloc_pt_dma(vm, sz); in alloc_pt() 25 if (IS_ERR(pt->base)) { in alloc_pt() 26 kfree(pt); in alloc_pt() 30 pt->is_compact = false; in alloc_pt() 31 atomic_set(&pt->used, 0); in alloc_pt() 32 return pt; in alloc_pt() 61 pd->pt.base = vm->alloc_pt_dma(vm, I915_GTT_PAGE_SIZE_4K); in alloc_pd() [all …]
|
H A D | gen6_ppgtt.c | 21 const struct i915_page_table *pt) in gen6_write_pde() argument 23 dma_addr_t addr = pt ? px_dma(pt) : px_dma(ppgtt->base.vm.scratch[1]); in gen6_write_pde() 85 struct i915_page_table * const pt = in gen6_ppgtt_clear_range() local 92 GEM_BUG_ON(count > atomic_read(&pt->used)); in gen6_ppgtt_clear_range() 93 if (!atomic_sub_return(count, &pt->used)) in gen6_ppgtt_clear_range() 103 vaddr = px_vaddr(pt); in gen6_ppgtt_clear_range() 153 struct i915_page_table *pt; in gen6_flush_pd() local 161 gen6_for_each_pde(pt, pd, start, end, pde) in gen6_flush_pd() 162 gen6_write_pde(ppgtt, pde, pt); in gen6_flush_pd() 178 struct i915_page_table *pt; in gen6_alloc_va_range() local [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
H A D | base.c | 34 struct nvkm_mmu_pt *pt; member 42 nvkm_mmu_ptp_put(struct nvkm_mmu *mmu, bool force, struct nvkm_mmu_pt *pt) in nvkm_mmu_ptp_put() argument 44 const int slot = pt->base >> pt->ptp->shift; in nvkm_mmu_ptp_put() 45 struct nvkm_mmu_ptp *ptp = pt->ptp; in nvkm_mmu_ptp_put() 56 nvkm_mmu_ptc_put(mmu, force, &ptp->pt); in nvkm_mmu_ptp_put() 61 kfree(pt); in nvkm_mmu_ptp_put() 67 struct nvkm_mmu_pt *pt; in nvkm_mmu_ptp_get() local 71 if (!(pt = kzalloc(sizeof(*pt), GFP_KERNEL))) in nvkm_mmu_ptp_get() 78 kfree(pt); in nvkm_mmu_ptp_get() 82 ptp->pt = nvkm_mmu_ptc_get(mmu, 0x1000, 0x1000, false); in nvkm_mmu_ptp_get() [all …]
|
H A D | vmmnv44.c | 27 nv44_vmm_pgt_fill(struct nvkm_vmm *vmm, struct nvkm_mmu_pt *pt, in nv44_vmm_pgt_fill() argument 33 tmp[0] = nvkm_ro32(pt->memory, pteo + 0x0); in nv44_vmm_pgt_fill() 34 tmp[1] = nvkm_ro32(pt->memory, pteo + 0x4); in nv44_vmm_pgt_fill() 35 tmp[2] = nvkm_ro32(pt->memory, pteo + 0x8); in nv44_vmm_pgt_fill() 36 tmp[3] = nvkm_ro32(pt->memory, pteo + 0xc); in nv44_vmm_pgt_fill() 66 VMM_WO032(pt, vmm, pteo + 0x0, tmp[0]); in nv44_vmm_pgt_fill() 67 VMM_WO032(pt, vmm, pteo + 0x4, tmp[1]); in nv44_vmm_pgt_fill() 68 VMM_WO032(pt, vmm, pteo + 0x8, tmp[2]); in nv44_vmm_pgt_fill() 69 VMM_WO032(pt, vmm, pteo + 0xc, tmp[3] | 0x40000000); in nv44_vmm_pgt_fill() 73 nv44_vmm_pgt_pte(struct nvkm_vmm *vmm, struct nvkm_mmu_pt *pt, in nv44_vmm_pgt_pte() argument [all …]
|
H A D | vmmgp100.c | 35 struct nvkm_mmu_pt *pt, u32 ptei, u32 ptes) in gp100_vmm_pfn_unmap() argument 40 nvkm_kmap(pt->memory); in gp100_vmm_pfn_unmap() 42 u32 datalo = nvkm_ro32(pt->memory, pt->base + ptei * 8 + 0); in gp100_vmm_pfn_unmap() 43 u32 datahi = nvkm_ro32(pt->memory, pt->base + ptei * 8 + 4); in gp100_vmm_pfn_unmap() 51 nvkm_done(pt->memory); in gp100_vmm_pfn_unmap() 56 struct nvkm_mmu_pt *pt, u32 ptei, u32 ptes) in gp100_vmm_pfn_clear() argument 59 nvkm_kmap(pt->memory); in gp100_vmm_pfn_clear() 61 u32 datalo = nvkm_ro32(pt->memory, pt->base + ptei * 8 + 0); in gp100_vmm_pfn_clear() 62 u32 datahi = nvkm_ro32(pt->memory, pt->base + ptei * 8 + 4); in gp100_vmm_pfn_clear() 65 VMM_WO064(pt, vmm, ptei * 8, data & ~BIT_ULL(0)); in gp100_vmm_pfn_clear() [all …]
|
H A D | vmmgf100.c | 32 gf100_vmm_pgt_pte(struct nvkm_vmm *vmm, struct nvkm_mmu_pt *pt, in gf100_vmm_pgt_pte() argument 44 VMM_WO064(pt, vmm, ptei++ * 8, data); in gf100_vmm_pgt_pte() 51 VMM_WO064(pt, vmm, ptei++ * 8, data); in gf100_vmm_pgt_pte() 58 gf100_vmm_pgt_sgl(struct nvkm_vmm *vmm, struct nvkm_mmu_pt *pt, in gf100_vmm_pgt_sgl() argument 61 VMM_MAP_ITER_SGL(vmm, pt, ptei, ptes, map, gf100_vmm_pgt_pte); in gf100_vmm_pgt_sgl() 65 gf100_vmm_pgt_dma(struct nvkm_vmm *vmm, struct nvkm_mmu_pt *pt, in gf100_vmm_pgt_dma() argument 70 nvkm_kmap(pt->memory); in gf100_vmm_pgt_dma() 73 VMM_WO064(pt, vmm, ptei++ * 8, data); in gf100_vmm_pgt_dma() 76 nvkm_done(pt->memory); in gf100_vmm_pgt_dma() 80 VMM_MAP_ITER_DMA(vmm, pt, ptei, ptes, map, gf100_vmm_pgt_pte); in gf100_vmm_pgt_dma() [all …]
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | kfunc_call_fail.c | 41 struct prog_test_ref_kfunc *pt; in kfunc_call_test_get_mem_fail_rdonly() local 46 pt = bpf_kfunc_call_test_acquire(&s); in kfunc_call_test_get_mem_fail_rdonly() 47 if (pt) { in kfunc_call_test_get_mem_fail_rdonly() 48 p = bpf_kfunc_call_test_get_rdonly_mem(pt, 2 * sizeof(int)); in kfunc_call_test_get_mem_fail_rdonly() 54 bpf_kfunc_call_test_release(pt); in kfunc_call_test_get_mem_fail_rdonly() 62 struct prog_test_ref_kfunc *pt; in kfunc_call_test_get_mem_fail_use_after_free() local 67 pt = bpf_kfunc_call_test_acquire(&s); in kfunc_call_test_get_mem_fail_use_after_free() 68 if (pt) { in kfunc_call_test_get_mem_fail_use_after_free() 69 p = bpf_kfunc_call_test_get_rdwr_mem(pt, 2 * sizeof(int)); in kfunc_call_test_get_mem_fail_use_after_free() 77 bpf_kfunc_call_test_release(pt); in kfunc_call_test_get_mem_fail_use_after_free() [all …]
|
/linux/arch/sparc/lib/ |
H A D | Memcpy_utils.S | 20 ba,pt %xcc, __restore_asi 24 ba,pt %xcc, __restore_asi 28 ba,pt %xcc, __restore_asi 32 ba,pt %xcc, __restore_asi 36 ba,pt %xcc, __restore_asi 40 ba,pt %xcc, __restore_asi 44 ba,pt %xcc, __restore_asi 48 ba,pt %xcc, __restore_asi 52 ba,pt %xcc, __restore_asi 57 ba,pt %xcc, __restore_asi [all …]
|
H A D | NGmemcpy.S | 86 ba,pt %xcc, __restore_asi 90 ba,pt %xcc, __restore_asi 95 ba,pt %xcc, __restore_asi 100 ba,pt %xcc, __restore_asi 105 ba,pt %xcc, __restore_asi 110 ba,pt %xcc, __restore_asi 115 ba,pt %xcc, __restore_asi 120 ba,pt %xcc, __restore_asi 125 ba,pt %xcc, __restore_asi 129 ba,pt %xcc, __restore_asi [all …]
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_lmtt.c | 59 struct xe_lmtt_pt *pt; in lmtt_pt_alloc() local 63 pt = kzalloc(struct_size(pt, entries, num_entries), GFP_KERNEL); in lmtt_pt_alloc() 64 if (!pt) { in lmtt_pt_alloc() 82 pt->level = level; in lmtt_pt_alloc() 83 pt->bo = bo; in lmtt_pt_alloc() 84 return pt; in lmtt_pt_alloc() 87 kfree(pt); in lmtt_pt_alloc() 92 static void lmtt_pt_free(struct xe_lmtt_pt *pt) in lmtt_pt_free() argument 94 xe_bo_unpin_map_no_vm(pt->bo); in lmtt_pt_free() 95 kfree(pt); in lmtt_pt_free() [all …]
|
/linux/lib/ |
H A D | nlattr.c | 119 void nla_get_range_unsigned(const struct nla_policy *pt, in nla_get_range_unsigned() argument 122 WARN_ON_ONCE(pt->validation_type != NLA_VALIDATE_RANGE_PTR && in nla_get_range_unsigned() 123 (pt->min < 0 || pt->max < 0)); in nla_get_range_unsigned() 127 switch (pt->type) { in nla_get_range_unsigned() 150 switch (pt->validation_type) { in nla_get_range_unsigned() 153 range->min = pt->min; in nla_get_range_unsigned() 154 range->max = pt->max; in nla_get_range_unsigned() 157 *range = *pt->range; in nla_get_range_unsigned() 160 range->min = pt->min; in nla_get_range_unsigned() 163 range->max = pt->max; in nla_get_range_unsigned() [all …]
|
/linux/drivers/gpu/drm/ttm/ |
H A D | ttm_pool.c | 225 static void ttm_pool_type_give(struct ttm_pool_type *pt, struct page *p) in ttm_pool_type_give() argument 227 unsigned int i, num_pages = 1 << pt->order; in ttm_pool_type_give() 236 spin_lock(&pt->lock); in ttm_pool_type_give() 237 list_add(&p->lru, &pt->pages); in ttm_pool_type_give() 238 spin_unlock(&pt->lock); in ttm_pool_type_give() 239 atomic_long_add(1 << pt->order, &allocated_pages); in ttm_pool_type_give() 243 static struct page *ttm_pool_type_take(struct ttm_pool_type *pt) in ttm_pool_type_take() argument 247 spin_lock(&pt->lock); in ttm_pool_type_take() 248 p = list_first_entry_or_null(&pt->pages, typeof(*p), lru); in ttm_pool_type_take() 250 atomic_long_sub(1 << pt->order, &allocated_pages); in ttm_pool_type_take() [all …]
|
/linux/net/netlink/ |
H A D | policy.c | 210 int netlink_policy_dump_attr_size_estimate(const struct nla_policy *pt) in netlink_policy_dump_attr_size_estimate() argument 215 switch (pt->type) { in netlink_policy_dump_attr_size_estimate() 256 const struct nla_policy *pt, in __netlink_policy_dump_write_attr() argument 259 int estimate = netlink_policy_dump_attr_size_estimate(pt); in __netlink_policy_dump_write_attr() 267 switch (pt->type) { in __netlink_policy_dump_write_attr() 278 if (pt->type == NLA_NESTED_ARRAY) in __netlink_policy_dump_write_attr() 280 if (state && pt->nested_policy && pt->len && in __netlink_policy_dump_write_attr() 283 pt->nested_policy, in __netlink_policy_dump_write_attr() 284 pt->len)) || in __netlink_policy_dump_write_attr() 286 pt->len))) in __netlink_policy_dump_write_attr() [all …]
|
/linux/arch/alpha/kernel/ |
H A D | process.c | 286 dump_elf_thread(elf_greg_t *dest, struct pt_regs *pt, struct thread_info *ti) in dump_elf_thread() argument 289 struct switch_stack * sw = ((struct switch_stack *) pt) - 1; in dump_elf_thread() 291 dest[ 0] = pt->r0; in dump_elf_thread() 292 dest[ 1] = pt->r1; in dump_elf_thread() 293 dest[ 2] = pt->r2; in dump_elf_thread() 294 dest[ 3] = pt->r3; in dump_elf_thread() 295 dest[ 4] = pt->r4; in dump_elf_thread() 296 dest[ 5] = pt->r5; in dump_elf_thread() 297 dest[ 6] = pt->r6; in dump_elf_thread() 298 dest[ 7] = pt->r7; in dump_elf_thread() [all …]
|
/linux/arch/x86/events/intel/ |
H A D | pt.c | 30 static DEFINE_PER_CPU(struct pt, pt_ctx); 106 PMU_FORMAT_ATTR(pt, "config:0" ); 418 struct pt *pt = this_cpu_ptr(&pt_ctx); in pt_config_start() local 425 if (READ_ONCE(pt->vmx_on)) in pt_config_start() 426 perf_aux_output_flag(&pt->handle, PERF_AUX_FLAG_PARTIAL); in pt_config_start() 464 struct pt *pt = this_cpu_ptr(&pt_ctx); in pt_config_filters() local 486 if (pt->filters.filter[range].msr_a != filter->msr_a) { in pt_config_filters() 488 pt->filters.filter[range].msr_a = filter->msr_a; in pt_config_filters() 491 if (pt->filters.filter[range].msr_b != filter->msr_b) { in pt_config_filters() 493 pt->filters.filter[range].msr_b = filter->msr_b; in pt_config_filters() [all …]
|
/linux/tools/perf/util/intel-pt-decoder/ |
H A D | Build | 1 perf-util-$(CONFIG_AUXTRACE) += intel-pt-pkt-decoder.o intel-pt-insn-decoder.o intel-pt-log.o intel… 6 $(OUTPUT)util/intel-pt-decoder/inat-tables.c: $(inat_tables_script) $(inat_tables_maps) 12 $(OUTPUT)util/intel-pt-decoder/intel-pt-insn-decoder.o: util/intel-pt-decoder/intel-pt-insn-decoder… 16 CFLAGS_intel-pt-insn-decoder.o += -I$(OUTPUT)util/intel-pt-decoder 19 CFLAGS_intel-pt-insn-decoder.o += -Wno-override-init 22 CFLAGS_intel-pt-insn-decoder.o += -Wno-packed
|
/linux/net/core/ |
H A D | net-procfs.c | 174 struct packet_type *pt = NULL; in ptype_get_idx() local 181 list_for_each_entry_rcu(pt, ptype_list, list) { in ptype_get_idx() 183 return pt; in ptype_get_idx() 188 list_for_each_entry_rcu(pt, &net_hotdata.ptype_all, list) { in ptype_get_idx() 190 return pt; in ptype_get_idx() 195 list_for_each_entry_rcu(pt, &ptype_base[t], list) { in ptype_get_idx() 197 return pt; in ptype_get_idx() 214 struct packet_type *pt; in ptype_seq_next() local 222 pt = v; in ptype_seq_next() 223 nxt = pt->list.next; in ptype_seq_next() [all …]
|
/linux/arch/x86/kernel/ |
H A D | vm86_32.c | 79 #define AL(regs) (((unsigned char *)&((regs)->pt.ax))[0]) 80 #define AH(regs) (((unsigned char *)&((regs)->pt.ax))[1]) 81 #define IP(regs) (*(unsigned short *)&((regs)->pt.ip)) 82 #define SP(regs) (*(unsigned short *)&((regs)->pt.sp)) 111 set_flags(regs->pt.flags, VEFLAGS, X86_EFLAGS_VIF | vm86->veflags_mask); in save_v86_state() 119 unsafe_put_user(regs->pt.bx, &user->regs.ebx, Efault_end); in save_v86_state() 120 unsafe_put_user(regs->pt.cx, &user->regs.ecx, Efault_end); in save_v86_state() 121 unsafe_put_user(regs->pt.dx, &user->regs.edx, Efault_end); in save_v86_state() 122 unsafe_put_user(regs->pt.si, &user->regs.esi, Efault_end); in save_v86_state() 123 unsafe_put_user(regs->pt.di, &user->regs.edi, Efault_end); in save_v86_state() [all …]
|
/linux/drivers/media/common/saa7146/ |
H A D | saa7146_core.c | 166 void *saa7146_vmalloc_build_pgtable(struct pci_dev *pci, long length, struct saa7146_pgtable *pt) in saa7146_vmalloc_build_pgtable() argument 175 if (!(pt->slist = vmalloc_to_sg(mem, pages))) in saa7146_vmalloc_build_pgtable() 178 if (saa7146_pgtable_alloc(pci, pt)) in saa7146_vmalloc_build_pgtable() 181 pt->nents = pages; in saa7146_vmalloc_build_pgtable() 182 slen = dma_map_sg(&pci->dev, pt->slist, pt->nents, DMA_FROM_DEVICE); in saa7146_vmalloc_build_pgtable() 186 if (0 != saa7146_pgtable_build_single(pci, pt, pt->slist, slen)) in saa7146_vmalloc_build_pgtable() 192 dma_unmap_sg(&pci->dev, pt->slist, pt->nents, DMA_FROM_DEVICE); in saa7146_vmalloc_build_pgtable() 194 saa7146_pgtable_free(pci, pt); in saa7146_vmalloc_build_pgtable() 196 kfree(pt->slist); in saa7146_vmalloc_build_pgtable() 197 pt->slist = NULL; in saa7146_vmalloc_build_pgtable() [all …]
|