Skip to contentSkip to conversation

patch to define PTRACE_KILL and PTRACE_CONT

LTP Yi Xu 2 participants 4 messages Oct 4, 2010 – Oct 6, 2010

lore
Share & tools
lore

Yi Xu

author
#0 lore raw

Hi,

this patch solves compiling error that appears with certain GCC version.

Regards,
Yi

Signature · 3 lines
Yi Xu                           [email protected]

SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)
kernel/syscalls/ptrace/ptrace.h renamed from kernel/syscalls/ptrace/ptrace.h.orig +9 -1
@@ -4,6 +4,15 @@
 
 #ifndef __LTP_PTRACE_H__
 #define __LTP_PTRACE_H__
+#endif
+
+#ifndef __PTRACE_KILL__
+#define __PTRACE_KILL__
+#endif
+
+#ifndef __PTRACE_CONT__
+#define __PTRACE_CONT__
+#endif
 
 #ifdef HAVE_SYS_PTRACE_H
 # include <sys/ptrace.h>
@@ -30,4 +39,3 @@ typedef struct pt_regs ptrace_regs;
 typedef struct user_regs_struct ptrace_regs;
 #endif
 
-#endif

------------------------------------------------------------------------------
Virtualization is moving to the mainstream and overtaking non-virtualized environment for deploying applications. Does it make network security easier or more difficult to achieve? Read this whitepaper to separate the two and get a better understanding.
http://p.sf.net/sfu/hp-phase2-d2d

_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#1 lore raw
Quoted 3 lines · Yi Xu

Hi,

this patch solves compiling error that appears with certain GCC version.

Hi Yi,

You most likely need to fix your headers or your compiler:

[gcooper@bayonetta /scratch/ltp]$ grep -r __PTRACE_KILL__ . [gcooper@bayonetta /scratch/ltp]$ grep -r __PTRACE_CONT__ . [gcooper@bayonetta /scratch/ltp]$

Nowhere in the sourcebase are those symbols defined / used (at least not directly).

Furthermore, rwatson@'s search indexer returns NIL for the symbol:

http://fxr.watson.org/fxr/trackident?v=linux-2.6;i=__PTRACE_KILL__

If you provided your error logs we might be able to help you...

Thanks,
-Garrett

------------------------------------------------------------------------------
Virtualization is moving to the mainstream and overtaking non-virtualized environment for deploying applications. Does it make network security easier or more difficult to achieve? Read this whitepaper to separate the two and get a better understanding.
http://p.sf.net/sfu/hp-phase2-d2d
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

author
#2 lore raw

Hi,

I couldn't reproduce it. :(
You could ignore the patch.

thanks,
Yi

Quoted 24 lines · Garrett Cooper
Quoted 3 lines · Yi Xu

Hi,

this patch solves compiling error that appears with certain GCC version.

Hi Yi,

You most likely need to fix your headers or your compiler:

[gcooper@bayonetta /scratch/ltp]$ grep -r __PTRACE_KILL__ . [gcooper@bayonetta /scratch/ltp]$ grep -r __PTRACE_CONT__ . [gcooper@bayonetta /scratch/ltp]$

Nowhere in the sourcebase are those symbols defined / used (at least not directly).

Furthermore, rwatson@'s search indexer returns NIL for the symbol:

http://fxr.watson.org/fxr/trackident?v=linux-2.6;i=__PTRACE_KILL__

If you provided your error logs we might be able to help you...

Thanks,
-Garrett

Signature · 17 lines
Yi Xu                           [email protected]
SUSE LINUX Products GmbH        R&D-OPS-QA
Maxfeldstr. 5                   +49 (0)911-74053 - 607
D-90409 Nuernberg               http://www.suse.de

SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
#3 lore raw
Quoted 4 lines · Yi Xu

Hi,

I couldn't reproduce it. :(
You could ignore the patch.

Ok -- thanks for the feedback.
Cheers,
-Garrett

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list