Lines Matching refs:ti
20 static int init_test_info(struct test_info *ti)
22 ti->machine = machine__new_host();
23 if (!ti->machine) {
29 ti->thread = machine__findnew_thread(ti->machine, 100, 100);
30 if (!ti->thread) {
38 static void exit_test_info(struct test_info *ti)
40 thread__put(ti->thread);
41 machine__delete(ti->machine);
52 static int create_map(struct test_info *ti, char *filename, struct map **map_p)
55 *map_p = map__new(ti->machine, 0x100000, 0xffffffff, 0, NULL,
56 PROT_EXEC, 0, NULL, filename, ti->thread);
100 static int test_file(struct test_info *ti, char *filename)
108 ret = create_map(ti, filename, &map);
136 struct test_info ti;
139 ret = init_test_info(&ti);
145 ret = test_file(&ti, filename);
147 exit_test_info(&ti);