Displaying 5 results from an estimated 5 matches for "nr_columns".
2016 Mar 19
1
[PATCH] tests/qemu: Add program for tracing and analyzing boot times.
...#39;);
+ }
+ }
+}
+
+static void
+print_analysis (void)
+{
+ double t = -1; /* Current time. */
+ /* Which columns contain activities that we are displaying now?
+ * -1 == unused column, else index of an activity
+ */
+ CLEANUP_FREE ssize_t *columns = NULL;
+ const size_t nr_columns = nr_activities;
+ size_t last_free_column = 0;
+
+ size_t i, j;
+ double smallest_next_t;
+ const double MAX_T = 1e20;
+
+ columns = malloc (nr_columns * sizeof (ssize_t));
+ if (columns == NULL) error (EXIT_FAILURE, errno, "malloc");
+ for (j = 0; j < nr_columns; ++j)
+ col...
2016 Mar 23
7
[PATCH v4 0/6] tests/qemu: Add program for tracing and analyzing boot times.
v4:
- Lots more analysis of the /init script and other parts.
- Display a list of the longest to shortest activities.
- Rebase on top of current head.
Rich.
2016 Mar 22
19
[PATCH v3 0/11] tests/qemu: Add program for tracing and analyzing boot times.
Lots of changes since v2, too much to remember or summarize.
Please ignore patch 11/11, it's just for my testing.
Rich.
2016 Mar 20
14
[PATCH v2 0/7] tests/qemu: Add program for tracing and analyzing boot times.
v1 was here:
https://www.redhat.com/archives/libguestfs/2016-March/thread.html#00157
Not running the 'hwclock' command reduces boot times considerably.
However I'm not sure if it is safe. See the question I posted on
qemu-devel:
http://thread.gmane.org/gmane.comp.emulators.qemu/402194
At the moment, about 50% of the time is consumed by SeaBIOS. Of this,
about ⅓rd is SGABIOS
2016 Apr 04
2
[PATCH 1/2] Use 'error' function consistently throughout.
...strndup (pvuuids[i], 32);
- if (!ret[i]) {
- perror ("strndup");
- exit (EXIT_FAILURE);
- }
+ if (!ret[i])
+ error (EXIT_FAILURE, errno, "strndup");
}
}
@@ -978,18 +963,14 @@ add_row (char **strings, size_t len)
assert (len <= NR_COLUMNS);
row = malloc (sizeof (char *) * len);
- if (row == NULL) {
- perror ("malloc");
- exit (EXIT_FAILURE);
- }
+ if (row == NULL)
+ error (EXIT_FAILURE, errno, "malloc");
for (i = 0; i < len; ++i) {
if (strings[i]) {
row[i] = strdup (strings[i]...