Lines Matching +full:static +full:- +full:config
33 #include "intel-pt.h"
42 struct pt_config config; member
52 static struct ptunit_result tfix_init(struct test_fixture *tfix) in tfix_init()
54 struct pt_config *config; in tfix_init() local
58 config = &tfix->config; in tfix_init()
59 buffer = tfix->buffer; in tfix_init()
61 memset(buffer, 0, sizeof(tfix->buffer)); in tfix_init()
63 pt_config_init(config); in tfix_init()
64 config->begin = 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()
73 static struct ptunit_result encoder_init_null(void) in encoder_init_null()
76 struct pt_config config; in encoder_init_null() local
79 errcode = pt_encoder_init(NULL, &config); in encoder_init_null()
80 ptu_int_eq(errcode, -pte_invalid); in encoder_init_null()
83 ptu_int_eq(errcode, -pte_invalid); in encoder_init_null()
88 static struct ptunit_result encoder_fini_null(void) in encoder_fini_null()
95 static struct ptunit_result alloc_encoder_null(void) in alloc_encoder_null()
105 static struct ptunit_result free_encoder_null(void) in free_encoder_null()
112 static struct ptunit_result sync_set_null(void) in sync_set_null()
117 ptu_int_eq(errcode, -pte_invalid); in sync_set_null()
122 static struct ptunit_result sync_set_eos(struct test_fixture *tfix) in sync_set_eos()
126 errcode = pt_enc_sync_set(&tfix->encoder, sizeof(tfix->buffer) + 1); in sync_set_eos()
127 ptu_int_eq(errcode, -pte_eos); in sync_set_eos()
132 static struct ptunit_result get_offset_null(void) in get_offset_null()
139 ptu_int_eq(errcode, -pte_invalid); in get_offset_null()
142 ptu_int_eq(errcode, -pte_invalid); in get_offset_null()
147 static struct ptunit_result get_offset_init(struct test_fixture *tfix) in get_offset_init()
152 errcode = pt_enc_get_offset(&tfix->encoder, &offset); in get_offset_init()
159 static struct ptunit_result sync_set_get_offset(struct test_fixture *tfix) in sync_set_get_offset()
164 errcode = pt_enc_sync_set(&tfix->encoder, 1ull); in sync_set_get_offset()
167 errcode = pt_enc_get_offset(&tfix->encoder, &offset); in sync_set_get_offset()
174 static struct ptunit_result get_config_null(void) in get_config_null()
176 const struct pt_config *config; in get_config_null() local
178 config = pt_enc_get_config(NULL); in get_config_null()
179 ptu_null(config); in get_config_null()
184 static struct ptunit_result get_config(struct test_fixture *tfix) in get_config()
186 const struct pt_config *config; in get_config() local
188 config = pt_enc_get_config(&tfix->encoder); in get_config()
189 ptu_ptr(config); in get_config()
194 static struct ptunit_result next_null(void) in next_null()
201 ptu_int_eq(errcode, -pte_invalid); in next_null()
204 ptu_int_eq(errcode, -pte_invalid); in next_null()