title: How to config GCOV for coverage Testing for a Driver(Ethernet Driver)?
body: <p>I am trying to use GCOV to test a Device Driver eg: Ethernet Driver wrote in C language.
  This driver is in Userspace and has a lot of Kernelspace calls.
  Using a Linux Ubuntu machine Ubuntu 20.04.3 LTS (GNU/Linux 5.4.0-96-generic x86_64)</p>
  <p>On compiling Driver code - Object file ( <em>.o file is generated for each c file) and combined (</em>.ko file). main() starts from startup code in my understanding. After loading the (*.ko ) file ethernet device needs to be tested functionally and a later coverage report shall be used.</p>
  <p>I have a <em>limited</em> knowledge of Linux. Articles that I have come across are executing programs in Userspace only.</p>
  <p><strong>Question1</strong>:</p>
  <p>I am not sure what are the steps to do so.  Please suggest.</p>
  <p>Appreciate your help in Advance.</p>