Home
last modified time | relevance | path

Searched refs:sfix (Results 1 – 4 of 4) sorted by relevance

/freebsd/contrib/processor-trace/libipt/test/src/
H A Dptunit-section.c144 static struct ptunit_result sfix_write_aux(struct section_fixture *sfix, in sfix_write_aux() argument
149 written = fwrite(buffer, 1, size, sfix->file); in sfix_write_aux()
152 fflush(sfix->file); in sfix_write_aux()
157 #define sfix_write(sfix, buffer) \ argument
158 ptu_check(sfix_write_aux, sfix, buffer, sizeof(buffer))
160 static struct ptunit_result create(struct section_fixture *sfix) in create() argument
167 sfix_write(sfix, bytes); in create()
169 errcode = pt_mk_section(&sfix->section, sfix->name, 0x1ull, 0x3ull); in create()
171 ptu_ptr(sfix->section); in create()
173 name = pt_section_filename(sfix->section); in create()
[all …]
H A Dptunit-sync.c50 static struct ptunit_result sfix_init(struct sync_fixture *sfix) in sfix_init() argument
52 memset(sfix->buffer, 0xcd, sizeof(sfix->buffer)); in sfix_init()
54 memset(&sfix->config, 0, sizeof(sfix->config)); in sfix_init()
55 sfix->config.size = sizeof(sfix->config); in sfix_init()
56 sfix->config.begin = sfix->buffer; in sfix_init()
57 sfix->config.end = sfix->buffer + sizeof(sfix->buffer); in sfix_init()
76 static struct ptunit_result sync_fwd_null(struct sync_fixture *sfix) in sync_fwd_null() argument
81 errcode = pt_sync_forward(NULL, sfix->config.begin, &sfix->config); in sync_fwd_null()
84 errcode = pt_sync_forward(&sync, NULL, &sfix->config); in sync_fwd_null()
87 errcode = pt_sync_forward(&sync, sfix->config.begin, NULL); in sync_fwd_null()
[all …]
H A Dptunit-msec_cache.c383 struct test_fixture sfix, ifix, cfix, cifix; in main() local
385 sfix.init = sfix_init; in main()
386 sfix.fini = NULL; in main()
405 ptu_run_f(suite, invalidate, sfix); in main()
408 ptu_run_f(suite, read_nomap, sfix); in main()
413 ptu_run_f(suite, fill_nomap, sfix); in main()
H A Dptunit-image_section_cache.c1945 struct iscache_fixture cfix, dfix, sfix; in main() local
1954 sfix.init = sfix_init; in main()
1955 sfix.fini = cfix_fini; in main()
2022 ptu_run_fp(suite, stress, sfix, worker_map); in main()
2023 ptu_run_fp(suite, stress, sfix, worker_map_limit); in main()
2024 ptu_run_fp(suite, stress, sfix, worker_map_bcache); in main()