diff options
| -rw-r--r-- | meta-oe/recipes-kernel/oprofile/oprofile/0001-configure-Include-unistd.h-for-getpid-API.patch | 28 | ||||
| -rw-r--r-- | meta-oe/recipes-kernel/oprofile/oprofile_1.4.0.bb | 1 |
2 files changed, 29 insertions, 0 deletions
diff --git a/meta-oe/recipes-kernel/oprofile/oprofile/0001-configure-Include-unistd.h-for-getpid-API.patch b/meta-oe/recipes-kernel/oprofile/oprofile/0001-configure-Include-unistd.h-for-getpid-API.patch new file mode 100644 index 0000000000..0ac03bde50 --- /dev/null +++ b/meta-oe/recipes-kernel/oprofile/oprofile/0001-configure-Include-unistd.h-for-getpid-API.patch | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | From 46f0aadf80d5e28f587149b6e90c3ba005971f6e Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Fri, 2 Sep 2022 19:22:17 -0700 | ||
| 4 | Subject: [PATCH] configure: Include unistd.h for getpid API | ||
| 5 | |||
| 6 | This fixes the check for perf events support in configure | ||
| 7 | |||
| 8 | Upstream-Status: Pending | ||
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 10 | --- | ||
| 11 | configure.ac | 1 + | ||
| 12 | 1 file changed, 1 insertion(+) | ||
| 13 | |||
| 14 | diff --git a/configure.ac b/configure.ac | ||
| 15 | index e4f4024..3384628 100644 | ||
| 16 | --- a/configure.ac | ||
| 17 | +++ b/configure.ac | ||
| 18 | @@ -119,6 +119,7 @@ if test "$kernel_may_have_perf_events_support" = "yes"; then | ||
| 19 | #include <asm/unistd.h> | ||
| 20 | #include <sys/types.h> | ||
| 21 | #include <string.h> | ||
| 22 | + #include <unistd.h> | ||
| 23 | ]], | ||
| 24 | [[struct perf_event_attr attr; | ||
| 25 | pid_t pid; | ||
| 26 | -- | ||
| 27 | 2.37.3 | ||
| 28 | |||
diff --git a/meta-oe/recipes-kernel/oprofile/oprofile_1.4.0.bb b/meta-oe/recipes-kernel/oprofile/oprofile_1.4.0.bb index 23e7d3d5c3..e6eec0ab05 100644 --- a/meta-oe/recipes-kernel/oprofile/oprofile_1.4.0.bb +++ b/meta-oe/recipes-kernel/oprofile/oprofile_1.4.0.bb | |||
| @@ -30,6 +30,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \ | |||
| 30 | file://0008-include-linux-limits.h-for-MAX_INPUT.patch \ | 30 | file://0008-include-linux-limits.h-for-MAX_INPUT.patch \ |
| 31 | file://0009-Prevent-running-check-tests-on-host-if-cross-compili.patch \ | 31 | file://0009-Prevent-running-check-tests-on-host-if-cross-compili.patch \ |
| 32 | file://0010-oprofile-Determine-the-root-home-directory-dynamical.patch \ | 32 | file://0010-oprofile-Determine-the-root-home-directory-dynamical.patch \ |
| 33 | file://0001-configure-Include-unistd.h-for-getpid-API.patch \ | ||
| 33 | " | 34 | " |
| 34 | SRC_URI[sha256sum] = "7ba06f99d7c188389d20d1d5e53ee690c7733f87aa9af62bd664fa0ca235a412" | 35 | SRC_URI[sha256sum] = "7ba06f99d7c188389d20d1d5e53ee690c7733f87aa9af62bd664fa0ca235a412" |
| 35 | 36 | ||
