Displaying 4 results from an estimated 4 matches for "get_lscpu".
Did you mean:
get_cpu
2017 Mar 23
2
[PATCH] p2v: Use lscpu instead of libvirt to get CPU information.
...h"
@@ -65,235 +57,166 @@ free_cpu_config (struct cpu_config *cpu)
}
/**
- * Read flags from F</proc/cpuinfo>.
+ * Get the output of lscpu as a list of (key, value) pairs (as a
+ * flattened list of strings).
*/
-static void
-cpuinfo_flags (struct cpu_config *cpu)
+static char **
+get_lscpu (void)
{
const char *cmd;
CLEANUP_PCLOSE FILE *fp = NULL;
- CLEANUP_FREE char *flag = NULL;
+ CLEANUP_FREE char *line = NULL;
ssize_t len;
size_t buflen = 0;
+ char **ret = NULL;
+ size_t ret_size = 0;
- /* Get the flags, one per line. */
- cmd = "< /proc/cpuinfo "...
2017 Mar 24
0
Re: [PATCH] p2v: Use lscpu instead of libvirt to get CPU information.
...cpu_config *cpu)
> }
>
> /**
> - * Read flags from F</proc/cpuinfo>.
> + * Get the output of lscpu as a list of (key, value) pairs (as a
> + * flattened list of strings).
> */
> -static void
> -cpuinfo_flags (struct cpu_config *cpu)
> +static char **
> +get_lscpu (void)
> {
> const char *cmd;
> CLEANUP_PCLOSE FILE *fp = NULL;
> - CLEANUP_FREE char *flag = NULL;
> + CLEANUP_FREE char *line = NULL;
> ssize_t len;
> size_t buflen = 0;
> + char **ret = NULL;
> + size_t ret_size = 0;
>
> - /* Get the flags, on...
2019 Dec 03
7
[p2v PATCH 0/6] Use GLib a bit more
In an effort to reduce the code, start to use few bits of GLib:
- replace the gnulib c-type module
- replace the gnulib getprogname module
- use g_spawn_sync to launch curl, and drop a file reading function
Pino Toscano (6):
Include glib.h in p2v.h
Use g_ascii_isspace instead of c_isspace from gnulib
Use g_get_prgname instead of getprogname from gnulib
build: remove no more used gnulib
2019 Sep 10
3
[PATCH 0/2] Remove virt-p2v from libguestfs
Now that virt-p2v has its own repository [1] and releases [2], it is
time to remove it from libguestfs.
[1] https://github.com/libguestfs/virt-p2v
[2] http://download.libguestfs.org/virt-p2v/
Pino Toscano (2):
Remove virt-p2v
Remove remaining virt-p2v bits
.gitignore | 4 -
Makefile.am | 7 +-
bash/Makefile.am