• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/ltp-testsuite/0002-uClibc-ng-has-no-profil-support.patch
Erico NunesErico Nunes committed 5eab4215ca001 Oct 2016
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From 4ab7dc5fd201318e2a62dbd3ba1680b97034ec65 Mon Sep 17 00:00:00 2001
2
From: Erico Nunes <nunes.erico@gmail.com>
3
Date: Fri, 30 Sep 2016 17:45:03 +0200
4
Subject: [PATCH] uClibc-ng has no profil() support
5
​
6
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
7
[Erico: Rebase for ltp 20160920]
8
Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
9
---
10
 testcases/kernel/syscalls/profil/profil01.c | 9 +++++++++
11
 1 file changed, 9 insertions(+)
12
​
13
diff --git a/testcases/kernel/syscalls/profil/profil01.c b/testcases/kernel/syscalls/profil/profil01.c
14
index 2fc47aa..f8afd57 100644
15
--- a/testcases/kernel/syscalls/profil/profil01.c
16
+++ b/testcases/kernel/syscalls/profil/profil01.c
17
@@ -37,6 +37,9 @@
18
 #define PROFIL_BUFLEN (32*1024)
19
 
20
 char *TCID = "profil01";
21
+
22
+#if !defined(__UCLIBC__)
23
+
24
 int TST_TOTAL = 1;
25
 
26
 static volatile sig_atomic_t profil_done;
27
@@ -124,3 +127,9 @@ int main(int ac, char *av[])
28
 
29
    tst_exit();
30
 }
31
+#else /* systems that dont support profil */
32
+int main(void)
33
+{
34
+        tst_brkm(TCONF, NULL, "system doesn't have profil support");
35
+}
36
+#endif
37
-- 
38
2.7.4
39
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.