Skip to contentSkip to conversation

uClibc-ng has no profil() support

PATCH New Petr Vorel 2 participants 2 messages Oct 2, 2017

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

PATCH 1/1 uClibc-ng has no profil() support

From: Erico Nunes <[email protected]>

Patch taken from buildroot project (thanks!).

---
I have rewritting to new API and use TST_TEST_TCONF() in my TODO list.

---
 testcases/kernel/syscalls/profil/profil01.c | 9 +++++++++
 1 file changed, 9 insertions(+)
testcases/kernel/syscalls/profil/profil01.c +9 -0
index 2fc47aaf5..f8afd57bf 100644
@@ -37,6 +37,9 @@
 #define PROFIL_BUFLEN (32*1024)
 
 char *TCID = "profil01";
+
+#if !defined(__UCLIBC__)
+
 int TST_TOTAL = 1;
 
 static volatile sig_atomic_t profil_done;
@@ -124,3 +127,9 @@ int main(int ac, char *av[])
 
 	tst_exit();
 }
+#else /* systems that dont support profil */
+int main(void)
+{
+        tst_brkm(TCONF, NULL, "system doesn't have profil support");
+}
+#endif
Signature · 1 line
2.14.1
#1 lore raw

PATCH 1/1 uClibc-ng has no profil() support

Hi!
I guess that there may be more libc implementations without profil() than just uclibc, can we turn this into configure check instead?

Signature · 2 lines
Cyril Hrubis
[email protected]