<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>I tried the following command for regular C source files:</p>
<p></p>
<pre style="" class="lang-cpp prettyprint prettyprinted"><code><span class="pln">clang</span><span class="pun">-3.5</span><span class="pln"> </span><span class="pun">-</span><span class="pln">S </span><span class="pun">-</span><span class="pln">emit</span><span class="pun">-</span><span class="pln">llvm hello</span><span class="pun">.</span><span class="pln">c </span><span class="pun">-</span><span class="pln">o </span><span class="pun">-</span><span class="pln"> </span><span class="pun">|</span><span class="pln"> opt </span><span class="pun">-</span><span class="pln">analyze </span><span class="pun">-</span><span class="pln">dot</span><span class="pun">-</span><span class="pln">callgraph</span></code></pre>
<p></p>
<p>and it worked.</p>
<p><br>
</p>
<p>Now, I'm trying to do the same with linux device driver usbmouse.c (linux-4.1.1/drivers/hid/usbhid/). I tried the following make command:</p>
<p><br>
</p>
<p>make CC=clang-3.5 SUBDIRS=drivers/hid/usbhid/ CONFIG_USB_MOUSE=m modules</p>
<p><br>
</p>
<p>It gave several warnings, but nevertheless, looked like it compiled.</p>
<p>Could anybody please guide me on how I can modify the Makefile so as to generate callgraphs?<br>
</p>
<p><br>
</p>
<p>Thanks</p>
<p>Regards<br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<b><font face="Times New Roman, Times, serif">Naveen </font></b></div>
</div>
</div>
</div>
</body>
</html>