Commit Graph

10756 Commits

Author SHA1 Message Date
Luca Barbato
04bb81119c travis: Add docbook dep 2016-11-26 00:25:36 +01:00
Anthony G. Basile
b226ddfc1b rules: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-11-23 20:00:48 -05:00
Anthony G. Basile
d08aa94fec hwdb: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-11-23 11:44:20 -05:00
Anthony G. Basile
d3aab3bde9 src/libudev/libudev.h, src/udev/udev.h: include <sys/sysmacros.h>
<sys/sysmacros.h> is no longer implicitly pulled in via <sys/types.h>
in glibc 2.24 and above.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-11-21 07:22:53 -05:00
Thomas Petazzoni
4f3b8298fb src/shared/missing.h: fix getrandom system call number on ARM64
The getrandom() system call number is indeed 384 on ARM, but it is not
the same on ARM64. ARM64 uses the asm-generic headers, including for
system call numbers, so the getrandom() system call number on ARM64 is
278. This fixes runtime issues of eudev on ARM64, such as:

Populating /dev using udev: [    6.186817] udevd[1204]: starting version 3.1.5
[    6.191662] udevd[1204]: syscall 384
[    6.195217] Code: aa0503e4 aa0603e5 aa0703e6 d4000001 (b13ffc1f)
[    6.201291] CPU: 4 PID: 1204 Comm: udevd Not tainted 4.7.0+ #1
[    6.207079] Hardware name: ARM Juno development board (r2) (DT)
[    6.212954] task: ffff800976421900 task.stack: ffff800975610000
[    6.218825] PC is at 0xffff97f12234
[    6.222281] LR is at 0x41b15c
[    6.225214] pc : [<0000ffff97f12234>] lr : [<000000000041b15c>] pstate: 80000000
[    6.232544] sp : 0000ffffcf9b3870
[    6.235828] x29: 0000ffffcf9b3870 x28: 0000000000428218
[    6.241110] x27: 0000000000000000 x26: 000000000042a7e3
[    6.246395] x25: 0000ffffcf9b39c8 x24: 0000000000428000
[    6.251670] x23: 0000000000449000 x22: 0000000000449678
[    6.256946] x21: 0000000000000010 x20: 0000000000449000
[    6.262233] x19: 0000000000449678 x18: 0000000000000000
[    6.267507] x17: 0000ffff97f12210 x16: 0000000000449440
[    6.272779] x15: 0000ffff97e4f730 x14: 0000ffff98050cb8
[    6.278060] x13: 000000000000033c x12: 00000000000004b4
[    6.283331] x11: 0000000000000000 x10: 0101010101010101
[    6.288604] x9 : 0000000000001010 x8 : 0000000000000180
[    6.293882] x7 : ffffffffffffffff x6 : ffffffffffffffff
[    6.299154] x5 : 00000000271e36c0 x4 : 0007061c00190d07
[    6.304426] x3 : 00000000271e36d0 x2 : 0000000000000001
[    6.309705] x1 : 0000000000000010 x0 : 0000000000449678
[    6.314976]
[    6.398734] sky2 0000:08:00.0 enp8s0: renamed from eth0

Reported-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-08-06 14:26:11 -04:00
Anthony G. Basile
ec9a5d6547 configure.ac: bump 3.2 = upstream 220
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-06-01 14:33:43 -04:00
Murray Calavera
5c87a79fb0 udevd: remove unnecessary cgroups handling
Signed-off-by: Murray Calavera <murray.calavera@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-05-31 09:46:45 -04:00
Anthony G. Basile
5ad7d7f9e7 rules: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-05-25 14:09:04 -04:00
Anthony G. Basile
114908765f hwdb: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-05-25 13:53:22 -04:00
Anthony G. Basile
31ce9f89a5 rules: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-05-10 07:59:30 -04:00
Anthony G. Basile
20a05c562a hwdb: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-05-10 07:57:32 -04:00
Murray Calavera
11cc291a3b shared: remove unused file exit-status
Signed-off-by: Murray Calavera <murray.calavera@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-04-24 11:51:51 -04:00
Murray Calavera
d7072e1631 shared: remove unused function execute_command
Signed-off-by: Murray Calavera <murray.calavera@gmail.com>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-04-24 11:51:28 -04:00
Anthony G. Basile
7f4f5b7dba src/shared/util.c: fix typo
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-03-21 11:54:57 -04:00
Anthony G. Basile
0fe32c8006 src/shared/util.c: add fallback for ppoll(), issue #129.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-03-21 10:58:31 -04:00
Anthony G. Basile
1e521c3cf1 configure.ac: fix some white space
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-03-21 09:51:40 -04:00
Anthony G. Basile
25a718a138 hwdb: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2016-03-21 09:12:21 -04:00
Anthony G. Basile
4b6c99d7e5 configure.ac: use automake 1.11 2016-02-28 17:31:02 -05:00
Anthony G. Basile
754c98e8df configure.ac: we don't need xsltproc, but making doc's does 2016-02-28 14:45:12 -05:00
Anthony G. Basile
9caac1075e README.md: update for travis-ci 2016-02-28 14:35:29 -05:00
Anthony G. Basile
416e5ad886 travis.yml: we don't need gtk-doc-tools anymore 2016-02-27 03:04:50 -05:00
Anthony G. Basile
f33b94c6ab gitignore: ignore write_net_rules 2016-02-27 03:01:47 -05:00
Anthony G. Basile
7f3b6d02cc hwdb: update 2016-02-27 02:57:08 -05:00
Richard Narron
71ff5b6886 src/udev/udevd.c: add eudev startup message for kmsg
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-11-22 02:27:58 -05:00
Anthony G. Basile
57a0fdeeec Merge pull request #125 from rworkman/trivial
Remove obsolete udev_root references
2015-11-16 17:12:42 -05:00
Robby Workman
26b8f53163 Remove obsolete udev_root references
This was removed in 6ada823a9a
2015-11-15 15:11:13 -06:00
Anthony G. Basile
4ea0be0484 Update .travis.yml 2015-10-13 02:06:53 -04:00
Anthony G. Basile
ff28cff516 configure.ac: bump 3.1.5 = upstream 220 2015-10-13 02:00:05 -04:00
Anthony G. Basile
3677c2e3ae hwdb and rules: import changes from upstream. 2015-10-12 06:43:45 -04:00
Ian Stakenvicius
305f0eef4d Forward-ported network rule-generator code from eudev-1.10 2015-09-25 12:38:07 -04:00
Anthony G. Basile
389b9ce228 Revert "udevd: warn if we receive SIGCHLD from untracked worker"
This reverts commit 75e930ed64.

This fixes issue #121.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-09-11 14:56:07 -04:00
blueness
696a663370 Merge pull request #123 from gentoo/nonrot
Solid state drives should use noop IO elevator
2015-09-11 14:45:41 -04:00
blueness
0cc8789c71 Merge pull request #122 from RomainNaour/musl-fixes
Musl fixes
2015-09-11 14:44:10 -04:00
blueness
6de52b4e64 Merge pull request #124 from rcsheets/debug-output-spacing-fix
Add missing space between filename and error message
2015-09-11 14:42:27 -04:00
Robert C. Sheets
55015c019d Add missing space between filename and error message 2015-09-08 02:12:10 -07:00
Richard Yao
b38f3aaba1 Solid state drives should use noop IO elevator
It is often suggested that users set noop on SSDs and it turns out that
udev can do this for users.

Setting noop disables the IO priorization and IO reordering logic inside
the kernel, but leaves front/back merging in place. This reduction in
overhead should increase the number of requests sent to solid state
media to the maximum possible,which is said to improve performance on
SSDs. Unfortunately, few benchmarks try real world work loads with a
clear cache to measure the actual difference.

The benchmarks conducted by Daniel Nashed cleared the cache. They favor
noop, although the workload seems somewhat unrealistic:

http://blog.nashcom.de/nashcomblog.nsf/dx/linux-io-performance-tweek.htm

The BFQ developers' benchmarks on SSDs appear to account for both. They
show noop as being far better than CFQ and second only to BFQ, which is
out of tree:

https://lwn.net/Articles/600366/

In addition, I have experienced lockup-like effects on ext4 on an OCZ
Vertex 2 SSD with the discard mount option enabled when recursively
unlinking a subdirectory path that contains millions of files. The
system was useless for hours. Setting noop allowed the unlink to finish
in minutes. This is because the reordering from CFQ interleaved the
TRIM command with write IOs, effectively putting barriers between them
because because TRIM is a non-queued command prior to SATA 3.1.

A good default should perform well in general and have the property that
poor performance in the worst case scenarios is minimized. The
previous examples contradict CFQ's ability to achieve that on solid
state media.

I believe that we should implement a udev rule to set noop on solid
state media by default. It should be said that Milan Broz wrote it
first, although there is only one way to write this rule in a manner
consistent with the codebase:

http://permalink.gmane.org/gmane.linux.kernel.device-mapper.dm-crypt/6045

It should be said that this will be a regression for those that rely on
the "Block IO Controller" cgroup because it is only supported by CFQ
when CONFIG_CFQ_GROUP_IOSCHED=y. My experience as a ZoL developer is
that very few users rely on this behavior and consequently, I believe
that the benefit from enabling this far outweighs the harm to the few
that need it. Those that do need it should be able to disable this rule
themselves. Container management software that expects the Block IO
Controller to be supported should be modified to enable CFQ explicitly
if it does not already do that.

This has been tested against both a SATA mechanical drive and a SATA
solid state drive. It changes the elevator to noop on the solid state
drive, but does not touch it on the mechanical drive.

Signed-off-by: Richard Yao <ryao@gentoo.org>
2015-08-29 15:21:44 -04:00
Romain Naour
0e2be0c217 build-sys: check for strndupa
strndupa is a GNU extension, therefore it's not available
for all libc libraries (musl).

This patch is based on the one proposed by Emil Renner Berthing for
systemd [1].

[1] http://lists.freedesktop.org/archives/systemd-devel/2014-September/023190.html

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
2015-07-31 14:57:27 +02:00
Romain Naour
24ccb6ebc5 build-sys: check for mallinfo
mallinfo is not specified by POSIX or the C standards, therefore
it's not available for all libc libraries (musl).

Add the ability to disable mallinfo statistics.

Fixes:
selinux-util.c: In function ‘mac_selinux_init’:
selinux-util.c:70:25: error: storage size of ‘before_mallinfo’ isn’t known
         struct mallinfo before_mallinfo, after_mallinfo;

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
2015-07-31 14:49:20 +02:00
Tom Gundersen
019c458afe udevd: don't unref worker objects on SIGSTOP/SIGCONT
We should not be receiving these anyway, but let's be correct.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 10:00:52 -04:00
Tom Gundersen
75e930ed64 udevd: warn if we receive SIGCHLD from untracked worker
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 09:52:44 -04:00
Anthony G. Basile
2cf24b3978 libudev: fix commit 3df6350
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 09:49:29 -04:00
Tom Gundersen
f4e9270310 libudev: monitor - set nl_pid when reusing fd in udev_monitor_new_from_netlink_fd
This allows a fd to be created and configured as part of one monitor, to be passed in
to create a second monitor without having to redo any of the configuration.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 09:26:56 -04:00
Tom Gundersen
3df635050b sd-device: get_subsystem - don't complain if a device does not have a subsystem
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 09:25:52 -04:00
Anthony G. Basile
8ba53c912b skip: udevd: manager - move a few global variables into the Manager object
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 09:22:48 -04:00
Anthony G. Basile
252150e181 src/gudev: remove Gobject libudev support.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:42:01 -04:00
Anthony G. Basile
1b6370e74b docs: remove gtk-docs.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:33:47 -04:00
Anthony G. Basile
9cb37638de rules: import 20-net-ifname.hwdb from upstream.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:20:16 -04:00
Marcel Holtmann
3792b2d508 hwdb: Update database of Bluetooth company identifiers
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:15:31 -04:00
Kay Sievers
871ed1d9f7 hwdb: update
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:14:29 -04:00
Peter Hutterer
af535a4466 hwdb: move a couple of entries to expected sort order
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-07-20 08:12:23 -04:00