search for: test_f

Displaying 20 results from an estimated 37 matches for "test_f".

Did you mean: test_
2008 Oct 11
1
[PATCH] fstype: Fix ext4/ext4dev probing
Enhance fstype so it properly takes into account whether or not the ext4 and/or ext4dev filesystems are present, and properly handles the test_fs flag. The old code also has some really buggy checks --- for example, where it compared the set of supported ro_compat features against the incompat feature bitmask: (sb->s_feature_incompat & __cpu_to_le32(EXT3_FEATURE_RO_COMPAT_SUPP) I rewrote the ext4 checks so they are more easi...
2019 Oct 07
0
[klibc:master] fstype: Drop obsolete support for "ext4dev"
...++; - i = strlen(cp); - if (i > 3) { - t = cp + i - 3; - if (!strcmp(t, ".ko")) - *t = 0; - } - if (!strcmp(cp, fs_name)) { - fclose(f); - return 1; - } - } - fclose(f); - return 0; -} - -static int base_ext4_image(const void *buf, unsigned long long *bytes, - int *test_fs) +static int ext4_image(const void *buf, unsigned long long *bytes) { const struct ext3_super_block *sb = (const struct ext3_super_block *)buf; @@ -209,43 +128,11 @@ static int base_ext4_image(const void *buf, unsigned long long *bytes, & __cpu_to_le32(EXT3_FEATURE_RO_COMPAT_UNSUP...
2020 Jul 23
0
[PATCH v4 5/6] mm/hmm/test: use the new migration invalidation
...+ */ migrate_vma_finalize(&args); return 0; } diff --git a/tools/testing/selftests/vm/hmm-tests.c b/tools/testing/selftests/vm/hmm-tests.c index b533dd08da1d..91d38a29956b 100644 --- a/tools/testing/selftests/vm/hmm-tests.c +++ b/tools/testing/selftests/vm/hmm-tests.c @@ -881,8 +881,9 @@ TEST_F(hmm, migrate) } /* - * Migrate anonymous memory to device private memory and fault it back to system - * memory. + * Migrate anonymous memory to device private memory and fault some of it back + * to system memory, then try migrating the resulting mix of system and device + * private memory to...
2011 May 30
5
Damaged super block / fs root
I have accidently damaged the first block(s) of a btrfs partition and can''t mount it anymore. I can see that my data is still intact by running a command like: cat /dev/sda5 | hexdump -C | more Do any (experimental) tools exist which would allow me to recover the files? Thank you -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a
2020 Jun 19
0
[PATCH 15/16] mm/hmm/test: add self tests for THP migration
...locate_chunk(mdevice, false, NULL); return 0; } diff --git a/tools/testing/selftests/vm/hmm-tests.c b/tools/testing/selftests/vm/hmm-tests.c index e0fa864d03fa..d58a6f5280b7 100644 --- a/tools/testing/selftests/vm/hmm-tests.c +++ b/tools/testing/selftests/vm/hmm-tests.c @@ -1442,4 +1442,296 @@ TEST_F(hmm2, double_map) hmm_buffer_free(buffer); } +/* + * Migrate private anonymous huge empty page. + */ +TEST_F(hmm, migrate_anon_huge_empty) +{ + struct hmm_buffer *buffer; + unsigned long npages; + unsigned long size; + unsigned long i; + void *old_ptr; + void *map; + int *ptr; + int ret; + + s...
2015 May 24
2
[Mesa-dev] [PATCH 07/11] glsl: Add arb_cull_distance support
...ue; > ctx->Extensions.OES_standard_derivatives = true; > diff --git a/src/glsl/tests/varyings_test.cpp b/src/glsl/tests/varyings_test.cpp > index 4573529..7a962c5 100644 > --- a/src/glsl/tests/varyings_test.cpp > +++ b/src/glsl/tests/varyings_test.cpp > @@ -202,6 +202,33 @@ TEST_F(link_varyings, gl_ClipDistance) > EXPECT_TRUE(is_empty(consumer_interface_inputs)); > } > > +TEST_F(link_varyings, gl_CullDistance) > +{ > + const glsl_type *const array_8_of_float = > + glsl_type::get_array_instance(glsl_type::vec(1), 8); > + > + ir_varia...
2008 Dec 27
0
[LLVMdev] [Patch] Adding unit tests to LLVM
...SERT_DEATH() on the decrement, or not have the code there (that's commented out) at all. * Instead of this: EXPECT_TRUE(uintMap[0] == 1); you should use EXPECT_EQ() * Instead of this: EXPECT_TRUE(uintMap.find(0u) == uintMap.begin()); is it possible to use EXPECT_EQ() as well? * In this test: TEST_F(DenseMapTest, IterationTest) { you use the array "int numbers[100];" as an array of booleans; why not make it "bool visited[100];" to make clear what it for, how it's used, and maybe be slightly more efficient? > 1) For the testing framework, I went with Google Test, sin...
2019 Sep 11
6
[PATCH 0/4] HMM tests and minor fixes
These changes are based on Jason's latest hmm branch. Patch 1 was previously posted here [1] but was dropped from the orginal series. Hopefully, the tests will reduce concerns about edge conditions. I'm sure more tests could be usefully added but I thought this was a good starting point. [1] https://lore.kernel.org/linux-mm/20190726005650.2566-6-rcampbell at nvidia.com/ Ralph Campbell
2020 Jan 13
9
[PATCH v6 0/6] mm/hmm/test: add self tests for HMM
This series adds new functions to the mmu interval notifier API to allow device drivers with MMUs to dynamically mirror a process' page tables based on device faults and invalidation callbacks. The Nouveau driver is updated to use the extended API and a set of stand alone self tests is added to help validate and maintain correctness. The patches are based on linux-5.5.0-rc6 and are for
2008 Dec 27
3
[LLVMdev] [Patch] Adding unit tests to LLVM
...(that's > commented out) at all. > > * Instead of this: > EXPECT_TRUE(uintMap[0] == 1); > you should use EXPECT_EQ() > > * Instead of this: > EXPECT_TRUE(uintMap.find(0u) == uintMap.begin()); > is it possible to use EXPECT_EQ() as well? > > * In this test: > TEST_F(DenseMapTest, IterationTest) { > you use the array "int numbers[100];" as an array of booleans; why not > make it "bool visited[100];" to make clear what it for, how it's used, > and maybe be slightly more efficient? > > > 1) For the testing framework, I we...
2008 Jun 16
0
latest fixes
...2390c68bbb4b8e32469 Author: maximilian attems <max at stro.at> Date: Mon Jun 16 02:03:03 2008 +0200 [klibc] fstype: fix ext4dev detection ext4dev changed on disc format, cope with 2.6.26-rc6 ext4dev using e2fsprogs 1.40.8-2 mke2fs -q -j /dev/mapper/dualvg0-foo -E test_fs mount /dev/mapper/dualvg0-foo /mnt/ -t ext4dev EXT4 FS on dm-12, internal journal EXT4-fs: mounted filesystem with ordered data mode. EXT4-fs: file extents enabled EXT4-fs: mballoc enabled ./usr/kinit/fstype/shared/fstype /dev/mapper/dualvg0-foo FSTYPE=e...
2008 Dec 27
0
[LLVMdev] [Patch] Adding unit tests to LLVM
...(that's > commented out) at all. > > * Instead of this: > EXPECT_TRUE(uintMap[0] == 1); > you should use EXPECT_EQ() > > * Instead of this: > EXPECT_TRUE(uintMap.find(0u) == uintMap.begin()); > is it possible to use EXPECT_EQ() as well? > > * In this test: > TEST_F(DenseMapTest, IterationTest) { > you use the array "int numbers[100];" as an array of booleans; why not > make it "bool visited[100];" to make clear what it for, how it's used, > and maybe be slightly more efficient? > > > 1) For the testing framework, I we...
2008 Dec 23
6
[LLVMdev] [Patch] Adding unit tests to LLVM
(Forwarding this to llvm-dev) This patch adds a unit test framework to LLVM, along with a sample unit test for DenseMap. I don't expect this patch to be accepted as-is, this is mainly a trial balloon and proof of concept. Some notes about the patch: 1) For the testing framework, I went with Google Test, since it's the one I have the most experience with. I fully expect an extended
2013 May 29
0
[LLVMdev] Polyhedron 2005 results for dragonegg 3.3svn
...29.50 29.82 29.59 29.86 27.21 27.25 protein 36.15 36.15 35.21 35.17 35.93 36.02 34.16 34.06 31.88 31.81 rnflow 27.02 27.08 25.92 26.12 26.77 26.83 22.20 22.21 24.67 21.21 test_fpu 11.49 11.55 11.47 11.52 9.11 9.11 9.30 9.30 7.90 8.01 tfft 1.92 1.94 1.92 1.92 1.92 1.92 1.89 1.90 1.86 1.90 Geom. Mean 13.19 12.95 13.10 12.83 10.99 1...
2013 Oct 14
0
Glusterfs 3.4.1 not able to mount the exports containing soft links
...in the server 1 that I am trying to export server 1 sh# gluster volume info all Volume Name: _testvol Type: Distribute Volume ID: f36d4ec4-8462-44aa-a0e6-e86c8bd3c914 Status: Started Number of Bricks: 2 Transport-type: tcp Bricks: Brick1: 10.137.108.163:/mnt/gluster Brick2: 10.137.108.163:/root/test_fs Below is the content of the of the exported volume on the server 1 server 1 sh# ls -l total 4 lrwxrwxrwx. 1 root root 6 Oct 14 13:54 fakeroot -> rootfs drwxr-xr-x. 20 root root 4096 Oct 10 20:07 rootfs >From server 2 , I am trying to mount the soft link fakeroot, and it is failin...
2020 Jul 21
6
[PATCH v3 0/5] mm/migrate: avoid device private invalidations
The goal for this series is to avoid device private memory TLB invalidations when migrating a range of addresses from system memory to device private memory and some of those pages have already been migrated. The approach taken is to introduce a new mmu notifier invalidation event type and use that in the device driver to skip invalidation callbacks from migrate_vma_setup(). The device driver is
2020 Jun 19
22
[PATCH 00/16] mm/hmm/nouveau: THP mapping and migration
These patches apply to linux-5.8.0-rc1. Patches 1-3 should probably go into 5.8, the others can be queued for 5.9. Patches 4-6 improve the HMM self tests. Patch 7-8 prepare nouveau for the meat of this series which adds support and testing for compound page mapping of system memory (patches 9-11) and compound page migration to device private memory (patches 12-16). Since these changes are split
2009 Apr 28
2
[LLVMdev] infinite looping on hashtables
...-------------------------------------------------------- ===// + +#include "gtest/gtest.h" +#include <llvm/ADT/DenseSet.h> + +using namespace llvm; + +namespace { + +// Test fixture +class DenseSetTest : public testing::Test { +}; + +// Test hashing with a set of only two entries. +TEST_F(DenseSetTest, DoubleEntrySetTest) { + llvm::DenseSet<unsigned> set(2); + set.insert(0); + set.insert(1); + // Original failure was an infinite loop in this call: + EXPECT_EQ(0, set.count(2)); +} + +} ------------------------------------------------------ This test works fine, so long as...
2020 Jul 23
9
[PATCH v4 0/6] mm/migrate: avoid device private invalidations
The goal for this series is to avoid device private memory TLB invalidations when migrating a range of addresses from system memory to device private memory and some of those pages have already been migrated. The approach taken is to introduce a new mmu notifier invalidation event type and use that in the device driver to skip invalidation callbacks from migrate_vma_setup(). The device driver is
2020 Nov 06
12
[PATCH v3 0/6] mm/hmm/nouveau: add THP migration to migrate_vma_*
This series adds support for transparent huge page migration to migrate_vma_*() and adds nouveau SVM and HMM selftests as consumers. Earlier versions were posted previously [1] and [2]. The patches apply cleanly to the linux-mm 5.10.0-rc2 tree. There are a lot of other THP patches being posted. I don't think there are any semantic conflicts but there may be some merge conflicts depending on