Searched refs:tfix (Results 1 – 6 of 6) sorted by relevance
| /freebsd/contrib/processor-trace/libipt/test/src/ |
| H A D | ptunit-time.c | 53 static struct ptunit_result tfix_init(struct time_fixture *tfix) in tfix_init() argument 55 memset(&tfix->config, 0, sizeof(tfix->config)); in tfix_init() 56 tfix->config.size = sizeof(tfix->config); in tfix_init() 57 tfix->config.cpuid_0x15_eax = 2; in tfix_init() 58 tfix->config.cpuid_0x15_ebx = 1; in tfix_init() 59 tfix->config.mtc_freq = 4; in tfix_init() 61 pt_tcal_init(&tfix->tcal); in tfix_init() 62 pt_tcal_set_fcr(&tfix->tcal, 0x2ull << pt_tcal_fcr_shr); in tfix_init() 64 pt_time_init(&tfix->time); in tfix_init() 70 static struct ptunit_result tsc_null(struct time_fixture *tfix) in tsc_null() argument [all …]
|
| H A D | ptunit-msec_cache.c | 248 static struct ptunit_result invalidate(struct test_fixture *tfix) in invalidate() argument 253 status = pt_msec_cache_invalidate(&tfix->mcache); in invalidate() 256 section = pt_msec_section(&tfix->mcache.msec); in invalidate() 259 ptu_uint_eq(tfix->section.mcount, 0); in invalidate() 260 ptu_uint_eq(tfix->section.ucount, 0); in invalidate() 265 static struct ptunit_result read_nomap(struct test_fixture *tfix) in read_nomap() argument 272 status = pt_msec_cache_read(&tfix->mcache, &msec, &tfix->image, 0ull); in read_nomap() 279 static struct ptunit_result read(struct test_fixture *tfix) in read() argument 285 status = pt_msec_cache_read(&tfix->mcache, &msec, &tfix->image, 0ull); in read() 288 ptu_ptr_eq(msec, &tfix->mcache.msec); in read() [all …]
|
| H A D | ptunit-encoder.c | 48 struct ptunit_result (*init)(struct test_fixture *tfix); 49 struct ptunit_result (*fini)(struct test_fixture *tfix); 52 static struct ptunit_result tfix_init(struct test_fixture *tfix) in tfix_init() argument 58 config = &tfix->config; in tfix_init() 59 buffer = tfix->buffer; in tfix_init() 61 memset(buffer, 0, sizeof(tfix->buffer)); in tfix_init() 65 config->end = buffer + sizeof(tfix->buffer); in tfix_init() 67 errcode = pt_encoder_init(&tfix->encoder, config); in tfix_init() 122 static struct ptunit_result sync_set_eos(struct test_fixture *tfix) in sync_set_eos() argument 126 errcode = pt_enc_sync_set(&tfix->encoder, sizeof(tfix->buffer) + 1); in sync_set_eos() [all …]
|
| H A D | ptunit-packet_decoder.c | 48 struct ptunit_result (*init)(struct test_fixture *tfix); 49 struct ptunit_result (*fini)(struct test_fixture *tfix); 52 static struct ptunit_result tfix_init(struct test_fixture *tfix) in tfix_init() argument 58 config = &tfix->config; in tfix_init() 59 buffer = tfix->buffer; in tfix_init() 61 memset(buffer, 0, sizeof(tfix->buffer)); in tfix_init() 65 config->end = buffer + sizeof(tfix->buffer); in tfix_init() 67 errcode = pt_pkt_decoder_init(&tfix->decoder, config); in tfix_init() 142 static struct ptunit_result sync_set_eos(struct test_fixture *tfix) in sync_set_eos() argument 146 errcode = pt_pkt_sync_set(&tfix->decoder, sizeof(tfix->buffer) + 1); in sync_set_eos() [all …]
|
| H A D | ptunit-block_decoder.c | 48 struct ptunit_result (*init)(struct test_fixture *tfix); 49 struct ptunit_result (*fini)(struct test_fixture *tfix); 52 static struct ptunit_result tfix_init(struct test_fixture *tfix) in tfix_init() argument 58 config = &tfix->config; in tfix_init() 59 buffer = tfix->buffer; in tfix_init() 61 memset(buffer, 0, sizeof(tfix->buffer)); in tfix_init() 65 config->end = buffer + sizeof(tfix->buffer); in tfix_init() 67 errcode = pt_blk_decoder_init(&tfix->decoder, config); in tfix_init() 142 static struct ptunit_result sync_set_eos(struct test_fixture *tfix) in sync_set_eos() argument 146 errcode = pt_blk_sync_set(&tfix->decoder, sizeof(tfix->buffer) + 1); in sync_set_eos() [all …]
|
| H A D | ptunit-insn_decoder.c | 48 struct ptunit_result (*init)(struct test_fixture *tfix); 49 struct ptunit_result (*fini)(struct test_fixture *tfix); 52 static struct ptunit_result tfix_init(struct test_fixture *tfix) in tfix_init() argument 58 config = &tfix->config; in tfix_init() 59 buffer = tfix->buffer; in tfix_init() 61 memset(buffer, 0, sizeof(tfix->buffer)); in tfix_init() 65 config->end = buffer + sizeof(tfix->buffer); in tfix_init() 67 errcode = pt_insn_decoder_init(&tfix->decoder, config); in tfix_init() 142 static struct ptunit_result sync_set_eos(struct test_fixture *tfix) in sync_set_eos() argument 146 errcode = pt_insn_sync_set(&tfix->decoder, sizeof(tfix->buffer) + 1); in sync_set_eos() [all …]
|