Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- naresh@linaro:~$ ssh linaro@192.168.1.5
- hikey:~$ su
- hikey:/home/linaro# cd /usr/bin/kselftests/futex/functional/
- hikey:/usr/bin/kselftests/futex/functional# ./futex_requeue_pi
- futex_requeue_pi: Test requeue functionality
- Arguments: broadcast=0 locked=0 owner=0 timeout=0ns
- Result: PASS
- hikey:/usr/bin/kselftests/futex/functional# ulimit
- unlimited
- hikey:/usr/bin/kselftests/futex/functional# ulimit -a
- core file size (blocks, -c) unlimited
- data seg size (kbytes, -d) unlimited
- scheduling priority (-e) 0
- file size (blocks, -f) unlimited
- pending signals (-i) 7226
- max locked memory (kbytes, -l) 64
- max memory size (kbytes, -m) unlimited
- open files (-n) 1024
- pipe size (512 bytes, -p) 8
- POSIX message queues (bytes, -q) 819200
- real-time priority (-r) 0
- stack size (kbytes, -s) 8192
- cpu time (seconds, -t) unlimited
- max user processes (-u) 7226
- virtual memory (kbytes, -v) unlimited
- file locks (-x) unlimited
- hikey:/usr/bin/kselftests/futex/functional# cat /etc/se
- securetty security/ services
- hikey:/usr/bin/kselftests/futex/functional# cat /etc/secur
- securetty security/
- hikey:/usr/bin/kselftests/futex/functional# cat /etc/security/
- access.conf group.conf limits.conf limits.d/ namespace.conf namespace.d/ namespace.init pam_env.conf time.conf
- hikey:/usr/bin/kselftests/futex/functional# cat /etc/security/access.conf
- # Login access control table.
- #
- # Comment line must start with "#", no space at front.
- # Order of lines is important.
- #
- # When someone logs in, the table is scanned for the first entry that
- # matches the (user, host) combination, or, in case of non-networked
- # logins, the first entry that matches the (user, tty) combination. The
- # permissions field of that table entry determines whether the login will
- # be accepted or refused.
- #
- # Format of the login access control table is three fields separated by a
- # ":" character:
- #
- # [Note, if you supply a 'fieldsep=|' argument to the pam_access.so
- # module, you can change the field separation character to be
- # '|'. This is useful for configurations where you are trying to use
- # pam_access with X applications that provide PAM_TTY values that are
- # the display variable like "host:0".]
- #
- # permission : users : origins
- #
- # The first field should be a "+" (access granted) or "-" (access denied)
- # character.
- #
- # The second field should be a list of one or more login names, group
- # names, or ALL (always matches). A pattern of the form user@host is
- # matched when the login name matches the "user" part, and when the
- # "host" part matches the local machine name.
- #
- # The third field should be a list of one or more tty names (for
- # non-networked logins), host names, domain names (begin with "."), host
- # addresses, internet network numbers (end with "."), ALL (always
- # matches), NONE (matches no tty on non-networked logins) or
- # LOCAL (matches any string that does not contain a "." character).
- #
- # You can use @netgroupname in host or user patterns; this even works
- # for @usergroup@@hostgroup patterns.
- #
- # The EXCEPT operator makes it possible to write very compact rules.
- #
- # The group file is searched only when a name does not match that of the
- # logged-in user. Both the user's primary group is matched, as well as
- # groups in which users are explicitly listed.
- # To avoid problems with accounts, which have the same name as a group,
- # you can use brackets around group names '(group)' to differentiate.
- # In this case, you should also set the "nodefgroup" option.
- #
- # TTY NAMES: Must be in the form returned by ttyname(3) less the initial
- # "/dev" (e.g. tty1 or vc/1)
- #
- ##############################################################################
- #
- # Disallow non-root logins on tty1
- #
- #-:ALL EXCEPT root:tty1
- #
- # Disallow console logins to all but a few accounts.
- #
- #-:ALL EXCEPT wheel shutdown sync:LOCAL
- #
- # Same, but make sure that really the group wheel and not the user
- # wheel is used (use nodefgroup argument, too):
- #
- #-:ALL EXCEPT (wheel) shutdown sync:LOCAL
- #
- # Disallow non-local logins to privileged accounts (group wheel).
- #
- #-:wheel:ALL EXCEPT LOCAL .win.tue.nl
- #
- # Some accounts are not allowed to login from anywhere:
- #
- #-:wsbscaro wsbsecr wsbspac wsbsym wscosor wstaiwde:ALL
- #
- # All other accounts are allowed to login from anywhere.
- #
- ##############################################################################
- # All lines from here up to the end are building a more complex example.
- ##############################################################################
- #
- # User "root" should be allowed to get access via cron .. tty5 tty6.
- #+ : root : cron crond :0 tty1 tty2 tty3 tty4 tty5 tty6
- #
- # User "root" should be allowed to get access from hosts with ip addresses.
- #+ : root : 192.168.200.1 192.168.200.4 192.168.200.9
- #+ : root : 127.0.0.1
- #
- # User "root" should get access from network 192.168.201.
- # This term will be evaluated by string matching.
- # comment: It might be better to use network/netmask instead.
- # The same is 192.168.201.0/24 or 192.168.201.0/255.255.255.0
- #+ : root : 192.168.201.
- #
- # User "root" should be able to have access from domain.
- # Uses string matching also.
- #+ : root : .foo.bar.org
- #
- # User "root" should be denied to get access from all other sources.
- #- : root : ALL
- #
- # User "foo" and members of netgroup "nis_group" should be
- # allowed to get access from all sources.
- # This will only work if netgroup service is available.
- #+ : @nis_group foo : ALL
- #
- # User "john" should get access from ipv4 net/mask
- #+ : john : 127.0.0.0/24
- #
- # User "john" should get access from ipv4 as ipv6 net/mask
- #+ : john : ::ffff:127.0.0.0/127
- #
- # User "john" should get access from ipv6 host address
- #+ : john : 2001:4ca0:0:101::1
- #
- # User "john" should get access from ipv6 host address (same as above)
- #+ : john : 2001:4ca0:0:101:0:0:0:1
- #
- # User "john" should get access from ipv6 net/mask
- #+ : john : 2001:4ca0:0:101::/64
- #
- # All other users should be denied to get access from all sources.
- #- : ALL : ALL
- hikey:/usr/bin/kselftests/futex/functional# cat /etc/security/
- access.conf group.conf limits.conf limits.d/ namespace.conf namespace.d/ namespace.init pam_env.conf time.conf
- hikey:/usr/bin/kselftests/futex/functional# ls -l /etc/security/
- total 40
- -rw-r--r-- 1 root root 4620 May 19 06:52 access.conf
- -rw-r--r-- 1 root root 3635 May 19 06:52 group.conf
- -rw-r--r-- 1 root root 1835 May 19 06:52 limits.conf
- drwxr-xr-x 2 root root 4096 May 19 06:52 limits.d
- -rw-r--r-- 1 root root 1440 May 19 06:52 namespace.conf
- drwxr-xr-x 2 root root 4096 May 19 06:52 namespace.d
- -rwxr-xr-x 1 root root 1016 May 19 06:52 namespace.init
- -rw-r--r-- 1 root root 2972 May 19 06:52 pam_env.conf
- -rw-r--r-- 1 root root 2179 May 19 06:52 time.conf
- hikey:/usr/bin/kselftests/futex/functional# date
- Sat May 20 12:41:54 UTC 2017
- hikey:/usr/bin/kselftests/futex/functional# cat /etc/security/pam_env.conf
- #
- # This is the configuration file for pam_env, a PAM module to load in
- # a configurable list of environment variables for a
- #
- # The original idea for this came from Andrew G. Morgan ...
- #<quote>
- # Mmm. Perhaps you might like to write a pam_env module that reads a
- # default environment from a file? I can see that as REALLY
- # useful... Note it would be an "auth" module that returns PAM_IGNORE
- # for the auth part and sets the environment returning PAM_SUCCESS in
- # the setcred function...
- #</quote>
- #
- # What I wanted was the REMOTEHOST variable set, purely for selfish
- # reasons, and AGM didn't want it added to the SimpleApps login
- # program (which is where I added the patch). So, my first concern is
- # that variable, from there there are numerous others that might/would
- # be useful to be set: NNTPSERVER, LESS, PATH, PAGER, MANPAGER .....
- #
- # Of course, these are a different kind of variable than REMOTEHOST in
- # that they are things that are likely to be configured by
- # administrators rather than set by logging in, how to treat them both
- # in the same config file?
- #
- # Here is my idea:
- #
- # Each line starts with the variable name, there are then two possible
- # options for each variable DEFAULT and OVERRIDE.
- # DEFAULT allows and administrator to set the value of the
- # variable to some default value, if none is supplied then the empty
- # string is assumed. The OVERRIDE option tells pam_env that it should
- # enter in its value (overriding the default value) if there is one
- # to use. OVERRIDE is not used, "" is assumed and no override will be
- # done.
- #
- # VARIABLE [DEFAULT=[value]] [OVERRIDE=[value]]
- #
- # (Possibly non-existent) environment variables may be used in values
- # using the ${string} syntax and (possibly non-existent) PAM_ITEMs may
- # be used in values using the @{string} syntax. Both the $ and @
- # characters can be backslash escaped to be used as literal values
- # values can be delimited with "", escaped " not supported.
- # Note that many environment variables that you would like to use
- # may not be set by the time the module is called.
- # For example, HOME is used below several times, but
- # many PAM applications don't make it available by the time you need it.
- #
- #
- # First, some special variables
- #
- # Set the REMOTEHOST variable for any hosts that are remote, default
- # to "localhost" rather than not being set at all
- #REMOTEHOST DEFAULT=localhost OVERRIDE=@{PAM_RHOST}
- #
- # Set the DISPLAY variable if it seems reasonable
- #DISPLAY DEFAULT=${REMOTEHOST}:0.0 OVERRIDE=${DISPLAY}
- #
- #
- # Now some simple variables
- #
- #PAGER DEFAULT=less
- #MANPAGER DEFAULT=less
- #LESS DEFAULT="M q e h15 z23 b80"
- #NNTPSERVER DEFAULT=localhost
- #PATH DEFAULT=${HOME}/bin:/usr/local/bin:/bin\
- #:/usr/bin:/usr/local/bin/X11:/usr/bin/X11
- #
- # silly examples of escaped variables, just to show how they work.
- #
- #DOLLAR DEFAULT=\$
- #DOLLARDOLLAR DEFAULT= OVERRIDE=\$${DOLLAR}
- #DOLLARPLUS DEFAULT=\${REMOTEHOST}${REMOTEHOST}
- #ATSIGN DEFAULT="" OVERRIDE=\@
- hikey:/usr/bin/kselftests/futex/functional# cat /etc/security/limits.
- limits.conf limits.d/
- hikey:/usr/bin/kselftests/futex/functional# cat /etc/security/limits.conf
- # /etc/security/limits.conf
- #
- #Each line describes a limit for a user in the form:
- #
- #<domain> <type> <item> <value>
- #
- #Where:
- #<domain> can be:
- # - a user name
- # - a group name, with @group syntax
- # - the wildcard *, for default entry
- # - the wildcard %, can be also used with %group syntax,
- # for maxlogin limit
- #
- #<type> can have the two values:
- # - "soft" for enforcing the soft limits
- # - "hard" for enforcing hard limits
- #
- #<item> can be one of the following:
- # - core - limits the core file size (KB)
- # - data - max data size (KB)
- # - fsize - maximum filesize (KB)
- # - memlock - max locked-in-memory address space (KB)
- # - nofile - max number of open file descriptors
- # - rss - max resident set size (KB)
- # - stack - max stack size (KB)
- # - cpu - max CPU time (MIN)
- # - nproc - max number of processes
- # - as - address space limit (KB)
- # - maxlogins - max number of logins for this user
- # - maxsyslogins - max number of logins on the system
- # - priority - the priority to run user process with
- # - locks - max number of file locks the user can hold
- # - sigpending - max number of pending signals
- # - msgqueue - max memory used by POSIX message queues (bytes)
- # - nice - max nice priority allowed to raise to values: [-20, 19]
- # - rtprio - max realtime priority
- #
- #<domain> <type> <item> <value>
- #
- #* soft core 0
- #* hard rss 10000
- #@student hard nproc 20
- #@faculty soft nproc 20
- #@faculty hard nproc 50
- #ftp hard nproc 0
- #@student - maxlogins 4
- # End of file
- hikey:/usr/bin/kselftests/futex/functional# cat /etc/security/limits.
- limits.conf limits.d/
- hikey:/usr/bin/kselftests/futex/functional# ls /etc/security/limits.d/
- hikey:/usr/bin/kselftests/futex/functional# ls
- futex_requeue_pi futex_requeue_pi_signal_restart futex_wait_timeout futex_wait_wouldblock
- futex_requeue_pi_mismatched_ops futex_wait_private_mapped_file futex_wait_uninitialized_heap run.sh
- hikey:/usr/bin/kselftests/futex/functional# env
- XDG_SESSION_ID=c1
- SHELL=/bin/sh
- TERM=xterm-256color
- SSH_CLIENT=192.168.1.4 54148 22
- OLDPWD=/home/linaro
- SSH_TTY=/dev/pts/0
- USER=root
- PATH=/sbin:/bin:/usr/sbin:/usr/bin
- MAIL=/var/spool/mail/root
- PWD=/usr/bin/kselftests/futex/functional
- EDITOR=vi
- PS1=\h:\w\$
- HOME=/home/root
- SHLVL=2
- LOGNAME=root
- SSH_CONNECTION=192.168.1.4 54148 192.168.1.5 22
- XDG_RUNTIME_DIR=/run/user/1000
- _=/usr/bin/env
- hikey:/usr/bin/kselftests/futex/functional# ./futex_requeue_pi
- futex_requeue_pi: Test requeue functionality
- Arguments: broadcast=0 locked=0 owner=0 timeout=0ns
- Result: PASS
- hikey:/usr/bin/kselftests/futex/functional# id
- uid=0(root) gid=0(root) groups=0(root)
- hikey:/usr/bin/kselftests/futex/functional# id --help
- Usage: id [OPTION]... [USER]
- Print user and group information for the specified USER,
- or (when USER omitted) for the current user.
- -a ignore, for compatibility with other versions
- -Z, --context print only the security context of the process
- -g, --group print only the effective group ID
- -G, --groups print all group IDs
- -n, --name print a name instead of a number, for -ugG
- -r, --real print the real ID instead of the effective ID, with -ugG
- -u, --user print only the effective user ID
- -z, --zero delimit entries with NUL characters, not whitespace;
- not permitted in default format
- --help display this help and exit
- --version output version information and exit
- Without any OPTION, print some useful set of identified information.
- GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
- Report id translation bugs to <http://translationproject.org/team/>
- Full documentation at: <http://www.gnu.org/software/coreutils/id>
- or available locally via: info '(coreutils) id invocation'
- hikey:/usr/bin/kselftests/futex/functional# id -a
- uid=0(root) gid=0(root) groups=0(root)
- hikey:/usr/bin/kselftests/futex/functional# id -u
- 0
- hikey:/usr/bin/kselftests/futex/functional# id -Z
- id: --context (-Z) works only on an SELinux-enabled kernel
- hikey:/usr/bin/kselftests/futex/functional# id
- uid=0(root) gid=0(root) groups=0(root)
- hikey:/usr/bin/kselftests/futex/functional# history
- 1 cd /usr/bin/kselftests/futex/functional/
- 2 ./futex_requeue_pi
- 3 cd
- 4 cd /home/linaro/
- 5 cd -
- 6 cd -
- 7 ip a
- 8 nmcli d wifi connect naresh password naresh@123
- 9 ip a
- 10 reboot
- 11 cd /usr/bin/kselftests/futex/functional/
- 12 ./futex_requeue_pi
- 13 cd
- 14 cd /home/linaro/
- 15 ./test_set_other_sched
- 16 cd /usr/bin/kselftests/futex/functional/
- 17 ./futex_requeue_pi
- 18 uname -a
- 19 cd /home/linaro/
- 20 ./test-set-rr
- 21 ./test_set_other_sched
- 22 ./test-rr-sched
- 23 strace ./test_set_other_sched
- 24 strace ./test-set-rr
- 25 nice.coreutils
- 26 nice
- 27 filefrag
- 28 filefrag -b
- 29 cd /usr/bin/kselftests/futex/functional/
- 30 ./futex_requeue_pi
- 31 ulimit
- 32 ulimit -a
- 33 cat /etc/security/access.conf
- 34 ls -l /etc/security/
- 35 date
- 36 cat /etc/security/pam_env.conf
- 37 cat /etc/security/limits.conf
- 38 ls /etc/security/limits.d/
- 39 ls
- 40 env
- 41 ./futex_requeue_pi
- 42 id
- 43 id --help
- 44 id -a
- 45 id -u
- 46 id -Z
- 47 id
- 48 history
- hikey:/usr/bin/kselftests/futex/functional# nice
- 0
- hikey:/usr/bin/kselftests/futex/functional#
- hikey:/usr/bin/kselftests/futex/functional#
- hikey:/usr/bin/kselftests/futex/functional# ./run.sh
- futex_requeue_pi: Test requeue functionality
- Arguments: broadcast=0 locked=0 owner=0 timeout=0ns
- Result: PASS
- futex_requeue_pi: Test requeue functionality
- Arguments: broadcast=1 locked=0 owner=0 timeout=0ns
- Result: PASS
- futex_requeue_pi: Test requeue functionality
- Arguments: broadcast=1 locked=1 owner=0 timeout=0ns
- Result: PASS
- futex_requeue_pi: Test requeue functionality
- Arguments: broadcast=1 locked=0 owner=1 timeout=0ns
- Result: PASS
- futex_requeue_pi: Test requeue functionality
- Arguments: broadcast=0 locked=1 owner=0 timeout=0ns
- Result: PASS
- futex_requeue_pi: Test requeue functionality
- Arguments: broadcast=0 locked=0 owner=1 timeout=0ns
- Result: PASS
- futex_requeue_pi: Test requeue functionality
- Arguments: broadcast=1 locked=1 owner=0 timeout=5000ns
- Result: PASS
- futex_requeue_pi: Test requeue functionality
- Arguments: broadcast=0 locked=1 owner=0 timeout=5000ns
- Result: PASS
- futex_requeue_pi: Test requeue functionality
- Arguments: broadcast=1 locked=1 owner=0 timeout=500000ns
- Result: PASS
- futex_requeue_pi: Test requeue functionality
- Arguments: broadcast=0 locked=1 owner=0 timeout=500000ns
- Result: PASS
- futex_requeue_pi: Test requeue functionality
- Arguments: broadcast=1 locked=0 owner=0 timeout=5000ns
- Result: PASS
- futex_requeue_pi: Test requeue functionality
- Arguments: broadcast=0 locked=0 owner=0 timeout=5000ns
- Result: PASS
- futex_requeue_pi: Test requeue functionality
- Arguments: broadcast=1 locked=0 owner=0 timeout=500000ns
- Result: PASS
- futex_requeue_pi: Test requeue functionality
- Arguments: broadcast=0 locked=0 owner=0 timeout=500000ns
- Result: PASS
- futex_requeue_pi: Test requeue functionality
- Arguments: broadcast=1 locked=0 owner=1 timeout=5000ns
- Result: PASS
- futex_requeue_pi: Test requeue functionality
- Arguments: broadcast=0 locked=1 owner=0 timeout=5000ns
- Result: PASS
- futex_requeue_pi: Test requeue functionality
- Arguments: broadcast=1 locked=0 owner=1 timeout=500000ns
- Result: PASS
- futex_requeue_pi: Test requeue functionality
- Arguments: broadcast=0 locked=1 owner=0 timeout=500000ns
- Result: PASS
- futex_requeue_pi: Test requeue functionality
- Arguments: broadcast=1 locked=1 owner=0 timeout=2000000000ns
- Result: PASS
- futex_requeue_pi: Test requeue functionality
- Arguments: broadcast=0 locked=1 owner=0 timeout=2000000000ns
- Result: PASS
- futex_requeue_pi_mismatched_ops: Detect mismatched requeue_pi operations
- Result: PASS
- futex_requeue_pi_signal_restart: Test signal handling during requeue_pi
- Arguments: <none>
- Result: PASS
- futex_wait_timeout: Block on a futex and wait for timeout
- Arguments: timeout=100000ns
- Result: PASS
- futex_wait_wouldblock: Test the unexpected futex value in FUTEX_WAIT
- Result: PASS
- futex_wait_uninitialized_heap: Test the uninitialized futex value in FUTEX_WAIT
- Result: PASS
- futex_wait_private_mapped_file: Test the futex value of private file mappings in FUTEX_WAIT
- Result: PASS
- hikey:/usr/bin/kselftests/futex/functional# uname -a
- Linux hikey 4.4.69-g59d4acf #1 SMP PREEMPT Mon May 22 22:17:10 UTC 2017 aarch64 aarch64 aarch64 GNU/Linux
- hikey:/usr/bin/kselftests/futex/functional# cat /proc/version
- Linux version 4.4.69-g59d4acf (buildslave@x86-64-08) (gcc version 6.2.1 20161016 (Linaro GCC 6.2-2016.11) ) #1 SMP PREEMPT Mon May 22 22:17:10 UTC 2017
- hikey:/usr/bin/kselftests/futex/functional# strace ./futex_requeue_pi
- execve("./futex_requeue_pi", ["./futex_requeue_pi"], [/* 18 vars */]) = 0
- brk(NULL) = 0x22cc1000
- mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9a18e000
- faccessat(AT_FDCWD, "/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
- openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
- fstat(3, {st_mode=S_IFREG|0644, st_size=10465, ...}) = 0
- mmap(NULL, 10465, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f9a18b000
- close(3) = 0
- openat(AT_FDCWD, "/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
- read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0\267\0\1\0\0\0\320[\0\0\0\0\0\0"..., 832) = 832
- fstat(3, {st_mode=S_IFREG|0755, st_size=97592, ...}) = 0
- mmap(NULL, 177048, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f9a13b000
- mprotect(0x7f9a152000, 61440, PROT_NONE) = 0
- mmap(0x7f9a161000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0x7f9a161000
- mmap(0x7f9a163000, 13208, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f9a163000
- close(3) = 0
- openat(AT_FDCWD, "/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
- read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\267\0\1\0\0\0x\364\1\0\0\0\0\0"..., 832) = 832
- fstat(3, {st_mode=S_IFREG|0755, st_size=1267360, ...}) = 0
- mmap(NULL, 1340040, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f99ff3000
- mprotect(0x7f9a122000, 61440, PROT_NONE) = 0
- mmap(0x7f9a131000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12e000) = 0x7f9a131000
- mmap(0x7f9a137000, 12936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f9a137000
- close(3) = 0
- mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9a189000
- mprotect(0x7f9a131000, 16384, PROT_READ) = 0
- mprotect(0x7f9a161000, 4096, PROT_READ) = 0
- mprotect(0x7f9a192000, 4096, PROT_READ) = 0
- munmap(0x7f9a18b000, 10465) = 0
- set_tid_address(0x7f9a1890d0) = 2886
- set_robust_list(0x7f9a1890e0, 24) = 0
- rt_sigaction(SIGRTMIN, {0x7f9a1405e0, [], SA_SIGINFO}, NULL, 8) = 0
- rt_sigaction(SIGRT_1, {0x7f9a1406d8, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0
- rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
- getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
- fstat(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
- brk(NULL) = 0x22cc1000
- brk(0x22ce2000) = 0x22ce2000
- write(1, "futex_requeue_pi: Test requeue f"..., 45futex_requeue_pi: Test requeue functionality
- ) = 45
- write(1, "\tArguments: broadcast=0 locked=0"..., 53 Arguments: broadcast=0 locked=0 owner=0 timeout=0ns
- ) = 53
- sched_get_priority_min(SCHED_FIFO) = 1
- sched_get_priority_max(SCHED_FIFO) = 99
- mmap(NULL, 8388608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f997f3000
- mprotect(0x7f997f3000, 4096, PROT_NONE) = 0
- clone(child_stack=0x7f99ff1b10, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f99ff22d0, tls=0x7f99ff28f0, child_tidptr=0x7f99ff22d0) = 2887
- sched_setscheduler(2887, SCHED_FIFO, [1]) = 0
- futex(0x7f99ff2618, FUTEX_WAKE_PRIVATE, 1) = 1
- sched_get_priority_min(SCHED_FIFO) = 1
- sched_get_priority_max(SCHED_FIFO) = 99
- mmap(NULL, 8388608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f98ff3000
- mprotect(0x7f98ff3000, 4096, PROT_NONE) = 0
- clone(child_stack=0x7f997f1b10, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f997f22d0, tls=0x7f997f28f0, child_tidptr=0x7f997f22d0) = 2888
- sched_setscheduler(2888, SCHED_FIFO, [1]) = 0
- futex(0x7f997f2618, FUTEX_WAKE_PRIVATE, 1) = 1
- sched_get_priority_min(SCHED_FIFO) = 1
- sched_get_priority_max(SCHED_FIFO) = 99
- mmap(NULL, 8388608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f987f3000
- mprotect(0x7f987f3000, 4096, PROT_NONE) = 0
- clone(child_stack=0x7f98ff1b10, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f98ff22d0, tls=0x7f98ff28f0, child_tidptr=0x7f98ff22d0) = 2890
- sched_setscheduler(2890, SCHED_FIFO, [1]) = 0
- futex(0x7f98ff2618, FUTEX_WAKE_PRIVATE, 1) = 1
- sched_get_priority_min(SCHED_FIFO) = 1
- sched_get_priority_max(SCHED_FIFO) = 99
- mmap(NULL, 8388608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f97ff3000
- mprotect(0x7f97ff3000, 4096, PROT_NONE) = 0
- clone(child_stack=0x7f987f1b10, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f987f22d0, tls=0x7f987f28f0, child_tidptr=0x7f987f22d0) = 2891
- sched_setscheduler(2891, SCHED_FIFO, [1]) = 0
- futex(0x7f987f2618, FUTEX_WAKE_PRIVATE, 1) = 1
- sched_get_priority_min(SCHED_FIFO) = 1
- sched_get_priority_max(SCHED_FIFO) = 99
- mmap(NULL, 8388608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f977f3000
- mprotect(0x7f977f3000, 4096, PROT_NONE) = 0
- clone(child_stack=0x7f97ff1b10, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f97ff22d0, tls=0x7f97ff28f0, child_tidptr=0x7f97ff22d0) = 2892
- sched_setscheduler(2892, SCHED_FIFO, [1]) = 0
- futex(0x7f97ff2618, FUTEX_WAKE_PRIVATE, 1) = 1
- sched_get_priority_min(SCHED_FIFO) = 1
- sched_get_priority_max(SCHED_FIFO) = 99
- mmap(NULL, 8388608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f96ff3000
- mprotect(0x7f96ff3000, 4096, PROT_NONE) = 0
- clone(child_stack=0x7f977f1b10, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f977f22d0, tls=0x7f977f28f0, child_tidptr=0x7f977f22d0) = 2893
- sched_setscheduler(2893, SCHED_FIFO, [1]) = 0
- futex(0x7f977f2618, FUTEX_WAKE_PRIVATE, 1) = 1
- sched_get_priority_min(SCHED_FIFO) = 1
- sched_get_priority_max(SCHED_FIFO) = 99
- mmap(NULL, 8388608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f967f3000
- mprotect(0x7f967f3000, 4096, PROT_NONE) = 0
- clone(child_stack=0x7f96ff1b10, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f96ff22d0, tls=0x7f96ff28f0, child_tidptr=0x7f96ff22d0) = 2894
- sched_setscheduler(2894, SCHED_FIFO, [1]) = 0
- futex(0x7f96ff2618, FUTEX_WAKE_PRIVATE, 1) = 1
- sched_get_priority_min(SCHED_FIFO) = 1
- sched_get_priority_max(SCHED_FIFO) = 99
- mmap(NULL, 8388608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f95ff3000
- mprotect(0x7f95ff3000, 4096, PROT_NONE) = 0
- clone(child_stack=0x7f967f1b10, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f967f22d0, tls=0x7f967f28f0, child_tidptr=0x7f967f22d0) = 2895
- sched_setscheduler(2895, SCHED_FIFO, [1]) = 0
- futex(0x7f967f2618, FUTEX_WAKE_PRIVATE, 1) = 1
- sched_get_priority_min(SCHED_FIFO) = 1
- sched_get_priority_max(SCHED_FIFO) = 99
- mmap(NULL, 8388608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f957f3000
- mprotect(0x7f957f3000, 4096, PROT_NONE) = 0
- clone(child_stack=0x7f95ff1b10, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f95ff22d0, tls=0x7f95ff28f0, child_tidptr=0x7f95ff22d0) = 2896
- sched_setscheduler(2896, SCHED_FIFO, [1]) = 0
- futex(0x7f95ff2618, FUTEX_WAKE_PRIVATE, 1) = 1
- sched_get_priority_min(SCHED_FIFO) = 1
- sched_get_priority_max(SCHED_FIFO) = 99
- mmap(NULL, 8388608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f94ff3000
- mprotect(0x7f94ff3000, 4096, PROT_NONE) = 0
- clone(child_stack=0x7f957f1b10, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f957f22d0, tls=0x7f957f28f0, child_tidptr=0x7f957f22d0) = 2897
- sched_setscheduler(2897, SCHED_FIFO, [1]) = 0
- futex(0x7f957f2618, FUTEX_WAKE_PRIVATE, 1) = 1
- sched_get_priority_min(SCHED_FIFO) = 1
- sched_get_priority_max(SCHED_FIFO) = 99
- mmap(NULL, 8388608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f947f3000
- mprotect(0x7f947f3000, 4096, PROT_NONE) = 0
- clone(child_stack=0x7f94ff1b10, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f94ff22d0, tls=0x7f94ff28f0, child_tidptr=0x7f94ff22d0) = 2898
- sched_setscheduler(2898, SCHED_FIFO, [1]) = 0
- futex(0x7f94ff2618, FUTEX_WAKE_PRIVATE, 1) = 1
- futex(0x7f99ff22d0, FUTEX_WAIT, 2887, NULL) = 0
- munmap(0x7f997f3000, 8388608) = 0
- munmap(0x7f98ff3000, 8388608) = 0
- munmap(0x7f987f3000, 8388608) = 0
- munmap(0x7f97ff3000, 8388608) = 0
- munmap(0x7f977f3000, 8388608) = 0
- munmap(0x7f96ff3000, 8388608) = 0
- write(1, "Result: PASS\n", 14Result: PASS
- ) = 14
- exit_group(0) = ?
- +++ exited with 0 +++
- hikey:/usr/bin/kselftests/futex/functional# cd /opt/ltp/testcases/
- hikey:/opt/ltp/testcases# cd -
- /usr/bin/kselftests/futex/functional
- hikey:/usr/bin/kselftests/futex/functional# cd /opt/ltp/testcases/bin/
- hikey:/opt/ltp/testcases/bin# ./sched_getscheduler01
- sched_getscheduler01 1 TPASS : policy value returned is correct
- sched_getscheduler01 2 TPASS : policy value returned is correct
- sched_getscheduler01 3 TPASS : policy value returned is correct
- hikey:/opt/ltp/testcases/bin# ./sched_getscheduler02
- sched_getscheduler02 1 TPASS : call failed with ESRCH
- hikey:/opt/ltp/testcases/bin# ./sched_rr_get_interval0
- sh: ./sched_rr_get_interval0: No such file or directory
- hikey:/opt/ltp/testcases/bin# ./sched_rr_get_interval01
- sched_rr_get_interval01 1 TPASS : sched_rr_get_interval() returned 0
- hikey:/opt/ltp/testcases/bin# ./sched_rr_get_interval02
- sched_rr_get_interval02 1 TPASS : Test passed
- hikey:/opt/ltp/testcases/bin# ./sched_rr_get_interval0
- sched_rr_get_interval01 sched_rr_get_interval02 sched_rr_get_interval03
- hikey:/opt/ltp/testcases/bin# ./sched_rr_get_interval03
- sched_rr_get_interval03 1 TPASS : Test Passed
- sched_rr_get_interval03 2 TPASS : Test Passed
- sched_rr_get_interval03 3 TPASS : Test Passed
- hikey:/opt/ltp/testcases/bin# ./sched_setscheduler01
- sched_setscheduler01 1 TPASS : expected failure - errno = 3 : No such process
- sched_setscheduler01 2 TPASS : expected failure - errno = 22 : Invalid argument
- sched_setscheduler01 3 TPASS : expected failure - errno = 14 : Bad address
- sched_setscheduler01 4 TPASS : expected failure - errno = 22 : Invalid argument
- hikey:/opt/ltp/testcases/bin# ./sched_setscheduler02
- sched_setscheduler02 1 TPASS : got EPERM
- hikey:/opt/ltp/testcases/bin# ./sched_setscheduler0
- sched_setscheduler01 sched_setscheduler02 sched_setscheduler03
- hikey:/opt/ltp/testcases/bin# ./sched_setscheduler03
- tst_test.c:760: INFO: Timeout per run is 0h 05m 00s
- sched_setscheduler03.c:76: INFO: rlimit rlim_cur=0
- sched_setscheduler03.c:78: INFO: rlimit rlim_max=0
- sched_setscheduler03.c:86: INFO: Setting rlim_cur to 19
- sched_setscheduler03.c:88: INFO: Setting rlim_max to 19
- sched_setscheduler03.c:76: INFO: rlimit rlim_cur=19
- sched_setscheduler03.c:78: INFO: rlimit rlim_max=19
- sched_setscheduler03.c:143: INFO: Setting init sched policy to SCHED_OTHER
- sched_setscheduler03.c:151: INFO: Setting euid to nobody to drop privilege
- sched_setscheduler03.c:165: INFO: forked pid is 2910
- sched_setscheduler03.c:109: INFO: Verifying case[1]: policy = 0, priority = 0
- sched_setscheduler03.c:117: PASS: case[1] succeeded
- sched_setscheduler03.c:165: INFO: forked pid is 2911
- sched_setscheduler03.c:109: INFO: Verifying case[2]: policy = 3, priority = 0
- sched_setscheduler03.c:117: PASS: case[2] succeeded
- sched_setscheduler03.c:165: INFO: forked pid is 2912
- sched_setscheduler03.c:109: INFO: Verifying case[3]: policy = 5, priority = 0
- sched_setscheduler03.c:117: PASS: case[3] succeeded
- Summary:
- passed 3
- failed 0
- skipped 0
- warnings 0
- hikey:/opt/ltp/testcases/bin# env
- XDG_SESSION_ID=c1
- SHELL=/bin/sh
- TERM=xterm-256color
- SSH_CLIENT=192.168.1.4 54148 22
- OLDPWD=/usr/bin/kselftests/futex/functional
- SSH_TTY=/dev/pts/0
- USER=root
- PATH=/sbin:/bin:/usr/sbin:/usr/bin
- MAIL=/var/spool/mail/root
- PWD=/opt/ltp/testcases/bin
- EDITOR=vi
- PS1=\h:\w\$
- HOME=/home/root
- SHLVL=2
- LOGNAME=root
- SSH_CONNECTION=192.168.1.4 54148 192.168.1.5 22
- XDG_RUNTIME_DIR=/run/user/1000
- _=/usr/bin/env
- hikey:/opt/ltp/testcases/bin# ulimit -a
- core file size (blocks, -c) unlimited
- data seg size (kbytes, -d) unlimited
- scheduling priority (-e) 0
- file size (blocks, -f) unlimited
- pending signals (-i) 7226
- max locked memory (kbytes, -l) 64
- max memory size (kbytes, -m) unlimited
- open files (-n) 1024
- pipe size (512 bytes, -p) 8
- POSIX message queues (bytes, -q) 819200
- real-time priority (-r) 0
- stack size (kbytes, -s) 8192
- cpu time (seconds, -t) unlimited
- max user processes (-u) 7226
- virtual memory (kbytes, -v) unlimited
- file locks (-x) unlimited
- hikey:/opt/ltp/testcases/bin# history
- 1 cd /usr/bin/kselftests/futex/functional/
- 2 ./futex_requeue_pi
- 3 cd
- 4 cd /home/linaro/
- 5 cd -
- 6 cd -
- 7 ip a
- 8 nmcli d wifi connect naresh password naresh@123
- 9 ip a
- 10 reboot
- 11 cd /usr/bin/kselftests/futex/functional/
- 12 ./futex_requeue_pi
- 13 cd
- 14 cd /home/linaro/
- 15 ./test_set_other_sched
- 16 cd /usr/bin/kselftests/futex/functional/
- 17 ./futex_requeue_pi
- 18 uname -a
- 19 cd /home/linaro/
- 20 ./test-set-rr
- 21 ./test_set_other_sched
- 22 ./test-rr-sched
- 23 strace ./test_set_other_sched
- 24 strace ./test-set-rr
- 25 nice.coreutils
- 26 nice
- 27 filefrag
- 28 filefrag -b
- 29 cd /usr/bin/kselftests/futex/functional/
- 30 ./futex_requeue_pi
- 31 ulimit
- 32 ulimit -a
- 33 cat /etc/security/access.conf
- 34 ls -l /etc/security/
- 35 date
- 36 cat /etc/security/pam_env.conf
- 37 cat /etc/security/limits.conf
- 38 ls /etc/security/limits.d/
- 39 ls
- 40 env
- 41 ./futex_requeue_pi
- 42 id
- 43 id --help
- 44 id -a
- 45 id -u
- 46 id -Z
- 47 id
- 48 history
- 49 nice
- 50 ./run.sh
- 51 uname -a
- 52 cat /proc/version
- 53 strace ./futex_requeue_pi
- 54 cd /opt/ltp/testcases/
- 55 cd -
- 56 cd /opt/ltp/testcases/bin/
- 57 ./sched_getscheduler01
- 58 ./sched_getscheduler02
- 59 ./sched_rr_get_interval0
- 60 ./sched_rr_get_interval01
- 61 ./sched_rr_get_interval02
- 62 ./sched_rr_get_interval03
- 63 ./sched_setscheduler01
- 64 ./sched_setscheduler02
- 65 ./sched_setscheduler03
- 66 env
- 67 ulimit -a
- 68 history
- hikey:/opt/ltp/testcases/bin# ./sched_setscheduler03
- tst_test.c:760: INFO: Timeout per run is 0h 05m 00s
- sched_setscheduler03.c:76: INFO: rlimit rlim_cur=0
- sched_setscheduler03.c:78: INFO: rlimit rlim_max=0
- sched_setscheduler03.c:86: INFO: Setting rlim_cur to 19
- sched_setscheduler03.c:88: INFO: Setting rlim_max to 19
- sched_setscheduler03.c:76: INFO: rlimit rlim_cur=19
- sched_setscheduler03.c:78: INFO: rlimit rlim_max=19
- sched_setscheduler03.c:143: INFO: Setting init sched policy to SCHED_OTHER
- sched_setscheduler03.c:151: INFO: Setting euid to nobody to drop privilege
- sched_setscheduler03.c:165: INFO: forked pid is 3362
- sched_setscheduler03.c:109: INFO: Verifying case[1]: policy = 0, priority = 0
- sched_setscheduler03.c:117: PASS: case[1] succeeded
- sched_setscheduler03.c:165: INFO: forked pid is 3363
- sched_setscheduler03.c:109: INFO: Verifying case[2]: policy = 3, priority = 0
- sched_setscheduler03.c:117: PASS: case[2] succeeded
- sched_setscheduler03.c:165: INFO: forked pid is 3364
- sched_setscheduler03.c:109: INFO: Verifying case[3]: policy = 5, priority = 0
- sched_setscheduler03.c:117: PASS: case[3] succeeded
- Summary:
- passed 3
- failed 0
- skipped 0
- warnings 0
- hikey:/opt/ltp/testcases/bin# cd /usr/bin/kselftests/futex/functional/
- hikey:/usr/bin/kselftests/futex/functional#
- hikey:/usr/bin/kselftests/futex/functional# uname -a
- Linux hikey 4.4.69-g59d4acf #1 SMP PREEMPT Mon May 22 22:17:10 UTC 2017 aarch64 aarch64 aarch64 GNU/Linux
- hikey:/usr/bin/kselftests/futex/functional# ./futex_requeue_pi
- futex_requeue_pi: Test requeue functionality
- Arguments: broadcast=0 locked=0 owner=0 timeout=0ns
- Result: PASS
- hikey:/usr/bin/kselftests/futex/functional# strace ./futex_requeue_pi
- execve("./futex_requeue_pi", ["./futex_requeue_pi"], [/* 18 vars */]) = 0
- brk(NULL) = 0x301d8000
- mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb6aaa000
- faccessat(AT_FDCWD, "/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
- openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
- fstat(3, {st_mode=S_IFREG|0644, st_size=10465, ...}) = 0
- mmap(NULL, 10465, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb6aa7000
- close(3) = 0
- openat(AT_FDCWD, "/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
- read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0\267\0\1\0\0\0\320[\0\0\0\0\0\0"..., 832) = 832
- fstat(3, {st_mode=S_IFREG|0755, st_size=97592, ...}) = 0
- mmap(NULL, 177048, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fb6a57000
- mprotect(0x7fb6a6e000, 61440, PROT_NONE) = 0
- mmap(0x7fb6a7d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0x7fb6a7d000
- mmap(0x7fb6a7f000, 13208, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fb6a7f000
- close(3) = 0
- openat(AT_FDCWD, "/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
- read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\267\0\1\0\0\0x\364\1\0\0\0\0\0"..., 832) = 832
- fstat(3, {st_mode=S_IFREG|0755, st_size=1267360, ...}) = 0
- mmap(NULL, 1340040, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fb690f000
- mprotect(0x7fb6a3e000, 61440, PROT_NONE) = 0
- mmap(0x7fb6a4d000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12e000) = 0x7fb6a4d000
- mmap(0x7fb6a53000, 12936, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fb6a53000
- close(3) = 0
- mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb6aa5000
- mprotect(0x7fb6a4d000, 16384, PROT_READ) = 0
- mprotect(0x7fb6a7d000, 4096, PROT_READ) = 0
- mprotect(0x7fb6aae000, 4096, PROT_READ) = 0
- munmap(0x7fb6aa7000, 10465) = 0
- set_tid_address(0x7fb6aa50d0) = 3382
- set_robust_list(0x7fb6aa50e0, 24) = 0
- rt_sigaction(SIGRTMIN, {0x7fb6a5c5e0, [], SA_SIGINFO}, NULL, 8) = 0
- rt_sigaction(SIGRT_1, {0x7fb6a5c6d8, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0
- rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
- getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
- fstat(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
- brk(NULL) = 0x301d8000
- brk(0x301f9000) = 0x301f9000
- write(1, "futex_requeue_pi: Test requeue f"..., 45futex_requeue_pi: Test requeue functionality
- ) = 45
- write(1, "\tArguments: broadcast=0 locked=0"..., 53 Arguments: broadcast=0 locked=0 owner=0 timeout=0ns
- ) = 53
- sched_get_priority_min(SCHED_FIFO) = 1
- sched_get_priority_max(SCHED_FIFO) = 99
- mmap(NULL, 8388608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7fb610f000
- mprotect(0x7fb610f000, 4096, PROT_NONE) = 0
- clone(child_stack=0x7fb690db10, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7fb690e2d0, tls=0x7fb690e8f0, child_tidptr=0x7fb690e2d0) = 3383
- sched_setscheduler(3383, SCHED_FIFO, [1]) = 0
- futex(0x7fb690e618, FUTEX_WAKE_PRIVATE, 1) = 1
- sched_get_priority_min(SCHED_FIFO) = 1
- sched_get_priority_max(SCHED_FIFO) = 99
- mmap(NULL, 8388608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7fb590f000
- mprotect(0x7fb590f000, 4096, PROT_NONE) = 0
- clone(child_stack=0x7fb610db10, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7fb610e2d0, tls=0x7fb610e8f0, child_tidptr=0x7fb610e2d0) = 3384
- sched_setscheduler(3384, SCHED_FIFO, [1]) = 0
- futex(0x7fb610e618, FUTEX_WAKE_PRIVATE, 1) = 1
- sched_get_priority_min(SCHED_FIFO) = 1
- sched_get_priority_max(SCHED_FIFO) = 99
- mmap(NULL, 8388608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7fb510f000
- mprotect(0x7fb510f000, 4096, PROT_NONE) = 0
- clone(child_stack=0x7fb590db10, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7fb590e2d0, tls=0x7fb590e8f0, child_tidptr=0x7fb590e2d0) = 3385
- sched_setscheduler(3385, SCHED_FIFO, [1]) = 0
- futex(0x7fb590e618, FUTEX_WAKE_PRIVATE, 1) = 1
- sched_get_priority_min(SCHED_FIFO) = 1
- sched_get_priority_max(SCHED_FIFO) = 99
- mmap(NULL, 8388608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7fb490f000
- mprotect(0x7fb490f000, 4096, PROT_NONE) = 0
- clone(child_stack=0x7fb510db10, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7fb510e2d0, tls=0x7fb510e8f0, child_tidptr=0x7fb510e2d0) = 3386
- sched_setscheduler(3386, SCHED_FIFO, [1]) = 0
- futex(0x7fb510e618, FUTEX_WAKE_PRIVATE, 1) = 1
- sched_get_priority_min(SCHED_FIFO) = 1
- sched_get_priority_max(SCHED_FIFO) = 99
- mmap(NULL, 8388608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7fb410f000
- mprotect(0x7fb410f000, 4096, PROT_NONE) = 0
- clone(child_stack=0x7fb490db10, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7fb490e2d0, tls=0x7fb490e8f0, child_tidptr=0x7fb490e2d0) = 3387
- sched_setscheduler(3387, SCHED_FIFO, [1]) = 0
- futex(0x7fb490e618, FUTEX_WAKE_PRIVATE, 1) = 1
- sched_get_priority_min(SCHED_FIFO) = 1
- sched_get_priority_max(SCHED_FIFO) = 99
- mmap(NULL, 8388608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7fb390f000
- mprotect(0x7fb390f000, 4096, PROT_NONE) = 0
- clone(child_stack=0x7fb410db10, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7fb410e2d0, tls=0x7fb410e8f0, child_tidptr=0x7fb410e2d0) = 3388
- sched_setscheduler(3388, SCHED_FIFO, [1]) = 0
- futex(0x7fb410e618, FUTEX_WAKE_PRIVATE, 1) = 1
- sched_get_priority_min(SCHED_FIFO) = 1
- sched_get_priority_max(SCHED_FIFO) = 99
- mmap(NULL, 8388608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7fb310f000
- mprotect(0x7fb310f000, 4096, PROT_NONE) = 0
- clone(child_stack=0x7fb390db10, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7fb390e2d0, tls=0x7fb390e8f0, child_tidptr=0x7fb390e2d0) = 3389
- sched_setscheduler(3389, SCHED_FIFO, [1]) = 0
- futex(0x7fb390e618, FUTEX_WAKE_PRIVATE, 1) = 1
- sched_get_priority_min(SCHED_FIFO) = 1
- sched_get_priority_max(SCHED_FIFO) = 99
- mmap(NULL, 8388608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7fb290f000
- mprotect(0x7fb290f000, 4096, PROT_NONE) = 0
- clone(child_stack=0x7fb310db10, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7fb310e2d0, tls=0x7fb310e8f0, child_tidptr=0x7fb310e2d0) = 3390
- sched_setscheduler(3390, SCHED_FIFO, [1]) = 0
- futex(0x7fb310e618, FUTEX_WAKE_PRIVATE, 1) = 1
- sched_get_priority_min(SCHED_FIFO) = 1
- sched_get_priority_max(SCHED_FIFO) = 99
- mmap(NULL, 8388608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7fb210f000
- mprotect(0x7fb210f000, 4096, PROT_NONE) = 0
- clone(child_stack=0x7fb290db10, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7fb290e2d0, tls=0x7fb290e8f0, child_tidptr=0x7fb290e2d0) = 3391
- sched_setscheduler(3391, SCHED_FIFO, [1]) = 0
- futex(0x7fb290e618, FUTEX_WAKE_PRIVATE, 1) = 1
- sched_get_priority_min(SCHED_FIFO) = 1
- sched_get_priority_max(SCHED_FIFO) = 99
- mmap(NULL, 8388608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7fb190f000
- mprotect(0x7fb190f000, 4096, PROT_NONE) = 0
- clone(child_stack=0x7fb210db10, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7fb210e2d0, tls=0x7fb210e8f0, child_tidptr=0x7fb210e2d0) = 3392
- sched_setscheduler(3392, SCHED_FIFO, [1]) = 0
- futex(0x7fb210e618, FUTEX_WAKE_PRIVATE, 1) = 1
- sched_get_priority_min(SCHED_FIFO) = 1
- sched_get_priority_max(SCHED_FIFO) = 99
- mmap(NULL, 8388608, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7fb110f000
- mprotect(0x7fb110f000, 4096, PROT_NONE) = 0
- clone(child_stack=0x7fb190db10, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7fb190e2d0, tls=0x7fb190e8f0, child_tidptr=0x7fb190e2d0) = 3393
- sched_setscheduler(3393, SCHED_FIFO, [1]) = 0
- futex(0x7fb190e618, FUTEX_WAKE_PRIVATE, 1) = 1
- futex(0x7fb690e2d0, FUTEX_WAIT, 3383, NULL) = 0
- munmap(0x7fb610f000, 8388608) = 0
- munmap(0x7fb590f000, 8388608) = 0
- munmap(0x7fb510f000, 8388608) = 0
- munmap(0x7fb490f000, 8388608) = 0
- munmap(0x7fb410f000, 8388608) = 0
- munmap(0x7fb390f000, 8388608) = 0
- write(1, "Result: PASS\n", 14Result: PASS
- ) = 14
- exit_group(0) = ?
- +++ exited with 0 +++
- hikey:/usr/bin/kselftests/futex/functional#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement