• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/processor-trace/libipt/test/src/

Lines Matching refs:iscache

49 	/* The iscache back link. */
50 struct pt_image_section_cache *iscache;
67 /* A lock protecting the iscache and acount fields. */
78 struct pt_image_section_cache *iscache);
80 struct pt_image_section_cache *iscache);
263 struct pt_image_section_cache *iscache)
267 if (!section || !iscache)
277 if (section->iscache || !ucount)
280 section->iscache = iscache;
295 if (section->iscache != iscache)
308 struct pt_image_section_cache *iscache)
312 if (!section || !iscache)
319 if (section->iscache != iscache)
333 section->iscache = NULL;
344 struct pt_image_section_cache *iscache;
359 iscache = section->iscache;
360 if (iscache)
361 status = pt_iscache_notify_map(iscache, section);
417 struct pt_image_section_cache *iscache;
442 iscache = section->iscache;
443 if (iscache) {
444 errcode = pt_iscache_notify_resize(iscache, section, memsize);
537 struct pt_image_section_cache iscache;
577 errcode = pt_iscache_init(&cfix->iscache, NULL);
589 cfix->iscache.limit = 0x7800;
592 status = pt_iscache_add(&cfix->iscache, cfix->section[idx],
609 pt_iscache_fini(&cfix->iscache);
615 ptu_null(cfix->section[idx]->iscache);
654 struct pt_image_section_cache iscache;
661 errcode = pt_iscache_add(&iscache, NULL, 0ull);
679 struct pt_image_section_cache iscache;
687 errcode = pt_iscache_lookup(&iscache, NULL, &laddr, 0);
690 errcode = pt_iscache_lookup(&iscache, &section, NULL, 0);
715 struct pt_image_section_cache iscache;
721 errcode = pt_iscache_add_file(&iscache, NULL, 0ull, 0ull, 0ull);
729 struct pt_image_section_cache iscache;
736 errcode = pt_iscache_read(&iscache, NULL, sizeof(buffer), 1ull, 0ull);
739 errcode = pt_iscache_read(&iscache, &buffer, 0ull, 1, 0ull);
757 pt_iscache_init(&cfix->iscache, "iscache-name");
759 name = pt_iscache_name(&cfix->iscache);
760 ptu_str_eq(name, "iscache-name");
769 pt_iscache_init(&cfix->iscache, NULL);
771 name = pt_iscache_name(&cfix->iscache);
781 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0ull);
799 errcode = pt_iscache_add(&cfix->iscache, &section, 0ull);
809 isid = pt_iscache_add_file(&cfix->iscache, "name", 0ull, 1ull, 0ull);
823 isid = pt_iscache_add(&cfix->iscache, section, 0ull);
826 found = pt_iscache_find(&cfix->iscache, section->filename,
841 found = pt_iscache_find(&cfix->iscache, section->filename,
856 isid = pt_iscache_add(&cfix->iscache, section, 0ull);
859 found = pt_iscache_find(&cfix->iscache, "bad-filename",
870 errcode = pt_iscache_find(&cfix->iscache, NULL, 0ull, 0ull, 0ull);
884 isid = pt_iscache_add(&cfix->iscache, section, 0ull);
887 found = pt_iscache_find(&cfix->iscache, section->filename, 0ull,
902 isid = pt_iscache_add(&cfix->iscache, section, 0ull);
905 found = pt_iscache_find(&cfix->iscache, section->filename,
920 isid = pt_iscache_add(&cfix->iscache, section, 0ull);
923 found = pt_iscache_find(&cfix->iscache, section->filename,
936 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0ull);
939 errcode = pt_iscache_lookup(&cfix->iscache, &section, &laddr, isid);
956 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0ull);
959 errcode = pt_iscache_lookup(&cfix->iscache, &section, &laddr, 0);
962 errcode = pt_iscache_lookup(&cfix->iscache, &section, &laddr, -isid);
965 errcode = pt_iscache_lookup(&cfix->iscache, &section, &laddr, isid + 1);
975 errcode = pt_iscache_clear(&cfix->iscache);
989 isid = pt_iscache_add(&cfix->iscache, section, 0ull);
992 errcode = pt_iscache_clear(&cfix->iscache);
996 found = pt_iscache_find(&cfix->iscache, section->filename,
1009 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0ull);
1012 errcode = pt_iscache_clear(&cfix->iscache);
1015 errcode = pt_iscache_lookup(&cfix->iscache, &section, &laddr, isid);
1025 isid[0] = pt_iscache_add(&cfix->iscache, cfix->section[0], 0ull);
1028 isid[1] = pt_iscache_add(&cfix->iscache, cfix->section[0], 0ull);
1041 isid[0] = pt_iscache_add(&cfix->iscache, cfix->section[0], 0ull);
1047 isid[1] = pt_iscache_add(&cfix->iscache, cfix->section[1], 0ull);
1061 isid[0] = pt_iscache_add(&cfix->iscache, cfix->section[0], 0ull);
1064 isid[1] = pt_iscache_add(&cfix->iscache, cfix->section[0], 1ull);
1082 isid[0] = pt_iscache_add(&cfix->iscache, cfix->section[0], 0ull);
1088 isid[1] = pt_iscache_add(&cfix->iscache, cfix->section[1], 1ull);
1102 isid[0] = pt_iscache_add(&cfix->iscache, cfix->section[0], 0ull);
1105 isid[1] = pt_iscache_add(&cfix->iscache, cfix->section[1], 0ull);
1118 isid[0] = pt_iscache_add_file(&cfix->iscache, "name", 0ull, 1ull, 0ull);
1121 isid[1] = pt_iscache_add_file(&cfix->iscache, "name", 0ull, 1ull, 0ull);
1135 isid[0] = pt_iscache_add_file(&cfix->iscache, "name", 0ull, 1ull, 0ull);
1138 isid[1] = pt_iscache_add_file(&cfix->iscache, "name", 0ull, 1ull, 1ull);
1152 isid[0] = pt_iscache_add_file(&cfix->iscache, "name", 0ull, 1ull, 0ull);
1155 isid[1] = pt_iscache_add_file(&cfix->iscache, "name", 1ull, 1ull, 0ull);
1169 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull);
1172 status = pt_iscache_read(&cfix->iscache, buffer, 2ull, isid, 0xa008ull);
1186 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull);
1189 status = pt_iscache_read(&cfix->iscache, buffer, sizeof(buffer), isid,
1203 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull);
1206 status = pt_iscache_read(&cfix->iscache, buffer, 1ull, isid, 0xb000ull);
1218 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull);
1221 status = pt_iscache_read(&cfix->iscache, buffer, 1ull, isid + 1,
1233 cfix->iscache.limit = cfix->section[0]->size;
1234 ptu_uint_eq(cfix->iscache.used, 0ull);
1235 ptu_null(cfix->iscache.lru);
1237 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull);
1246 ptu_ptr(cfix->iscache.lru);
1247 ptu_ptr_eq(cfix->iscache.lru->section, cfix->section[0]);
1248 ptu_null(cfix->iscache.lru->next);
1249 ptu_uint_eq(cfix->iscache.used, cfix->section[0]->size);
1259 cfix->iscache.limit = cfix->section[0]->size;
1260 ptu_uint_eq(cfix->iscache.used, 0ull);
1261 ptu_null(cfix->iscache.lru);
1263 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull);
1266 status = pt_iscache_read(&cfix->iscache, buffer, 2ull, isid, 0xa008ull);
1269 ptu_ptr(cfix->iscache.lru);
1270 ptu_ptr_eq(cfix->iscache.lru->section, cfix->section[0]);
1271 ptu_null(cfix->iscache.lru->next);
1272 ptu_uint_eq(cfix->iscache.used, cfix->section[0]->size);
1281 cfix->iscache.limit = 2 * cfix->section[0]->size;
1282 ptu_uint_eq(cfix->iscache.used, 0ull);
1283 ptu_null(cfix->iscache.lru);
1285 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull);
1300 ptu_ptr(cfix->iscache.lru);
1301 ptu_ptr_eq(cfix->iscache.lru->section, cfix->section[0]);
1302 ptu_null(cfix->iscache.lru->next);
1303 ptu_uint_eq(cfix->iscache.used, cfix->section[0]->size);
1312 cfix->iscache.limit = cfix->section[0]->size - 1;
1313 ptu_uint_eq(cfix->iscache.used, 0ull);
1314 ptu_null(cfix->iscache.lru);
1316 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull);
1325 ptu_null(cfix->iscache.lru);
1326 ptu_uint_eq(cfix->iscache.used, 0ull);
1335 cfix->iscache.limit = cfix->section[0]->size + cfix->section[1]->size;
1336 ptu_uint_eq(cfix->iscache.used, 0ull);
1337 ptu_null(cfix->iscache.lru);
1339 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull);
1342 isid = pt_iscache_add(&cfix->iscache, cfix->section[1], 0xa000ull);
1357 ptu_ptr(cfix->iscache.lru);
1358 ptu_ptr_eq(cfix->iscache.lru->section, cfix->section[1]);
1359 ptu_ptr(cfix->iscache.lru->next);
1360 ptu_ptr_eq(cfix->iscache.lru->next->section, cfix->section[0]);
1361 ptu_null(cfix->iscache.lru->next->next);
1362 ptu_uint_eq(cfix->iscache.used,
1372 cfix->iscache.limit = cfix->section[0]->size + cfix->section[1]->size;
1373 ptu_uint_eq(cfix->iscache.used, 0ull);
1374 ptu_null(cfix->iscache.lru);
1376 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull);
1379 isid = pt_iscache_add(&cfix->iscache, cfix->section[1], 0xa000ull);
1400 ptu_ptr(cfix->iscache.lru);
1401 ptu_ptr_eq(cfix->iscache.lru->section, cfix->section[0]);
1402 ptu_ptr(cfix->iscache.lru->next);
1403 ptu_ptr_eq(cfix->iscache.lru->next->section, cfix->section[1]);
1404 ptu_null(cfix->iscache.lru->next->next);
1405 ptu_uint_eq(cfix->iscache.used,
1415 cfix->iscache.limit = cfix->section[0]->size +
1417 ptu_uint_eq(cfix->iscache.used, 0ull);
1418 ptu_null(cfix->iscache.lru);
1420 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull);
1423 isid = pt_iscache_add(&cfix->iscache, cfix->section[1], 0xa000ull);
1438 ptu_ptr(cfix->iscache.lru);
1439 ptu_ptr_eq(cfix->iscache.lru->section, cfix->section[1]);
1440 ptu_null(cfix->iscache.lru->next);
1441 ptu_uint_eq(cfix->iscache.used, cfix->section[1]->size);
1450 cfix->iscache.limit = 4 * cfix->section[0]->size +
1452 ptu_uint_eq(cfix->iscache.used, 0ull);
1453 ptu_null(cfix->iscache.lru);
1455 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull);
1458 isid = pt_iscache_add(&cfix->iscache, cfix->section[1], 0xa000ull);
1476 ptu_ptr(cfix->iscache.lru);
1477 ptu_ptr_eq(cfix->iscache.lru->section, cfix->section[0]);
1478 ptu_null(cfix->iscache.lru->next);
1479 ptu_uint_eq(cfix->iscache.used, 4 * cfix->section[0]->size);
1488 cfix->iscache.limit = cfix->section[0]->size + cfix->section[1]->size;
1489 ptu_uint_eq(cfix->iscache.used, 0ull);
1490 ptu_null(cfix->iscache.lru);
1492 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull);
1495 isid = pt_iscache_add(&cfix->iscache, cfix->section[1], 0xa000ull);
1513 ptu_null(cfix->iscache.lru);
1514 ptu_uint_eq(cfix->iscache.used, 0ull);
1523 cfix->iscache.limit = cfix->section[0]->size + cfix->section[1]->size;
1524 ptu_uint_eq(cfix->iscache.used, 0ull);
1525 ptu_null(cfix->iscache.lru);
1527 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull);
1530 isid = pt_iscache_add(&cfix->iscache, cfix->section[1], 0xa000ull);
1545 status = pt_iscache_set_limit(&cfix->iscache,
1550 ptu_ptr(cfix->iscache.lru);
1551 ptu_ptr_eq(cfix->iscache.lru->section, cfix->section[1]);
1552 ptu_null(cfix->iscache.lru->next);
1553 ptu_uint_eq(cfix->iscache.used, cfix->section[1]->size);
1562 cfix->iscache.limit = cfix->section[0]->size;
1563 ptu_uint_eq(cfix->iscache.used, 0ull);
1564 ptu_null(cfix->iscache.lru);
1566 isid = pt_iscache_add(&cfix->iscache, cfix->section[0], 0xa000ull);
1575 status = pt_iscache_clear(&cfix->iscache);
1578 ptu_null(cfix->iscache.lru);
1579 ptu_uint_eq(cfix->iscache.used, 0ull);
1604 isid = pt_iscache_add(&cfix->iscache,
1609 errcode = pt_iscache_lookup(&cfix->iscache, &section,
1660 isid = pt_iscache_add_file(&cfix->iscache, "name",
1665 errcode = pt_iscache_lookup(&cfix->iscache, &section,
1742 errcode = pt_iscache_set_limit(&cfix->iscache, limit);
1803 isid = pt_iscache_add(&cfix->iscache, section, laddr);
1836 isid = pt_iscache_add(&cfix->iscache, section, laddr);
1840 errcode = pt_iscache_clear(&cfix->iscache);
1866 isid = pt_iscache_add_file(&cfix->iscache, "name",
1871 errcode = pt_iscache_lookup(&cfix->iscache, &section,
1908 isid = pt_iscache_add_file(&cfix->iscache, "name",
1916 errcode = pt_iscache_clear(&cfix->iscache);