Commit Graph

6957 Commits

Author SHA1 Message Date
Lorenzo Colitti 526b838c9d Switch back to subsystem "net" for netlink events.
The change to enable address tracking via netlink incorrectly
changed the subsystem of rtnetlink events from "net" to
"interface". This broke interface add/delete notifications,
which come from the kernel with subsystem "net".

Switch back to "net" and deal with address tracking via new
action codes instead of a new subsystem.

[Cherry-pick of f34861346d]

Bug: 10433320
Change-Id: Ibf30efb426949dfd02304cc1d9adb1c005a539a6
2013-11-20 10:29:42 +09:00
Lorenzo Colitti 9683456934 Get rid of an infinite loop in NetlinkEvent.cpp.
[Cherry-pick of 3984276ce4]

Bug: 10358527
Bug: 10263310
Bug: 10232006
Change-Id: I750e4bdf2000040adf214d6a772591d7bd25b350
2013-11-20 10:29:19 +09:00
Lorenzo Colitti 381f70f52a Parse IP address changes in NetlinkEvent.
This adds support for parsing RTM_NEWADDR and RTM_DELADDR
netlink messages received on netd's netlink socket and
formatting them them so NetlinkHandler can process them.

Address changes are notified in subsystem "address". Interface
changes, which used to be notified in subsystem "net", are now
notified in subsystem "interface" to avoid confusion.

[Cherry-pick of a4b4e9ad8e]

Bug: 10232006
Change-Id: I93a50e8de17014e118a42f5cc0eb90a0cbfa73cc
2013-11-20 10:29:05 +09:00
Elliott Hughes c27843f2a9 am 252d9030: am bf8e9342: am 3fa14a53: Merge "Remove x86 debuggerd dependencies on non-uapi headers and corkscrew."
* commit '252d9030cd4b2e3e6cf13fa33f328eccedb5e26c':
  Remove x86 debuggerd dependencies on non-uapi headers and corkscrew.
2013-11-14 21:57:22 -08:00
Elliott Hughes 252d9030cd am bf8e9342: am 3fa14a53: Merge "Remove x86 debuggerd dependencies on non-uapi headers and corkscrew."
* commit 'bf8e9342daa8b148e6d94d98122c9bc2a429b04f':
  Remove x86 debuggerd dependencies on non-uapi headers and corkscrew.
2013-11-14 21:53:47 -08:00
Elliott Hughes bf8e9342da am 3fa14a53: Merge "Remove x86 debuggerd dependencies on non-uapi headers and corkscrew."
* commit '3fa14a53e70cd55df031646fe3735a6fde37deb8':
  Remove x86 debuggerd dependencies on non-uapi headers and corkscrew.
2013-11-14 21:50:56 -08:00
Elliott Hughes 3fa14a53e7 Merge "Remove x86 debuggerd dependencies on non-uapi headers and corkscrew." 2013-11-15 05:48:27 +00:00
Jianzheng Zhou 52ea510f8f split setptop ethernet tcp buffer from wifi
Change-Id: I0582ec75fddb904ca14b9cbddf593ddbd4195c41
Signed-off-by: Jianzheng Zhou <jianzheng.zhou@freescale.com>
2013-11-15 13:44:00 +08:00
Elliott Hughes 18ddd42092 Remove x86 debuggerd dependencies on non-uapi headers and corkscrew.
Also remove a hack that claims to be "just like ARM", but which was
different from the ARM and MIPS behavior.

Change-Id: I9b16da9a56430998ded27d304ce52c7cc8bfedfc
2013-11-14 17:06:46 -08:00
Elliott Hughes b6ec7446b8 am fc6a1da9: am d97a34af: am 60e7d495: Merge "Fix libnetutils to build with clean uapi headers."
* commit 'fc6a1da9a29f9322f3ca572f4067c854534dfe65':
  Fix libnetutils to build with clean uapi headers.
2013-11-12 15:22:55 -08:00
Elliott Hughes fc6a1da9a2 am d97a34af: am 60e7d495: Merge "Fix libnetutils to build with clean uapi headers."
* commit 'd97a34af49f6beafc21d5f459ea62b499544f9f3':
  Fix libnetutils to build with clean uapi headers.
2013-11-12 14:58:50 -08:00
Elliott Hughes d97a34af49 am 60e7d495: Merge "Fix libnetutils to build with clean uapi headers."
* commit '60e7d49557a4a330285f9bcd76f0dfae9c1855ae':
  Fix libnetutils to build with clean uapi headers.
2013-11-12 14:55:33 -08:00
Elliott Hughes 60e7d49557 Merge "Fix libnetutils to build with clean uapi headers." 2013-11-12 21:56:01 +00:00
Elliott Hughes 2d640c2640 Fix libnetutils to build with clean uapi headers.
(And old ones too.)

Bug: 11559337
Change-Id: Ie61218055bbe07655a9d53c539aa47b85098e42c
2013-11-12 13:05:01 -08:00
Christopher Ferris 242b1a8c7a Move BACKTRACE_NO_TID to BACKTRACE_CURRENT_THREAD.
Use a bit better name for this. The other name was a bit confusing.

Change-Id: I1261f2ee3854a9c8b82133ad0bfbbbe48b43c9ac
2013-11-12 12:14:51 -08:00
Elliott Hughes 230e98bfea am 36ff3bd2: am e8c6d15b: am 59644a6c: Merge "Fix nandread to build with old or uapi headers."
* commit '36ff3bd273d9f60822104eb53f3aa1886160b360':
  Fix nandread to build with old or uapi headers.
2013-11-11 20:52:05 -08:00
Elliott Hughes 36ff3bd273 am e8c6d15b: am 59644a6c: Merge "Fix nandread to build with old or uapi headers."
* commit 'e8c6d15b1892ffd09dae8ac7922854140a11130d':
  Fix nandread to build with old or uapi headers.
2013-11-11 16:33:30 -08:00
Elliott Hughes e8c6d15b18 am 59644a6c: Merge "Fix nandread to build with old or uapi headers."
* commit '59644a6c7182db6caf53dc61f448f2c68ff569be':
  Fix nandread to build with old or uapi headers.
2013-11-11 16:31:57 -08:00
Elliott Hughes 59644a6c71 Merge "Fix nandread to build with old or uapi headers." 2013-11-12 00:29:10 +00:00
Elliott Hughes b05a2e5130 Fix nandread to build with old or uapi headers.
Bug: 11559337
Change-Id: I9795a16649dafdfe3df150170265157170cd5a79
2013-11-11 16:17:49 -08:00
Christopher Ferris 7f3c8f9c5b Remove hack for mingw compiler.
The __BEGIN_DECLS/__END_DECLS macro is now defined for mingw.

Change-Id: Icd09b92a83e982ac0ed3eb34df4c1d79de21941e
2013-11-08 16:26:59 -08:00
Narayan Kamath ab9189893d Fix mingw windows host build.
__BEGIN_DECLS isn't defined on this platform and
it appears to be missing sys/cdefs.h

Change-Id: I13cc557700198590cf717e3007dee738043ac3bf
2013-11-08 15:59:46 +00:00
Christopher Ferris e70f95f349 am 90e67bcd: am d36bfc30: am e6279294: Merge "Revert "Revert enabling libunwind.""
* commit '90e67bcdc383d552dc5325039c86b5bef5429b05':
  Revert "Revert enabling libunwind."
2013-11-07 21:30:34 -08:00
Christopher Ferris 90e67bcdc3 am d36bfc30: am e6279294: Merge "Revert "Revert enabling libunwind.""
* commit 'd36bfc30ae5fa86b4c3fd8248e5ee16f479250b6':
  Revert "Revert enabling libunwind."
2013-11-07 19:16:25 -08:00
Christopher Ferris d36bfc30ae am e6279294: Merge "Revert "Revert enabling libunwind.""
* commit 'e627929490dfb92ab51ec6feb259d793a4a9f394':
  Revert "Revert enabling libunwind."
2013-11-07 19:14:31 -08:00
Christopher Ferris e627929490 Merge "Revert "Revert enabling libunwind."" 2013-11-08 03:12:04 +00:00
Christopher Ferris e6feaeeda1 Revert "Revert enabling libunwind."
This reverts commit db2309e3d1.

Change-Id: I1626442f029473066ce20921667a406f1a1ea865
2013-11-08 02:59:52 +00:00
Elliott Hughes d283d93489 am 8ddd08b1: am 4ae94541: am 62ea993a: Merge "Revert enabling libunwind."
* commit '8ddd08b1f24d361ace9cd78198664db4bf7e1325':
  Revert enabling libunwind.
2013-11-07 09:44:32 -08:00
Elliott Hughes 8ddd08b1f2 am 4ae94541: am 62ea993a: Merge "Revert enabling libunwind."
* commit '4ae94541b82dde787b0e2c46f1a4f2524572c1c4':
  Revert enabling libunwind.
2013-11-07 09:41:57 -08:00
Elliott Hughes 1707bf0320 am 2ee98591: am fde641ee: am 30296f28: Merge "Let external/mksh install directly into /system/bin/sh."
* commit '2ee985913f4c7e082fc68e6896698d9fa117c474':
  Let external/mksh install directly into /system/bin/sh.
2013-11-07 09:01:24 -08:00
Christopher Ferris 3c8b229f60 am c3920dee: am 11d04d04: am 351b0123: Merge "Enable libunwind on arm platforms."
* commit 'c3920dee104856025f9416670efd7f05d1acd3a0':
  Enable libunwind on arm platforms.
2013-11-07 09:01:24 -08:00
Elliott Hughes 4ae94541b8 am 62ea993a: Merge "Revert enabling libunwind."
* commit '62ea993a6997701dba7735ca4a4af6fc6cabac2c':
  Revert enabling libunwind.
2013-11-07 09:01:20 -08:00
Elliott Hughes 2ee985913f am fde641ee: am 30296f28: Merge "Let external/mksh install directly into /system/bin/sh."
* commit 'fde641ee24b7a0a5d1fb6e2532153f1bb8504aea':
  Let external/mksh install directly into /system/bin/sh.
2013-11-07 08:59:22 -08:00
Christopher Ferris c3920dee10 am 11d04d04: am 351b0123: Merge "Enable libunwind on arm platforms."
* commit '11d04d04418503e2381cf4479a105efaf7c13992':
  Enable libunwind on arm platforms.
2013-11-07 08:59:22 -08:00
Elliott Hughes 62ea993a69 Merge "Revert enabling libunwind." 2013-11-07 16:44:53 +00:00
Elliott Hughes fde641ee24 am 30296f28: Merge "Let external/mksh install directly into /system/bin/sh."
* commit '30296f2801ee692a01c3a4698f50ca01fa238fd1':
  Let external/mksh install directly into /system/bin/sh.
2013-11-07 08:35:18 -08:00
Christopher Ferris 11d04d0441 am 351b0123: Merge "Enable libunwind on arm platforms."
* commit '351b0123084570f8274ad3de44d515754c4b3add':
  Enable libunwind on arm platforms.
2013-11-07 08:35:16 -08:00
Christopher Ferris db2309e3d1 Revert enabling libunwind.
It appears that some branches might not have libunwind set up properly.

Change-Id: Ia72889e115bc2791c7a9e67563c5f4a62197cafd
2013-11-07 08:12:10 -08:00
Elliott Hughes 30296f2801 Merge "Let external/mksh install directly into /system/bin/sh." 2013-11-07 16:08:12 +00:00
Christopher Ferris 351b012308 Merge "Enable libunwind on arm platforms." 2013-11-07 15:16:11 +00:00
Rom Lemarchand efaf929691 Merge "ion: update struct and type definitions to match kernel header" 2013-11-07 13:30:00 +00:00
Christopher Ferris d44712a838 am aca6a4c8: am 5e860ce2: am d6f9be1b: Merge "Fix include files in backtrace.h."
* commit 'aca6a4c8afe609439d8f5204cb273b36ac71cc85':
  Fix include files in backtrace.h.
2013-11-06 17:50:01 -08:00
Christopher Ferris aca6a4c8af am 5e860ce2: am d6f9be1b: Merge "Fix include files in backtrace.h."
* commit '5e860ce246b9235debc6a04325c7c1983c2b277e':
  Fix include files in backtrace.h.
2013-11-06 17:47:16 -08:00
Christopher Ferris 5e860ce246 am d6f9be1b: Merge "Fix include files in backtrace.h."
* commit 'd6f9be1b9a2fc5880b0bcbb0fa47267a14fdc734':
  Fix include files in backtrace.h.
2013-11-06 17:45:08 -08:00
Christopher Ferris d6f9be1b9a Merge "Fix include files in backtrace.h." 2013-11-07 01:42:48 +00:00
Christopher Ferris e57912da92 Fix include files in backtrace.h.
(cherry picked from commit 0893258222)

Change-Id: I37a78a9472b94ae84a84d871bfa9a070ff882699
2013-11-06 17:34:38 -08:00
Christopher Ferris 0893258222 Fix include files in backtrace.h.
Change-Id: Iaaa98b12bbf231ea43ee12f5a3f5ba0a3e4a15d6
2013-11-06 17:19:53 -08:00
Christopher Ferris 22f91cb3a1 Enable libunwind on arm platforms.
Bug: 8410085
Change-Id: I8a645ec0e04b38fc186bbc0f0cc597e31b05cc55
2013-11-06 15:40:23 -08:00
Christopher Ferris 9b0e074c6d Move CallStack to libbacktrace.
Fix a small bug in the Printer for strings that didn't properly
prepend the prefix.

Change-Id: I33c63841ef6e07728ab3195886539d82b38ee19a
2013-11-06 12:37:14 -08:00
Rom Lemarchand a97f22aaf1 ion: update struct and type definitions to match kernel header
- Replacing struct ion_handle * with ion_user_handle_t
- Replacing heap_mask field name with heap_id_mask

Change-Id: Iaba1ccc62b9398a7b37c5a734bc21a9ecbbc8277
2013-11-06 08:29:02 -08:00