char *name = SPLAT_KMEM_TEST5_NAME;
int rc;
+ /* On slab (default + kmem + vmem) */
rc = splat_kmem_cache_test(file, arg, name, 128, 0, 0);
if (rc)
return rc;
if (rc)
return rc;
- return splat_kmem_cache_test(file, arg, name, 128, 0, KMC_VMEM);
+ rc = splat_kmem_cache_test(file, arg, name, 128, 0, KMC_VMEM);
+ if (rc)
+ return rc;
+
+ /* Off slab (default + kmem + vmem) */
+ rc = splat_kmem_cache_test(file, arg, name, 128, 0, KMC_OFFSLAB);
+ if (rc)
+ return rc;
+
+ rc = splat_kmem_cache_test(file, arg, name, 128, 0,
+ KMC_KMEM | KMC_OFFSLAB);
+ if (rc)
+ return rc;
+
+ rc = splat_kmem_cache_test(file, arg, name, 128, 0,
+ KMC_VMEM | KMC_OFFSLAB);
+
+ return rc;
}
/*
char *name = SPLAT_KMEM_TEST6_NAME;
int rc;
+ /* On slab (default + kmem + vmem) */
rc = splat_kmem_cache_test(file, arg, name, 256*1024, 0, 0);
if (rc)
return rc;
if (rc)
return rc;
- return splat_kmem_cache_test(file, arg, name, 1024*1024, 0, KMC_VMEM);
+ rc = splat_kmem_cache_test(file, arg, name, 1024*1024, 0, KMC_VMEM);
+ if (rc)
+ return rc;
+
+ /* Off slab (default + kmem + vmem) */
+ rc = splat_kmem_cache_test(file, arg, name, 256*1024, 0, KMC_OFFSLAB);
+ if (rc)
+ return rc;
+
+ rc = splat_kmem_cache_test(file, arg, name, 64*1024, 0,
+ KMC_KMEM | KMC_OFFSLAB);
+ if (rc)
+ return rc;
+
+ rc = splat_kmem_cache_test(file, arg, name, 1024*1024, 0,
+ KMC_VMEM | KMC_OFFSLAB);
+
+ return rc;
}
/*
rc = splat_kmem_cache_test(file, arg, name, 157, i, 0);
if (rc)
return rc;
+
+ rc = splat_kmem_cache_test(file, arg, name, 157, i,
+ KMC_OFFSLAB);
+ if (rc)
+ return rc;
}
return rc;