[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "ls -l": Avoid unnecessary getxattr() overhead
From: |
Jim Meyering |
Subject: |
Re: "ls -l": Avoid unnecessary getxattr() overhead |
Date: |
Mon, 27 Feb 2012 22:03:26 +0100 |
Bernhard Voelker wrote:
> On 02/26/2012 09:41 AM, Jim Meyering wrote:
...
> I've created the attached patch to make the test pass.
...
> Subject: [PATCH] tests: compile and link shared object with GCC to make
> LD_PRELOAD work
Thanks I tweaked the title: s/G/$/
...
...
> # Then compile/link it:
> -$CC -fPIC -O2 -c k.c || framework_failure_ 'failed to compile with -fPIC'
> -ld -G k.o -o k.so || framework_failure_ 'failed to invoke ld -G ...'
> +$CC -shared -fPIC -O2 k.c -o k.so ||
> + framework_failure_ 'failed to compile with -shared -fPIC'
>
> # Create a few files:
> seq 20 | xargs touch || framework_failure_
And adjusted the above so that the operator is at the
beginning of the line:
diff --git a/tests/ls/getxattr-speedup b/tests/ls/getxattr-speedup
index 812a03b..967f7c9 100755
--- a/tests/ls/getxattr-speedup
+++ b/tests/ls/getxattr-speedup
@@ -47,8 +47,8 @@ ssize_t lgetxattr(const char *path, const char *name, void
*value, size_t size)
EOF
# Then compile/link it:
-$CC -shared -fPIC -O2 k.c -o k.so ||
- framework_failure_ 'failed to compile with -shared -fPIC'
+$CC -shared -fPIC -O2 k.c -o k.so \
+ || framework_failure_ 'failed to compile with -shared -fPIC'
# Create a few files:
seq 20 | xargs touch || framework_failure_
- Re: "ls -l": Avoid unnecessary getxattr() overhead, (continued)
- Re: "ls -l": Avoid unnecessary getxattr() overhead, Jim Meyering, 2012/02/17
- Re: "ls -l": Avoid unnecessary getxattr() overhead, Eric Blake, 2012/02/17
- Re: "ls -l": Avoid unnecessary getxattr() overhead, Jim Meyering, 2012/02/17
- Re: "ls -l": Avoid unnecessary getxattr() overhead, Bernhard Voelker, 2012/02/17
- Re: "ls -l": Avoid unnecessary getxattr() overhead, Jim Meyering, 2012/02/17
- Re: "ls -l": Avoid unnecessary getxattr() overhead, Bernhard Voelker, 2012/02/17
- Re: "ls -l": Avoid unnecessary getxattr() overhead, Jim Meyering, 2012/02/18
- Re: "ls -l": Avoid unnecessary getxattr() overhead, Bernhard Voelker, 2012/02/20
- Re: "ls -l": Avoid unnecessary getxattr() overhead, Jim Meyering, 2012/02/26
- Re: "ls -l": Avoid unnecessary getxattr() overhead, Bernhard Voelker, 2012/02/27
- Re: "ls -l": Avoid unnecessary getxattr() overhead,
Jim Meyering <=
- Re: "ls -l": Avoid unnecessary getxattr() overhead, address@hidden, 2012/02/28
- Re: "ls -l": Avoid unnecessary getxattr() overhead, Pádraig Brady, 2012/02/17
- Re: "ls -l": Avoid unnecessary getxattr() overhead, Jim Meyering, 2012/02/17
- Re: "ls -l": Avoid unnecessary getxattr() overhead, Sven Breuner, 2012/02/11
- Re: "ls -l": Avoid unnecessary getxattr() overhead, Pádraig Brady, 2012/02/11
- Re: "ls -l": Avoid unnecessary getxattr() overhead, Sven Breuner, 2012/02/06