Hello.

I have two minor patches for powertop and a question

many-interupts
        Widen the field to allow for up to 999.99 interupts/second
        without offsetting the : column. (Me, i get 100+ interups as
        soon as I touch the mouse)

modprobe-module-loading
        Acknowledge that not ony insmod but also modprobe might load
        modules

On to the question - why does powertop try to hide the interupts that
are generated by powertop itself and by anything named tick_nohz_*?

/MF
Index: display.c
===================================================================
--- display.c	(revision 105)
+++ display.c	(working copy)
@@ -213,7 +213,7 @@
 					wattron(timerstat_window, A_BOLD);
 				else
 					wattroff(timerstat_window, A_BOLD);
-				mvwprintw(timerstat_window, i+1, 0," %5.1f%% (%4.1f)   %s ", lines[i].count * 100.0 / linectotal,
+				mvwprintw(timerstat_window, i+1, 0," %5.1f%% (%5.1f)   %s ", lines[i].count * 100.0 / linectotal,
 						lines[i].count * 1.0 / ticktime, 
 						lines[i].string);
 				}
Index: powertop.c
===================================================================
--- powertop.c	(revision 105)
+++ powertop.c	(working copy)
@@ -489,7 +489,8 @@
 			while (*c != 0 && *c == ' ')
 				c++;
 			func = c;
-			if (strcmp(process, "insmod") == 0)
+			if (strcmp(process, "insmod") == 0 ||
+			    strcmp(process, "modprobe") == 0)
 				process = "<kernel module>";
 			if (strcmp(process, "swapper") == 0)
 				process = "<kernel core>";
_______________________________________________
Power mailing list
[email protected]
http://www.bughost.org/mailman/listinfo/power

Reply via email to