Commit Graph

11380 Commits

Author SHA1 Message Date
Chris Banes
ac5a784467 am c5d5c3db: Merge "bitmapfun: Add support to use inBitmap option" into jb-mr1-dev
* commit 'c5d5c3db62354a51b90934511a1f8dd1c87e987f':
  bitmapfun: Add support to use inBitmap option
2013-02-27 06:25:46 +00:00
Jean-Baptiste Queru
1512e8a6c6 am f8313c34: am 669c3823: am 4aed7b07: Reconcile with jb-mr1-release - do not merge
* commit 'f8313c348158408d39fca64a63824ecfde6673f9':
2013-02-26 14:09:17 -08:00
Jean-Baptiste Queru
f8313c3481 am 669c3823: am 4aed7b07: Reconcile with jb-mr1-release - do not merge
* commit '669c382344b3eb8120d64d3ba6d04cf1b45bc8f5':
2013-02-26 14:08:00 -08:00
Jean-Baptiste Queru
669c382344 am 4aed7b07: Reconcile with jb-mr1-release - do not merge
* commit '4aed7b07cf51abe64620936490f3083eabf42cf0':
2013-02-26 14:05:25 -08:00
Jean-Baptiste Queru
4aed7b07cf Reconcile with jb-mr1-release - do not merge 2013-02-26 14:03:11 -08:00
Andrew Hsieh
6edcc7fa73 am 27bd326d: Merge "[MIPS] Allow errno safe logging"
* commit '27bd326dc3a90736d342267011127cdc3961174f':
  [MIPS] Allow errno safe logging
2013-02-26 04:05:30 -08:00
Andrew Hsieh
dcbb4473cb am 62eb6d3d: Merge "[MIPS] Fixed mmap_portable()"
* commit '62eb6d3dde896017acfbb24db627494cde122466':
  [MIPS] Fixed mmap_portable()
2013-02-26 04:05:29 -08:00
Andrew Hsieh
27bd326dc3 Merge "[MIPS] Allow errno safe logging" 2013-02-26 11:55:15 +00:00
Andrew Hsieh
62eb6d3dde Merge "[MIPS] Fixed mmap_portable()" 2013-02-26 11:54:39 +00:00
Pete Delaney
7ddc46bf9f [MIPS] Allow errno safe logging
Change-Id: I35b4a9007572bec15ab7ba81aad3756fa96c5eb2
Signed-off-by: Chris Dearman <chris.dearman@imgtec.com>
Signed-off-by: Pete Delaney <piet.delaney@imgtec.com>
2013-02-25 22:52:02 -08:00
Pete Delaney
858086ef5f [MIPS] Fixed mmap_portable()
mmap_portable() was calling madvise() and disrupting errno.
The call to madvise() has been dropped in bionic's version of
mmap() and now we just call that.

Updated helper functions to use the newer <class>_pton() style.

Added logging calls; like the rest of Lib-Portable,
it frequently helps save time.


Change-Id: I39f77899f0808e3af5fd2f6610355d2e33c09d85
Signed-off-by: Pete Delaney <piet.delaney@imgtec.com>
Signed-off-by: Chris Dearman <chris.dearman@imgtec.com>
2013-02-25 21:45:47 -08:00
Adam Koch
323e1a4f89 am ddf2040c: am 985f6801: am 5f51b7fb: Bitmapfun Sample: Add some docs and clean up some method naming.
* commit 'ddf2040c2d12d5c1984363aff8ad24744f82b6e7':
  Bitmapfun Sample: Add some docs and clean up some method naming.
2013-02-21 14:24:54 -08:00
Adam Koch
ecc7357403 am d337bbbf: am d97830ca: am e826ee24: Merge "Bitmapfun Sample: Add additional sample images." into jb-mr1-dev
* commit 'd337bbbfa5ef29ad95c919a4b97bf4e4884ed533':
  Bitmapfun Sample: Add additional sample images.
2013-02-21 14:24:54 -08:00
Chris Banes
c11af55d12 am 2aac0a0a: am d2de640e: am c5d5c3db: Merge "bitmapfun: Add support to use inBitmap option" into jb-mr1-dev
* commit '2aac0a0a9d16fa494de17b64985517fc73836ca4':
  bitmapfun: Add support to use inBitmap option
2013-02-21 14:24:53 -08:00
Andrew Hsieh
46108c78fe am e36716a7: Merge "[MIPS] Portable versions of setjmp, sigsetjmp, ..."
* commit 'e36716a74ca2c8197f492da7e02003047c38c961':
  [MIPS] Portable versions of setjmp, sigsetjmp, ...
2013-02-21 14:21:06 -08:00
Andrew Hsieh
2b1f24d0f9 am cb445fac: Merge "[MIPS] Added support for STDIO sflags()."
* commit 'cb445fac27fadd599cd50361094cdf9bcc5141eb':
  [MIPS] Added support for STDIO sflags().
2013-02-21 14:21:05 -08:00
Andrew Hsieh
20c27c6ae3 am bbfa248a: Merge "[MIPS] Fixed a bug and improved fcntl_portable."
* commit 'bbfa248ab2f5cf28c4fc30eb6f276f6c6266e993':
  [MIPS] Fixed a bug and improved fcntl_portable.
2013-02-21 14:21:04 -08:00
Andrew Hsieh
3000f04a54 am e1fcd666: Merge "[MIPS] Extend Signal Mapping to include RT Signals."
* commit 'e1fcd666e12d0cdc92495116f134aba9fed937e1':
  [MIPS] Extend Signal Mapping to include RT Signals.
2013-02-21 14:21:03 -08:00
Andrew Hsieh
12b5c76a75 am 5e0e89f2: Merge "[MIPS] Added support for file descriptor related system calls."
* commit '5e0e89f2291d7187cc7241a086e2bdcd5b511c7c':
  [MIPS] Added support for file descriptor related system calls.
2013-02-21 14:21:02 -08:00
Andrew Hsieh
6c4d142d02 am 8a8fff39: Merge "[MIPS] Fixed LTP Tests 9 and 20 of getaddrinfo_01."
* commit '8a8fff3928bdfd2731bd84109d4280dc034a3b92':
  [MIPS] Fixed LTP Tests 9 and 20 of getaddrinfo_01.
2013-02-21 14:21:01 -08:00
Andrew Hsieh
77a4022cca am b1317706: Merge "[MIPS] Added missing _NR_* system call support and cleaned up."
* commit 'b1317706c4dc70d7de28e6e2c6fef4c6a51a379b':
  [MIPS] Added missing _NR_* system call support and cleaned up.
2013-02-21 14:21:00 -08:00
Andrew Hsieh
2e628c7e40 am fa011bfb: Merge "[MIPS] Add Real Time Signal Functions and minor bug fixes."
* commit 'fa011bfb5818cfdd9ae3f97ae86ba27cc6687d81':
  [MIPS] Add Real Time Signal Functions and minor bug fixes.
2013-02-21 14:21:00 -08:00
Andrew Hsieh
b467728d7a am 166bc925: Merge "[MIPS] Unify around a consistent *_ntop/*_pton style."
* commit '166bc925cc688606eda1d32de79f914cdfe087f6':
  [MIPS] Unify around a consistent *_ntop/*_pton style.
2013-02-21 14:20:59 -08:00
Andrew Hsieh
5bd6816128 am 13b81329: Merge "[MIPS] Tighten up code to fit within 100 characters lines."
* commit '13b81329385e1e8ec3ff55737f98bd1a9ededd74':
  [MIPS] Tighten up code to fit within 100 characters lines.
2013-02-21 14:20:58 -08:00
Andrew Hsieh
364e4d94da am 1ef2354f: Merge "[MIPS] Expand TABS and remove redundant return parenthesis."
* commit '1ef2354fa780df42c8d42af4300f63d81ae7b52d':
  [MIPS] Expand TABS and remove redundant return parenthesis.
2013-02-21 14:20:57 -08:00
Adam Koch
ddf2040c2d am 985f6801: am 5f51b7fb: Bitmapfun Sample: Add some docs and clean up some method naming.
* commit '985f6801fcc185ba0c6850764f2baf32ce83b541':
  Bitmapfun Sample: Add some docs and clean up some method naming.
2013-02-21 14:19:56 -08:00
Adam Koch
d337bbbfa5 am d97830ca: am e826ee24: Merge "Bitmapfun Sample: Add additional sample images." into jb-mr1-dev
* commit 'd97830ca46a71542f5d566a84fd34781b7dd3816':
  Bitmapfun Sample: Add additional sample images.
2013-02-21 14:19:55 -08:00
Chris Banes
2aac0a0a9d am d2de640e: am c5d5c3db: Merge "bitmapfun: Add support to use inBitmap option" into jb-mr1-dev
* commit 'd2de640ee3c1a40affd773417cd0fa7acfd6363b':
  bitmapfun: Add support to use inBitmap option
2013-02-21 14:19:54 -08:00
Adam Koch
985f6801fc am 5f51b7fb: Bitmapfun Sample: Add some docs and clean up some method naming.
* commit '5f51b7fb0caa695e2905545441979c5f0aa6f973':
  Bitmapfun Sample: Add some docs and clean up some method naming.
2013-02-21 14:14:37 -08:00
Adam Koch
d97830ca46 am e826ee24: Merge "Bitmapfun Sample: Add additional sample images." into jb-mr1-dev
* commit 'e826ee24ecacce4ff8d7ff511c1d9101f665a1c8':
  Bitmapfun Sample: Add additional sample images.
2013-02-21 14:14:36 -08:00
Chris Banes
d2de640ee3 am c5d5c3db: Merge "bitmapfun: Add support to use inBitmap option" into jb-mr1-dev
* commit 'c5d5c3db62354a51b90934511a1f8dd1c87e987f':
  bitmapfun: Add support to use inBitmap option
2013-02-21 14:14:35 -08:00
Adam Koch
5f51b7fb0c Bitmapfun Sample: Add some docs and clean up some method naming.
Change-Id: I12dc039b1084a8f1a27b47a5a516773ab4e1c2cb
2013-02-21 11:00:19 -05:00
Adam Koch
e826ee24ec Merge "Bitmapfun Sample: Add additional sample images." into jb-mr1-dev 2013-02-21 14:03:07 +00:00
Chris Banes
c5d5c3db62 Merge "bitmapfun: Add support to use inBitmap option" into jb-mr1-dev 2013-02-21 11:28:45 +00:00
Andrew Hsieh
e36716a74c Merge "[MIPS] Portable versions of setjmp, sigsetjmp, ..." 2013-02-21 04:49:43 +00:00
Andrew Hsieh
cb445fac27 Merge "[MIPS] Added support for STDIO sflags()." 2013-02-21 04:49:26 +00:00
Andrew Hsieh
bbfa248ab2 Merge "[MIPS] Fixed a bug and improved fcntl_portable." 2013-02-21 04:49:05 +00:00
Andrew Hsieh
e1fcd666e1 Merge "[MIPS] Extend Signal Mapping to include RT Signals." 2013-02-21 04:48:49 +00:00
Andrew Hsieh
5e0e89f229 Merge "[MIPS] Added support for file descriptor related system calls." 2013-02-21 04:48:32 +00:00
Andrew Hsieh
8a8fff3928 Merge "[MIPS] Fixed LTP Tests 9 and 20 of getaddrinfo_01." 2013-02-21 04:48:06 +00:00
Andrew Hsieh
b1317706c4 Merge "[MIPS] Added missing _NR_* system call support and cleaned up." 2013-02-21 04:47:43 +00:00
Andrew Hsieh
fa011bfb58 Merge "[MIPS] Add Real Time Signal Functions and minor bug fixes." 2013-02-21 04:47:23 +00:00
Andrew Hsieh
166bc925cc Merge "[MIPS] Unify around a consistent *_ntop/*_pton style." 2013-02-21 04:47:04 +00:00
Andrew Hsieh
13b8132938 Merge "[MIPS] Tighten up code to fit within 100 characters lines." 2013-02-21 04:46:48 +00:00
Andrew Hsieh
1ef2354fa7 Merge "[MIPS] Expand TABS and remove redundant return parenthesis." 2013-02-21 04:39:24 +00:00
Pete Delaney
183963db80 [MIPS] Portable versions of setjmp, sigsetjmp, ...
The portable (ARM) jmp_buf and sigjmp_buf structures are smaller than the native
(MIPS) structures so it is not safe to simply call the standard bionic routines.

Luckily there is a lot of redundant space in the standard MIPS structures
and it is possible to save all of the needed registers in the area provided by the
ARM application.

Change-Id: I694a90516cdf96d581863e833776092830afe3cc
Signed-off-by: Chris Dearman <chris.dearman@imgtec.com>
Signed-off-by: Pete Delaney <piet.delaney@imgtec.com>
Signed-off-by: Paul Lind <paul.lind@imgtec.com>
2013-02-20 20:07:33 -08:00
Pete Delaney
860342e989 [MIPS] Added support for STDIO sflags().
sflags() returns open() flags via a pointer passed to sflags().

Change-Id: I854dc4302bf09318e97eb3129a8debf98dbe8735
Signed-off-by: Chris Dearman <chris.dearman@imgtec.com>
Signed-off-by: Pete Delaney <piet.delaney@imgtec.com>
Signed-off-by: Paul Lind <paul.lind@imgtec.com>
2013-02-20 20:06:46 -08:00
Pete Delaney
998548881e [MIPS] Fixed a bug and improved fcntl_portable.
Improved Logging, tweaked func names, fixed double mappings
of mips_command.

While debugging the LTP fcntl07* set of failures I modified
a few ALOGV() calls to make logging more helpful in
fcntl_cmd_pton().

Change-Id: Idc9a7c8dd27883dff1e555769d6a8e331f4fdeb9
Signed-off-by: Pete Delaney <piet.delaney@imgtec.com>
Signed-off-by: Chris Dearman <chris.dearman@imgtec.com>
Signed-off-by: Paul Lind <paul.lind@imgtec.com>
2013-02-20 20:06:13 -08:00
Pete Delaney
b7b5e9d3fb [MIPS] Extend Signal Mapping to include RT Signals.
Both MIPS and ARM use signals 32 to 64 for real-time signals.
ARM signals 32 to 64 can't be masked due to the signal
mask being limited to 32 bits. MIPS signals 32 to 64 can be
masked, and Lib-Portable correctly supports this feature.

Fixes LTP tests rt_sigaction01 and ptrace05.

Fixed a few signal problems; Ex last Real Time Signal

1.  The signal handler for signal number 64, the last real
    time signal, wasn't being intercepted. Now catching
    signal number 64.

2.  sigaction() to only change *oldact when return
    value is zero.

3.  Fixed rt_sigqueue_portable() to set errno when
    returning a -1.

4.  Fixed a few cases where signal 0 was being added
    to the table of signal handlers for signal remapping.
    Harmless but a bit silly.

Change-Id: I1a71113d7ce4b60f3a587dae4e243dc88dd6d6bc
Signed-off-by: Pete Delaney <piet.delaney@imgtec.com>
Signed-off-by: Chris Dearman <chris.dearman@imgtec.com>
Signed-off-by: Paul Lind <paul.lind@imgtec.com>
2013-02-20 20:05:46 -08:00
Pete Delaney
c684613e19 [MIPS] Added support for file descriptor related system calls.
Specifically these functions are now supported:
    signalfd4(), eventfd(), timerfd_create(),
    pipe(), and inotify_init1()

Modified syscall_portable() to call signalfd4_portable(),
eventfd_portable(), eventfd2_portable(), and timerfd_create().
These system calls enable the read system calls to access
kernel data structures.

The signalfd4() enables read to return a signalfd_siginfo structure
which have the signal number and errno mapped until an execve().
This is similar to the maintaining a table of signal handlers to
map the signal numbers done earlier. This mapping is extended to
the process after an execve() by passing the final set of mapped
file descriptors via a pair of environment variables.

Disabling signal and file descriptor read mapping in parent
if the child would break the mapping algorithms.

This code passes at least all of the non-POSIX LTP tests,
including an updated LTP signalfd4 test that posts SIGNALS
and uses this read() mechanism to get signal info.

inotify_init1 is similar to signalfd(), timerfd() and other
filefd functions which map read() calls. Unlike signalfd(), and
similar to timerfd(), the reads don't appear to need to be mapped.

The members of the inotify_event structure appear to be generic.
The mask bits like IN_MOVE_FROM and IN_MOVE_TO are defined in
generic files. The LTP test in testcases/kernel/syscalls/inotify
test for the inotify_event structure being inotify_event structure
being read and does seem to check it contents being correct.

Change-Id: I3f2dcd4e33437ac953cd9f67f56dccc6ec6e5e6f
Signed-off-by: Pete Delaney <piet.delaney@imgtec.com>
Signed-off-by: Chris Dearman <chris.dearman@imgtec.com>
Signed-off-by: Paul Lind <paul.lind@imgtec.com>
2013-02-20 20:05:19 -08:00