{"push_id":851431408,"size":1,"distinct_size":1,"ref":"refs/heads/M_staging","head":"9e4a6a55c0af101cb4de6351db472f2698531649","before":"044a7033dcd9398ef7c65636956ad3a19f20d4af","commits":[{"sha":"9e4a6a55c0af101cb4de6351db472f2698531649","author":{"email":"293abb6b76d7791c0732cc517d38c4b5c734b87f@redhat.com","name":"Arnaldo Carvalho de Melo"},"message":"perf header: Fixup reading of HEADER_NRCPUS feature\n\ncommit caa470475d9b59eeff093ae650800d34612c4379 upstream.\n\nThe original patch introducing this header wrote the number of CPUs available\nand online in one order and then swapped those values when reading, fix it.\n\nBefore:\n\n  # perf record usleep 1\n  # perf report --header-only | grep 'nrcpus \\(online\\|avail\\)'\n  # nrcpus online : 4\n  # nrcpus avail : 4\n  # echo 0 > /sys/devices/system/cpu/cpu2/online\n  # perf record usleep 1\n  # perf report --header-only | grep 'nrcpus \\(online\\|avail\\)'\n  # nrcpus online : 4\n  # nrcpus avail : 3\n  # echo 0 > /sys/devices/system/cpu/cpu1/online\n  # perf record usleep 1\n  # perf report --header-only | grep 'nrcpus \\(online\\|avail\\)'\n  # nrcpus online : 4\n  # nrcpus avail : 2\n\nAfter the fix, bringing back the CPUs online:\n\n  # perf report --header-only | grep 'nrcpus \\(online\\|avail\\)'\n  # nrcpus online : 2\n  # nrcpus avail : 4\n  # echo 1 > /sys/devices/system/cpu/cpu2/online\n  # perf record usleep 1\n  # perf report --header-only | grep 'nrcpus \\(online\\|avail\\)'\n  # nrcpus online : 3\n  # nrcpus avail : 4\n  # echo 1 > /sys/devices/system/cpu/cpu1/online\n  # perf record usleep 1\n  # perf report --header-only | grep 'nrcpus \\(online\\|avail\\)'\n  # nrcpus online : 4\n  # nrcpus avail : 4\n\nAcked-by: Namhyung Kim <namhyung@kernel.org>\nCc: Adrian Hunter <adrian.hunter@intel.com>\nCc: Borislav Petkov <bp@suse.de>\nCc: David Ahern <dsahern@gmail.com>\nCc: Frederic Weisbecker <fweisbec@gmail.com>\nCc: Jiri Olsa <jolsa@kernel.org>\nCc: Kan Liang <kan.liang@intel.com>\nCc: Stephane Eranian <eranian@google.com>\nCc: Wang Nan <wangnan0@huawei.com>\nFixes: fbe96f29ce4b (\"perf tools: Make perf.data more self-descriptive (v8)\")\nLink: http://lkml.kernel.org/r/20150911153323.GP23511@kernel.org\nSigned-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>\nSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>\nSigned-off-by: Pranav Vashi <neobuddy89@gmail.com>","distinct":true,"url":"https://api.github.com/repos/Starship-Android/starship_kernel_moto_shamu/commits/9e4a6a55c0af101cb4de6351db472f2698531649"}]}