<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:317922109;
        mso-list-type:hybrid;
        mso-list-template-ids:764578870 -942124492 134807577 134807579 134807567 134807577 134807579 134807567 134807577 134807579;}
@list l0:level1
        {mso-level-number-format:roman-lower;
        mso-level-text:"%1\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:72.0pt;
        text-indent:-36.0pt;}
@list l1
        {mso-list-id:371853919;
        mso-list-type:hybrid;
        mso-list-template-ids:-1756191406 134807569 134807577 134807579 134807567 134807577 134807579 134807567 134807577 134807579;}
@list l1:level1
        {mso-level-text:"%1\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:18.0pt;
        text-indent:-18.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:12.0pt">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">I’m trying to apply patch ‘patch-2.6.28-lttng-0.85.tar.gz’ to the standard linux kernel 2.6.28 taken directly from linux.org. I’m afraid it has to be kernel 2.6.28 and not a latter version.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:-18.0pt;mso-list:l1 level1 lfo1">
<![if !supportLists]><span style="font-size:12.0pt"><span style="mso-list:Ignore">1)<span style="font:7.0pt "Times New Roman"">     
</span></span></span><![endif]><span style="font-size:12.0pt">Whilst the patch applies OK using ‘quilt push –a’ when I go to build the kernel, first performing  a ‘make xconfig’ then a ‘make uImage’ I get the following build error:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">arch/arm/kernel/kprobes.c: In function 'arch_remove_kprobe':<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">arch/arm/kernel/kprobes.c:95: error: 'kprobe_mutex' undeclared (first use in this function)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">arch/arm/kernel/kprobes.c:95: error: (Each undeclared identifier is reported only once<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">arch/arm/kernel/kprobes.c:95: error: for each function it appears in.)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">make[1]: *** [arch/arm/kernel/kprobes.o] Error 1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">make: *** [arch/arm/kernel] Error 2<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Is this known about and what is the fix for this?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:-18.0pt;mso-list:l1 level1 lfo1">
<![if !supportLists]><span style="font-size:12.0pt"><span style="mso-list:Ignore">2)<span style="font:7.0pt "Times New Roman"">     
</span></span></span><![endif]><span style="font-size:12.0pt">If I resolve this build error by:<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:72.0pt;text-indent:-36.0pt;mso-list:l0 level1 lfo2">
<![if !supportLists]><span style="font-size:12.0pt"><span style="mso-list:Ignore">i)<span style="font:7.0pt "Times New Roman"">                   
</span></span></span><![endif]><span style="font-size:12.0pt">Putting back the extern struct mutex kprobe_mutex in include/linux/kprobes.h<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:72.0pt;text-indent:-36.0pt;mso-list:l0 level1 lfo2">
<![if !supportLists]><span style="font-size:12.0pt"><span style="mso-list:Ignore">ii)<span style="font:7.0pt "Times New Roman"">                 
</span></span></span><![endif]><span style="font-size:12.0pt">Putting back the non-static declaration of kprobe_mutex in kernel/kprobes.c<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:18.0pt"><span style="font-size:12.0pt">Then build the kernel for arm-none-linux-gnueabi, it appears to build OK.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:18.0pt"><span style="font-size:12.0pt">Then build and install ltt-control-0.63-03012009 for arm-none-linux-gnueabi and install on my arm development board.
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:18.0pt"><span style="font-size:12.0pt">Then build and install lttv-0.12.3-17122008 on my laptop.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:18.0pt"><span style="font-size:12.0pt">When I run lttctl –C –w /tmp/trace1 trace1 on my arm dev board start a trace it appears to start. But when I run lttctl –D trace1 to stop the trace, the command seems to lock up
 and I have to ctrl C out of it. Looking at the trace1/ files, they are all 0 in size. I’m wondering if this lock up lttctl –D trace1 is related to how I resolved the kprobe problem?<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:18.0pt"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Paul<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:18.0pt"><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">This email and its attachments are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Picochip.
 If you are not the intended recipient of this email and its attachments, you must take no action based upon them, nor must you copy or show them to anyone. Please contact the sender if you believe you have received this email in error.<br>
</font>
</body>
</html>