Lines Matching refs:sfq

390 				   struct s390_cpumsf_queue *sfq)  in s390_cpumsf_make_event()  argument
397 .cpu = sfq->cpu, in s390_cpumsf_make_event()
424 if (perf_session__deliver_synth_event(sfq->sf->session, &event, in s390_cpumsf_make_event()
477 static int s390_cpumsf_samples(struct s390_cpumsf_queue *sfq, u64 *ts) in s390_cpumsf_samples() argument
479 struct s390_cpumsf *sf = sfq->sf; in s390_cpumsf_samples()
480 unsigned char *buf = sfq->buffer->use_data; in s390_cpumsf_samples()
481 size_t len = sfq->buffer->use_size; in s390_cpumsf_samples()
502 sfq->buffer->data_offset); in s390_cpumsf_samples()
514 if (s390_cpumsf_make_event(pos, basic, sfq)) in s390_cpumsf_samples()
537 sfq->buffer->use_data += pos; in s390_cpumsf_samples()
538 sfq->buffer->use_size -= pos; in s390_cpumsf_samples()
545 sfq->buffer->use_size = 0; in s390_cpumsf_samples()
546 sfq->buffer->use_data = NULL; in s390_cpumsf_samples()
570 static int s390_cpumsf_run_decoder(struct s390_cpumsf_queue *sfq, in s390_cpumsf_run_decoder() argument
578 queue = &sfq->sf->queues.queue_array[sfq->queue_nr]; in s390_cpumsf_run_decoder()
586 if (sfq->buffer == NULL) { in s390_cpumsf_run_decoder()
587 sfq->buffer = buffer = auxtrace_buffer__next(queue, in s390_cpumsf_run_decoder()
588 sfq->buffer); in s390_cpumsf_run_decoder()
599 buffer = sfq->buffer; in s390_cpumsf_run_decoder()
602 int fd = perf_data__fd(sfq->sf->session->data); in s390_cpumsf_run_decoder()
611 __func__, sfq->queue_nr, buffer->buffer_nr, buffer->offset, in s390_cpumsf_run_decoder()
613 err = s390_cpumsf_samples(sfq, ts); in s390_cpumsf_run_decoder()
622 sfq->buffer = NULL; in s390_cpumsf_run_decoder()
634 struct s390_cpumsf_queue *sfq; in s390_cpumsf_alloc_queue() local
636 sfq = zalloc(sizeof(struct s390_cpumsf_queue)); in s390_cpumsf_alloc_queue()
637 if (sfq == NULL) in s390_cpumsf_alloc_queue()
640 sfq->sf = sf; in s390_cpumsf_alloc_queue()
641 sfq->queue_nr = queue_nr; in s390_cpumsf_alloc_queue()
642 sfq->cpu = -1; in s390_cpumsf_alloc_queue()
643 return sfq; in s390_cpumsf_alloc_queue()
650 struct s390_cpumsf_queue *sfq = queue->priv; in s390_cpumsf_setup_queue() local
655 if (sfq == NULL) { in s390_cpumsf_setup_queue()
656 sfq = s390_cpumsf_alloc_queue(sf, queue_nr); in s390_cpumsf_setup_queue()
657 if (!sfq) in s390_cpumsf_setup_queue()
659 queue->priv = sfq; in s390_cpumsf_setup_queue()
662 sfq->cpu = queue->cpu; in s390_cpumsf_setup_queue()
698 struct s390_cpumsf_queue *sfq; in s390_cpumsf_process_queues() local
708 sfq = queue->priv; in s390_cpumsf_process_queues()
719 ret = s390_cpumsf_run_decoder(sfq, &ts); in s390_cpumsf_process_queues()