add_command 5392 tools/power/x86/turbostat/turbostat.c void parse_add_command(char *add_command) add_command 5403 tools/power/x86/turbostat/turbostat.c while (add_command) { add_command 5405 tools/power/x86/turbostat/turbostat.c if (sscanf(add_command, "msr0x%x", &msr_num) == 1) add_command 5408 tools/power/x86/turbostat/turbostat.c if (sscanf(add_command, "msr%d", &msr_num) == 1) add_command 5411 tools/power/x86/turbostat/turbostat.c if (*add_command == '/') { add_command 5412 tools/power/x86/turbostat/turbostat.c path = add_command; add_command 5416 tools/power/x86/turbostat/turbostat.c if (sscanf(add_command, "u%d", &width) == 1) { add_command 5421 tools/power/x86/turbostat/turbostat.c if (!strncmp(add_command, "cpu", strlen("cpu"))) { add_command 5425 tools/power/x86/turbostat/turbostat.c if (!strncmp(add_command, "core", strlen("core"))) { add_command 5429 tools/power/x86/turbostat/turbostat.c if (!strncmp(add_command, "package", strlen("package"))) { add_command 5433 tools/power/x86/turbostat/turbostat.c if (!strncmp(add_command, "cycles", strlen("cycles"))) { add_command 5437 tools/power/x86/turbostat/turbostat.c if (!strncmp(add_command, "seconds", strlen("seconds"))) { add_command 5441 tools/power/x86/turbostat/turbostat.c if (!strncmp(add_command, "usec", strlen("usec"))) { add_command 5445 tools/power/x86/turbostat/turbostat.c if (!strncmp(add_command, "raw", strlen("raw"))) { add_command 5449 tools/power/x86/turbostat/turbostat.c if (!strncmp(add_command, "delta", strlen("delta"))) { add_command 5453 tools/power/x86/turbostat/turbostat.c if (!strncmp(add_command, "percent", strlen("percent"))) { add_command 5458 tools/power/x86/turbostat/turbostat.c if (sscanf(add_command, "%18s,%*s", name_buffer) == 1) { /* 18 < NAME_BYTES */ add_command 5468 tools/power/x86/turbostat/turbostat.c add_command = strchr(add_command, ','); add_command 5469 tools/power/x86/turbostat/turbostat.c if (add_command) { add_command 5470 tools/power/x86/turbostat/turbostat.c *add_command = '\0'; add_command 5471 tools/power/x86/turbostat/turbostat.c add_command++;