[OE-core] [meta-realtime][PATCH] layer.conf: add openembedded-layer to LAYERDEPENDS

2019-08-30 Thread Hongzhi.Song
latencytop.bb depends on gtk+ which exists at openembedded-layer. So we should add openembedded-layer to LAYERDEPENDS, otherwise "yocto-check-layer-wrapper meta-realtime --dependency 'cat mylist'" will fail with "NO PROVIDE gtk+ ..." Signed-off-by: Hongzhi.Song

[OE-core] [PATCH] kernel-devsrc: copy mmiowb.h and modpost from ${B} of kernel

2019-09-03 Thread Hongzhi.Song
nclude/ to $kerneldir/build/ in case of other files under generated/ is needed in the future. 2. "/bin/sh: scripts/mod/modpost: No such file or directory" Copy above files or directory to $kerneldir/build/ fix the errors. Signed-off-by: Hongzhi.Song --- meta/recipes-kernel/linux/kernel-dev

[OE-core] [meta][PATCH] ltp: fix shmctl01 failure when executed.

2019-06-27 Thread Hongzhi.Song
schmctl01 fails with following error: [shmctl015 TFAIL : shmctl01.c:171: shmctl01 call failed - errno = 22 : Invalid argument] Backport the patch from upstream can fix it. Signed-off-by: Hongzhi.Song --- ...se-hardcoded-index-0-for-SHM_STAT-te.patch | 81 +++ meta

[OE-core] [PATCH] ltp: diotest4: Let kernel pick an address when calling mmap

2019-07-01 Thread Hongzhi.Song
Error: diotest4 10 TBROK : diotest4.c:368: can't mmap file: Invalid argument diotest4 11 TBROK : diotest4.c:368: Remaining cases broken This is because the manually specified addr from mmap is invalid. We should let kernel itself pick an addrress. Signed-off-by: Hongzhi.Song --- ...nel-pi

[OE-core] [PATCH] ltp: diotest4: Let kernel pick an address when calling mmap

2019-07-01 Thread Hongzhi.Song
Error: diotest4 10 TBROK : diotest4.c:368: can't mmap file: Invalid argument diotest4 11 TBROK : diotest4.c:368: Remaining cases broken This is because the manually specified addr from mmap is invalid. We should let kernel itself pick an addrress. Signed-off-by: Hongzhi.Song --- ...nel-pi

[OE-core] [PATCH] ltp: diotest4: Let kernel pick an address when calling mmap

2019-07-01 Thread Hongzhi.Song
Error: diotest4 10 TBROK : diotest4.c:368: can't mmap file: Invalid argument diotest4 11 TBROK : diotest4.c:368: Remaining cases broken This is because the manually specified addr from mmap is invalid. We should let kernel itself pick an addrress. Signed-off-by: Hongzhi.Song --- ...nel-pi

[OE-core] [PATCH] ltp: getrlimit03: adjust-a-bit-of-code-to-compatiable-with mips32

2019-07-17 Thread Hongzhi.Song
to be unsigned. * Which makes a ton more sense anyway, * but we keep the old value on MIPS32, * for compatibility: */ #ifndef __mips64 # define RLIM_INFINITY 0x7fffUL #endif Adding conditional statement about mips to fix this. Signed-off-by: Hongzhi.Song --- ...-adjust-a-bit-of

[OE-core] [PATCH] lttng-tools: enable manpages option for configure

2019-08-08 Thread Hongzhi.Song
If disable this option, production will prompt "No manual entry for lttng-help" when execute "lttng --help" series commands. Enable the option will make lttng-tools compile manpages and then package them into lttng-tools-doc/. Signed-off-by: Hongzhi.Song --- meta/recipe

[OE-core] [PATCH] kernel-devsrc: cp Documentation/ to sdk kernel

2019-08-12 Thread Hongzhi.Song
-by: Jonathan Corbet Signed-off-by: Hongzhi.Song --- meta/recipes-kernel/linux/kernel-devsrc.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb b/meta/recipes-kernel/linux/kernel-devsrc.bb index 5ec5929..a874e06 100644 --- a/meta/

[OE-core] [yocto-kernel-tools][PATCH] tools/kconf_check: modify grep pattern

2018-12-11 Thread Hongzhi.Song
The cmd line, , can't match all expect config options. This is because that it is not always space after 'config' in kernel-source/*/.../Kconfig. e.g. "config IP_VS_IPV6" in net/netfilter/ipvs/Kconfig So we should change the cmd to grep '^[ ]*\(menu\)*config\s&

[OE-core] [PATCH] kern-tools: modify grep pattern for tools/kconf_check

2018-12-12 Thread Hongzhi.Song
cmd to grep '^[ ]*\(menu\)*config\s'. Signed-off-by: Hongzhi.Song --- ...0001-tool-kconf_check-modify-grep-pattern.patch | 38 ++ .../kern-tools/kern-tools-native_git.bb| 13 +--- 2 files changed, 47 insertions(+), 4 deletions(-) create mode 100

[OE-core] [PATCH] kern-tools: modify grep pattern for tools/kconf_check

2018-12-12 Thread Hongzhi.Song
cmd to grep '^[ ]*\(menu\)*config\s'. License-Update: Signed-off-by: Hongzhi.Song --- ...0001-tool-kconf_check-modify-grep-pattern.patch | 37 ++ .../kern-tools/kern-tools-native_git.bb| 13 +--- 2 files changed, 46 insertions(+), 4 deletions(-

[OE-core] [PATCH] oeqa/runtime/ksample.py: skip kprobe case except x86 and powerpc

2019-01-17 Thread Hongzhi.Song
powerpc. Signed-off-by: Hongzhi.Song --- meta/lib/oeqa/runtime/cases/ksample.py | 7 +++ 1 file changed, 7 insertions(+) diff --git a/meta/lib/oeqa/runtime/cases/ksample.py b/meta/lib/oeqa/runtime/cases/ksample.py index 354cc97673..584d0fb5e4 100644 --- a/meta/lib/oeqa/runtime/cases

[OE-core] [PATCH] runtime/ksample.py: correct a syntax and perfect item about architecture

2019-01-22 Thread Hongzhi.Song
Signed-off-by: Hongzhi.Song --- meta/lib/oeqa/runtime/cases/ksample.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta/lib/oeqa/runtime/cases/ksample.py b/meta/lib/oeqa/runtime/cases/ksample.py index 584d0fb..de2366a 100644 --- a/meta/lib/oeqa/runtime/cases

[OE-core] [PATCH] udev-extraconf: Add systemd-mount to mount.sh

2018-04-09 Thread Hongzhi.Song
fix the problem brought with private namespace. Systemd-mount request the mount operation to be executed by PID 1, and hence host space can access the block devices. [YOCTO #12644] Signed-off-by: Hongzhi.Song --- meta/recipes-core/udev/mount.sh | 141 1 fil

[OE-core] [PATCH v2] udev-extraconf: Add systemd-mount to udev-extraconf/mount.sh

2018-04-11 Thread Hongzhi.Song
ount' will fix the problem brought with private namespace. Systemd-mount request the mount operation to be executed by PID 1, and hence host space can access the block devices. [YOCTO #12644] Signed-off-by: Hongzhi.Song --- meta/recipes-core/udev/udev-extraconf/mount.sh | 71 ++

[OE-core] [PATCH v3] udev-extraconf: Add systemd-mount to udev-extraconf/mount.sh

2018-04-17 Thread Hongzhi.Song
to solve such problems. This patch makes use of 'systemd-mount' to solve the above problem. [YOCTO #12644] Signed-off-by: Hongzhi.Song --- meta/recipes-core/udev/udev-extraconf/mount.sh | 83 -- meta/recipes-core/udev/udev-extraconf_1.1.bb | 3 + 2 files chan

[OE-core] [meta-oe][PATCH] Turbostat: add a necessary recipe to meta-oe

2018-05-21 Thread Hongzhi.Song
This is an efficient tool to reflect the status of processors. Turbostat reports processor topology, frequency, idle power-state statistics, temperature and power on processors. Signed-off-by: Hongzhi.Song --- meta-oe/recipes-kernel/turbostat/turbostat.bb | 53 +++ 1

[OE-core] [PATCH] oe-selftest: add kernel sample of trace-events to oe-selftest

2018-05-29 Thread Hongzhi.Song
= " kernel-sample/kernel-sample.scc" in local.conf. kernel-sample.scc has been accepted by kernel-cache with master branch. Signed-off-by: Hongzhi.Song --- meta/lib/oeqa/runtime/cases/ksample_trace.py | 76 1 file changed, 76 insertions(+) create mode 1

[OE-core] [PATCH] Meta runtime cases: add testcases for kernel sample

2018-06-01 Thread Hongzhi.Song
, KERNEL_FEATURES_append += " kernel-sample/kernel-sample.scc" in local.conf. Signed-off-by: Hongzhi.Song --- meta/lib/oeqa/runtime/cases/ksample.py | 440 + 1 file changed, 440 insertions(+) create mode 100644 meta/lib/oeqa/runtime/cases/ksample.py diff --git

[OE-core] [meta][lib/oeqa][PATCH v2] Meta runtime cases: add testcases for kernel sample

2018-06-01 Thread Hongzhi.Song
, KERNEL_FEATURES_append += " kernel-sample/kernel-sample.scc" in local.conf. Signed-off-by: Hongzhi.Song --- meta/lib/oeqa/runtime/cases/ksample.py | 272 + meta/lib/oeqa/runtime/cases/ksample_abs.py | 272 + 2 files changed, 544

[OE-core] [meta][lib/oeqa][PATCH v3] Meta runtime cases: add testcases for kernel sample

2018-06-02 Thread Hongzhi.Song
, KERNEL_FEATURES_append += " kernel-sample/kernel-sample.scc" in local.conf. kernel-sample feature has been merged into master branch. Signed-off-by: Hongzhi.Song --- meta/lib/oeqa/runtime/cases/ksample.py | 272 + 1 file changed, 272 insertions(+) create mode 1

[OE-core] [meta][PATCH 2/2 v4] Meta runtime cases: add testcases for kernel sample

2018-06-04 Thread Hongzhi.Song
, KERNEL_FEATURES_append += " features/kernel-sample/kernel-sample.scc" in local.conf. Signed-off-by: Hongzhi.Song --- meta/lib/oeqa/runtime/cases/ksample.py | 213 + 1 file changed, 213 insertions(+) create mode 100644 meta/lib/oeqa/runtime/cases/ksample.py di

[OE-core] [meta][PATCH 1/2] meta runtime testcases: enable kernel-sample features for runtime tests

2018-06-04 Thread Hongzhi.Song
Enable kernel-sample features by default with the machine of qemu. Signed-off-by: Hongzhi.Song --- meta/recipes-kernel/linux/linux-yocto.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/recipes-kernel/linux/linux-yocto.inc b/meta/recipes-kernel/linux/linux-yocto.inc index

[OE-core] [meta][PATCH 0/2] Add kernel-sample tests for runtime test

2018-06-04 Thread Hongzhi.Song
V4: * add support for qemu by default V3: * remove duplicated code V2: * use shared function to replace similar code Hongzhi.Song (2): meta runtime testcases: enable kernel-sample features for runtime tests Meta runtime cases: add testcases for kernel sample meta/lib/oeqa/runtime

[OE-core] [oe-core][PATCH] linux-yocto-rt: Add paravirt_kvm support for qemux86-64

2018-09-09 Thread Hongzhi.Song
This feature includes paravirtualized KVM guest support, including KVMCLOCK for enhancing clock accuracy of guest OS. Signed-off-by: He Zhe Signed-off-by: Hongzhi.Song --- meta/recipes-kernel/linux/linux-yocto-rt_4.14.bb | 2 +- meta/recipes-kernel/linux/linux-yocto-rt_4.18.bb | 2 +- 2 files

[OE-core] [oe-core][PATCH] ltp: add a patch for source code to fix issue about fcntl

2018-09-15 Thread Hongzhi.Song
The testcases of fcntl fail on 32-bit arch To cope with glibc commit: 06ab719d30b0 ("Fix Linux fcntl OFD locks for non-LFS architectures (BZ#20251)") Make OFD command use fcntl64() syscall on 32-bit. Signed-off-by: Hongzhi.Song --- ...ntl-make-OFD-command-use-fcntl64-syscall-.p

[OE-core] [PATCH 1/3] udev-extraconf/mount.sh: add support to systemd

2018-09-15 Thread Hongzhi.Song
using: runqemu qemux86 slirp nographic qemuparams="-hda b.img" Note that hda is not mounted yet it can't be formatted either. Detail steps of reproduce: https://bugzilla.yoctoproject.org/show_bug.cgi?id=12644 Signed-off-by: Hongzhi.Song --- meta/recipes-core/udev/udev-extraconf/m

[OE-core] [PATCH 2/3] udev-extraconf/mount.sh: Fix the recursively dependency for the systemd-mount

2018-09-15 Thread Hongzhi.Song
trigger a recursively dependency like the following: dev-sda1.device -> run-media-sda1.mount -> dev-sda1.device Signed-off-by: Kevin Hao Signed-off-by: Hongzhi.Song --- meta/recipes-core/udev/udev-extraconf/mount.sh | 27 +++--- 1 file changed, 16 insertions(

[OE-core] [PATCH 0/3 v5] udev-extraconf/mount.sh: add systemd-mount command for systemd

2018-09-15 Thread Hongzhi.Song
v5: perfect a few codes based on v4 v4: fix the recursively dependency for the systemd-mount v3: perfect syntax Hongzhi.Song (3): udev-extraconf/mount.sh: add support to systemd udev-extraconf/mount.sh: Fix the recursively dependency for the systemd-mount udev-extraconf

[OE-core] [PATCH 3/3] udev-extraconf/mount.sh: Skip the entry in /etc/fstab when using the systemd-moun

2018-09-15 Thread Hongzhi.Song
When using systemd, the systemd-fstab-generator would parse the /etc/fstab and create the corresponding unit dynamically. So we don't need to handle the ADD action for the partitions in /etc/fstab. Signed-off-by: Kevin Hao Signed-off-by: Hongzhi.Song --- meta/recipes-core/udev/udev-extr

[OE-core] [PATCH] sigwaitinfo01: recent glibc calls syscall directly

2018-09-20 Thread Hongzhi.Song
rocess and test reports failure. Fix it by accepting either crash or EFAULT. Signed-off-by: Hongzhi.Song --- ...nfo01-recent-glibc-calls-syscall-directly.patch | 78 ++ meta/recipes-extended/ltp/ltp_20180515.bb | 1 + 2 files changed, 79 insertions(+) create mode 10

[OE-core] [PATCH 1/1] sigwaitinfo01: recent glibc calls syscall directly

2018-09-20 Thread Hongzhi.Song
rocess and test reports failure. Fix it by accepting either crash or EFAULT. Signed-off-by: Hongzhi.Song --- ...nfo01-recent-glibc-calls-syscall-directly.patch | 75 ++ meta/recipes-extended/ltp/ltp_20180515.bb | 1 + 2 files changed, 76 insertions(+) create mode 10

[OE-core] [PATCH 0/1 V2] sigwaitinfo01: recent glibc calls syscall directly

2018-09-20 Thread Hongzhi.Song
v2: modify the format of [Upstream-Status] Hongzhi.Song (1): sigwaitinfo01: recent glibc calls syscall directly ...nfo01-recent-glibc-calls-syscall-directly.patch | 75 ++ meta/recipes-extended/ltp/ltp_20180515.bb | 1 + 2 files changed, 76 insertions

[OE-core] [PATCH 1/1] ltp: recent glibc calls syscall directly

2018-10-07 Thread Hongzhi.Song
rocess and test reports failure. Fix it by accepting either crash or EFAULT. Signed-off-by: Hongzhi.Song --- ...nfo01-recent-glibc-calls-syscall-directly.patch | 75 ++ meta/recipes-extended/ltp/ltp_20180515.bb | 1 + 2 files changed, 76 insertions(+) create mode 10

[OE-core] [v3 PATCH 0/1] ltp: recent glibc calls syscall directly

2018-10-07 Thread Hongzhi.Song
v3: modify commit log with adding recipe name v2: modify the format of [Upstream-Status] Hongzhi.Song (1): ltp: recent glibc calls syscall directly ...nfo01-recent-glibc-calls-syscall-directly.patch | 75 ++ meta/recipes-extended/ltp/ltp_20180515.bb | 1

[OE-core] [PATCH] ltp: modify mmap_24-2 testcase

2018-10-11 Thread Hongzhi.Song
lax the condition and accept both ENOMEM and EINVAL as expected outcome. Signed-off-by: Hongzhi.Song --- ..._testsuite-mmap24-2-Relax-condition-a-bit.patch | 68 ++ meta/recipes-extended/ltp/ltp_20180515.bb | 1 + 2 files changed, 69 insertions(+) create mode 10064

[OE-core] [PATCH V2] ltp: modify mmap_24-2 testcase

2018-10-15 Thread Hongzhi.Song
v2: make the patch based on the newest status. Hongzhi.Song (1): ltp: modify mmap_24-2 testcase ..._testsuite-mmap24-2-Relax-condition-a-bit.patch | 68 ++ meta/recipes-extended/ltp/ltp_20180515.bb | 1 + 2 files changed, 69 insertions(+) create mode 100644

[OE-core] [PATCH] ltp: modify mmap_24-2 testcase

2018-10-15 Thread Hongzhi.Song
lax the condition and accept both ENOMEM and EINVAL as expected outcome. Signed-off-by: Hongzhi.Song --- ..._testsuite-mmap24-2-Relax-condition-a-bit.patch | 68 ++ meta/recipes-extended/ltp/ltp_20180515.bb | 1 + 2 files changed, 69 insertions(+) create mode 10064

[OE-core] [PATCH] ltp: kernel/syscall/setrlimit05.c: use a legal bad address for mips

2018-11-07 Thread Hongzhi.Song
ned-off-by: Hongzhi.Song --- ...t05-Use-another-method-to-get-bad-address.patch | 61 ++ meta/recipes-extended/ltp/ltp_20180515.bb | 1 + 2 files changed, 62 insertions(+) create mode 100644 meta/recipes-extended/ltp/ltp/0001-setrlimit05-Use-another-method-

[OE-core] [V2 PATCH 0/1] ltp-setrlimit05.c: use a legal bad address for mips

2018-11-20 Thread Hongzhi.Song
V2: Remake the patch for ltp-20180926 which was ltp-20180505 at the time of the last commit. Hongzhi.Song (1): ltp: Use a legal bad address for mips in setrlimit05.c ...t05-Use-another-method-to-get-bad-address.patch | 61 ++ meta/recipes-extended/ltp

[OE-core] [V2 PATCH 1/1] ltp: Use a legal bad address for mips in setrlimit05.c

2018-11-20 Thread Hongzhi.Song
ned-off-by: Hongzhi.Song --- ...t05-Use-another-method-to-get-bad-address.patch | 61 ++ meta/recipes-extended/ltp/ltp_20180926.bb | 1 + 2 files changed, 62 insertions(+) create mode 100644 meta/recipes-extended/ltp/ltp/0001-setrlimit05-Use-another-method-

[OE-core] [meta][PATCH 1/2] meta runtime testcases: enable kernel-sample features for runtime tests

2018-06-28 Thread Hongzhi.Song
Enable kernel-sample features by default with the machine of qemu. Signed-off-by: Hongzhi.Song --- meta/recipes-kernel/linux/linux-yocto.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/recipes-kernel/linux/linux-yocto.inc b/meta/recipes-kernel/linux/linux-yocto.inc index

[OE-core] [meta][PATCH v5 0/2] Add kernel-sample tests for runtime test

2018-06-28 Thread Hongzhi.Song
V5: * remove a part of ksample.py code on 'OETestID' V4: * add support for qemu by default V3: * remove duplicated code V2: * use shared function to replace similar code Hongzhi.Song (2): meta runtime testcases: enable kernel-sample features for runtime tests Me

[OE-core] [meta][PATCH 2/2] Meta runtime cases: add testcases for kernel sample

2018-06-28 Thread Hongzhi.Song
, KERNEL_FEATURES_append += " features/kernel-sample/kernel-sample.scc" in local.conf. Signed-off-by: Hongzhi.Song --- meta/lib/oeqa/runtime/cases/ksample.py | 206 + 1 file changed, 206 insertions(+) create mode 100644 meta/lib/oeqa/runtime/cases/ksample.py di

[OE-core] [PATCH V2 2/2] kernel-selftest: add vm testcase to recipe

2018-07-06 Thread Hongzhi.Song
Add vm testcase to recipe, and sightly modify organization of code Signed-off-by: Hongzhi.Song --- .../kernel-selftest/kernel-selftest.bb | 62 +++--- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/meta/recipes-kernel/kernel-selftest/kernel

[OE-core] [PATCH V2 1/2] kernel-selftest: add it

2018-07-06 Thread Hongzhi.Song
From: Dengke Du The framework for kernel-selftest, this framework contains many aspect, such as bpf, we should enable bpf kernel feature, this enable bpf syscall. How to test? On target, enter directory: /opt/kselftest/bpf/, run "./test_align 0 11" this command test all the bpf align testcas

[OE-core] [PATCH V2 0/2] kernel-selftest: add it

2018-07-06 Thread Hongzhi.Song
): kernel-selftest: add it Hongzhi.Song (1): kernel-selftest: add vm testcase to recipe .../kernel-selftest/kernel-selftest.bb | 94 ++ meta/recipes-kernel/linux/linux-yocto.inc | 1 + 2 files changed, 95 insertions(+) create mode 100644 meta/recipes

[OE-core] [PATCH v3] kernel-selftest: Add a recipe on kernel selftest

2018-07-06 Thread Hongzhi.Song
+= "features/bpf/bpf.scc" Signed-off-by: Dengke Du Signed-off-by: Hongzhi.Song --- .../kernel-selftest/kernel-selftest.bb | 94 ++ 1 file changed, 94 insertions(+) create mode 100644 meta/recipes-kernel/kernel-selftest/kernel-selftest.bb diff --git a/me

[OE-core] [meta][PATCH] runtime selftest: test_trace_events_sample of ksample.py

2018-07-20 Thread Hongzhi.Song
The debug info can not be written to trace buffer immediately by thread. So we should sleep some seconds. Signed-off-by: Hongzhi.Song --- meta/lib/oeqa/runtime/cases/ksample.py | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/meta/lib/oeqa/runtime/cases

[OE-core] [meta][PATCH v2] fix the failure test_trace_events of ksample.py

2018-07-20 Thread Hongzhi.Song
v2: assert failure when timeout Hongzhi.Song (1): runtime selftest: test_trace_events_sample of ksample.py meta/lib/oeqa/runtime/cases/ksample.py | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) -- 2.8.1

[OE-core] [meta][PATCH] runtime selftest: test_trace_events_sample of ksample.py

2018-07-20 Thread Hongzhi.Song
The debug info can not be written to trace buffer immediately by thread. So we should sleep some seconds. Signed-off-by: Hongzhi.Song --- meta/lib/oeqa/runtime/cases/ksample.py | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/meta/lib/oeqa/runtime/cases

[OE-core] [meta-oe][PATCH v3 0/1] snappy: add a new recipe

2018-07-25 Thread Hongzhi.Song
v3: modify license BSD-3 Hongzhi.Song (1): snappy: add a new recipe meta-oe/recipes-extended/snappy/snappy_1.1.7.bb | 21 + 1 file changed, 21 insertions(+) create mode 100644 meta-oe/recipes-extended/snappy/snappy_1.1.7.bb -- 2.11.0

[OE-core] [PATCH v3 1/1] snappy: add a new recipe

2018-07-25 Thread Hongzhi.Song
Snappy is a compression/decompression library. It does not aim for maximum compression, or compatibility with any other compression library; instead, it aims for very high speeds and reasonable compression. Signed-off-by: Hongzhi.Song --- meta-oe/recipes-extended/snappy/snappy_1.1.7.bb | 21

[OE-core] [oe-core][PATCH] poky-lsb: security_flags.inc

2018-07-31 Thread Hongzhi.Song
zation (-O) ^~~ Signed-off-by: Hongzhi.Song --- meta/conf/distro/include/security_flags.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/conf/distro/include/security_flags.inc b/meta/conf/distro/include/security_flags.inc index 6245e89ada..1c32fd3165 100644 --- a/meta/c

[OE-core] [oe-core][PATCH v4 0/3] udev-extraconf/mount.sh: add support to systemd

2018-08-01 Thread Hongzhi.Song
v4: Fix the recursively dependency for the systemd-mount v3: perfect syntax Hongzhi.Song (3): udev-extraconf/mount.sh: add support to systemd udev-extraconf/mount.sh: Fix the recursively dependency for the systemd-mount udev-extraconf/mount.sh: Skip the entry in /etc/fstab when

[OE-core] [oe-core][PATCH v4 1/3] udev-extraconf/mount.sh: add support to systemd

2018-08-01 Thread Hongzhi.Song
ch makes use of 'systemd-mount' to solve the above problem. [YOCTO #12644] Signed-off-by: Hongzhi.Song --- meta/recipes-core/udev/udev-extraconf/mount.sh | 55 +++--- 1 file changed, 50 insertions(+), 5 deletions(-) diff --git a/meta/recipes-core/udev/udev-e

[OE-core] [oe-core][PATCH 2/3] udev-extraconf/mount.sh: Fix the recursively dependency for the systemd-mount

2018-08-01 Thread Hongzhi.Song
trigger a recursively dependency like the following: dev-sda1.device -> run-media-sda1.mount -> dev-sda1.device Signed-off-by: Kevin Hao Signed-off-by: Hongzhi.Song --- meta/recipes-core/udev/udev-extraconf/mount.sh | 24 ++-- 1 file changed, 14 insertions(+), 10 del

[OE-core] [oe-core][PATCH 3/3] udev-extraconf/mount.sh: Skip the entry in /etc/fstab when using the systemd-mount

2018-08-01 Thread Hongzhi.Song
When using systemd, the systemd-fstab-generator would parse the /etc/fstab and create the corresponding unit dynamically. So we don't need to handle the ADD action for the partitions in /etc/fstab. Signed-off-by: Kevin Hao Signed-off-by: Hongzhi.Song --- meta/recipes-core/udev/udev-extr

[OE-core] [oe-core][PATCH v3 0/2] remove the case of hw breakpoint

2018-08-03 Thread Hongzhi.Song
v3: remove the case of hw breakpoint v2: test_trace_events_sample of ksample.py Hongzhi.Song (2): runtime selftest: test_trace_events_sample of ksample.py runtime selftest: remove the case of hw breakpoint meta/lib/oeqa/runtime/cases/ksample.py | 30 -- 1

[OE-core] [oe-core][PATCH v2 1/2] runtime selftest: test_trace_events_sample of ksample.py

2018-08-03 Thread Hongzhi.Song
The debug info can not be written to trace buffer immediately by thread. So we should sleep some seconds. Signed-off-by: Hongzhi.Song --- meta/lib/oeqa/runtime/cases/ksample.py | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/meta/lib/oeqa/runtime/cases

[OE-core] [oe-core][PATCH v3 2/2] runtime selftest: remove the case of hw breakpoint

2018-08-03 Thread Hongzhi.Song
Hw breakpoint is based on hardware. Signed-off-by: Hongzhi.Song --- meta/lib/oeqa/runtime/cases/ksample.py | 16 1 file changed, 16 deletions(-) diff --git a/meta/lib/oeqa/runtime/cases/ksample.py b/meta/lib/oeqa/runtime/cases/ksample.py index 26fbe9d8cb..5e8699a2e2 100644

[OE-core] [oe-core][v2 v3 PATCH 0/2] modify runtime test cases

2018-08-12 Thread Hongzhi.Song
v3: specify arch for the case of hw breakpoint v2: test_trace_events_sample of ksample.py Hongzhi.Song (2): runtime selftest: test_trace_events_sample of ksample.py runtime selftest: optimize the case of hw_breakpoint meta/lib/oeqa/runtime/cases/ksample.py | 19

[OE-core] [oe-core][PATCH v3 2/2] runtime selftest: optimize the case of hw_breakpoint

2018-08-12 Thread Hongzhi.Song
e not started, so we use dmesg to confirm. 3. Adding the operation of 'ls' triggers hardware breakpoint. Signed-off-by: Hongzhi.Song --- meta/lib/oeqa/runtime/cases/ksample.py | 5 + 1 file changed, 5 insertions(+) diff --git a/meta/lib/oeqa/runtime/cases/ksample.py b/meta/lib/oeq

[OE-core] [oe-core][PATCH v2 1/2] runtime selftest: test_trace_events_sample of ksample.py

2018-08-12 Thread Hongzhi.Song
The debug info can not be written to trace buffer immediately by thread. So we should sleep some seconds. Signed-off-by: Hongzhi.Song --- meta/lib/oeqa/runtime/cases/ksample.py | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/meta/lib/oeqa/runtime/cases

[OE-core] [oe-core][PATCH v4 0/2] runtime selftest: limit kernel hw bp arches

2018-08-15 Thread Hongzhi.Song
v4: modify commit, test cases with kvm, test qemuarm64 v3: specify arch for the case of hw breakpoint v2: test_trace_events_sample of ksample.py Hongzhi.Song (2): runtime selftest: test_trace_events_sample of ksample.py runtime selftest: limit kernel hw bp arches meta/lib/oeqa

[OE-core] [PATCH 2/2] runtime selftest: limit kernel hw bp arches

2018-08-15 Thread Hongzhi.Song
se v5 as default. qemuarm64: It has some problem that haven't been located so far. 2. Syslog maybe not started, so we use dmesg to confirm. 3. Running 'ls' to trigger the hardware breakpoint test. Signed-off-by: Hongzhi.Song --- meta/lib/oeqa/runtime/cases/ksample.py | 5

[OE-core] [PATCH 1/2] runtime selftest: test_trace_events_sample of ksample.py

2018-08-15 Thread Hongzhi.Song
The debug info can not be written to trace buffer immediately by thread. So we should sleep some seconds. Signed-off-by: Hongzhi.Song --- meta/lib/oeqa/runtime/cases/ksample.py | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/meta/lib/oeqa/runtime/cases

[OE-core] [oe-core][PATCH v4 0/2] runtime selftest: limit kernel hw bp arches

2018-08-16 Thread Hongzhi.Song
v4: modify commit, test cases with kvm, test qemuarm64 v3: specify arch for the case of hw breakpoint v2: test_trace_events_sample of ksample.py Hongzhi.Song (2): runtime selftest: test_trace_events_sample of ksample.py runtime selftest: limit kernel hw bp arches meta/lib/oeqa

[OE-core] [PATCH 1/2] runtime selftest: test_trace_events_sample of ksample.py

2018-08-16 Thread Hongzhi.Song
The debug info can not be written to trace buffer immediately by thread. So we should sleep some seconds. Signed-off-by: Hongzhi.Song --- meta/lib/oeqa/runtime/cases/ksample.py | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/meta/lib/oeqa/runtime/cases

[OE-core] [PATCH 2/2] runtime selftest: limit kernel hw bp arches

2018-08-16 Thread Hongzhi.Song
maybe not started, so we use dmesg to confirm. 3. Running 'ls' to trigger the hardware breakpoint test. Signed-off-by: Hongzhi.Song --- meta/lib/oeqa/runtime/cases/ksample.py | 5 + 1 file changed, 5 insertions(+) diff --git a/meta/lib/oeqa/runtime/cases/ksample.py b/meta/li

[OE-core] [PATCH 1/2] runtime selftest: test_trace_events_sample of ksample.py

2018-08-16 Thread Hongzhi.Song
The debug info can not be written to trace buffer immediately by thread. So we should sleep some seconds. Signed-off-by: Hongzhi.Song --- meta/lib/oeqa/runtime/cases/ksample.py | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/meta/lib/oeqa/runtime/cases

[OE-core] [PATCH 2/2] runtime selftest: limit kernel hw bp arches

2018-08-16 Thread Hongzhi.Song
maybe not started, so we use dmesg to confirm. 3. Running 'ls' to trigger the hardware breakpoint test. Signed-off-by: Hongzhi.Song --- meta/lib/oeqa/runtime/cases/ksample.py | 5 + 1 file changed, 5 insertions(+) diff --git a/meta/lib/oeqa/runtime/cases/ksample.py b/meta/li

[OE-core] [oe-core][PATCH v5 0/2] runtime selftest: limit kernel hw bp arches

2018-08-16 Thread Hongzhi.Song
v4 v5: modify commit, test cases with kvm, test qemuarm64 v3: specify arch for the case of hw breakpoint v2: test_trace_events_sample of ksample.py Hongzhi.Song (2): runtime selftest: test_trace_events_sample of ksample.py runtime selftest: limit kernel hw bp arches meta/lib

[OE-core] [oe-core][PATCH] runtime selftest: hw breakpoint case correct syntax

2018-08-20 Thread Hongzhi.Song
1. There is a wrong syntax. 2. Since last commit has exclude the arm64, so remove arm64. Signed-off-by: Hongzhi.Song --- meta/lib/oeqa/runtime/cases/ksample.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/lib/oeqa/runtime/cases/ksample.py b/meta/lib/oeqa/runtime

[OE-core] [oe-core][PATCH v2] Runtime selftest: hw breakpoint drops arm64, corrects syntax

2018-08-21 Thread Hongzhi.Song
1. Improve syntax in skip test output. 2. Do not run the test for arm64 because commit 176e50fb177dc40e4 did exclude arm64. Signed-off-by: Hongzhi.Song --- meta/lib/oeqa/runtime/cases/ksample.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/lib/oeqa/runtime/cases

[OE-core] [oe-core][PATCH] cryptodev-linux: Fixes a kernel crash observed with cipher-gcm test

2018-08-22 Thread Hongzhi.Song
The crypto API for AEAD ciphers changed in recent kernels, so that associated data is now part of both source and destination scatter gathers. The source, destination and associated data buffers need to be stiched accordingly for the operations to succeed. Signed-off-by: Hongzhi.Song

[OE-core] [PATCH] systemd: re-enable mount propagation for udevd

2018-02-21 Thread Hongzhi.Song
With MountFlags=slave, those mounts then become private to the systemd-udevd namespace and are no longer accessible from outside the namespace, which is not expected. Signed-off-by: Hongzhi.Song --- ...evd-re-enable-mount-propagation-for-udevd.patch | 33 ++ 1 file changed

[OE-core] [PATCH] systemd: re-enable mount propagation for udevd

2018-02-21 Thread Hongzhi.Song
With MountFlags=slave, those mounts then become private to the systemd-udevd namespace and are no longer accessible from outside the namespace, which is not expected. Signed-off-by: Hongzhi.Song --- ...evd-re-enable-mount-propagation-for-udevd.patch | 33 ++ meta/recipes

[OE-core] [PATCH v2] systemd: re-enable mount propagation for udevd

2018-02-22 Thread Hongzhi.Song
With MountFlags=slave, those mounts then become private to the systemd-udevd namespace and are no longer accessible from outside the namespace, which is not expected. Signed-off-by: Hongzhi.Song --- ...evd-re-enable-mount-propagation-for-udevd.patch | 33 ++ meta/recipes

[OE-core] [PATCH v3] systemd: re-enable mount propagation for udevd

2018-02-22 Thread Hongzhi.Song
d-off-by: Hongzhi.Song --- ...evd-re-enable-mount-propagation-for-udevd.patch | 33 ++ meta/recipes-core/systemd/systemd_234.bb | 1 + 2 files changed, 34 insertions(+) create mode 100644 meta/recipes-core/systemd/systemd/systemd-udevd-re-enable-mount-propagatio

[OE-core] [PATCH] systemd-udev: Add systemd-mount to mount.sh

2018-03-05 Thread Hongzhi.Song
operation to be executed by PID 1, and hence outside of the mount context of udev. Signed-off-by: Hongzhi.Song --- meta/recipes-core/udev/udev-extraconf/mount.sh | 61 +++--- 1 file changed, 56 insertions(+), 5 deletions(-) diff --git a/meta/recipes-core/udev/udev-extraconf

[OE-core] [PATCH] systemd-udev: Add systemd-mount to mount.sh

2018-03-06 Thread Hongzhi.Song
of udev. Signed-off-by: Hongzhi.Song --- meta/recipes-core/udev/udev-extraconf/mount.sh | 61 +++--- 1 file changed, 56 insertions(+), 5 deletions(-) diff --git a/meta/recipes-core/udev/udev-extraconf/mount.sh b/meta/recipes-core/udev/udev-extraconf/mount.sh index d760328