]> granicus.if.org Git - procps-ng/commit
top: exploit that library p-core/e-core identification
authorJim Warner <james.warner@comcast.net>
Wed, 28 Sep 2022 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@dropbear.xyz>
Wed, 28 Sep 2022 07:30:56 +0000 (17:30 +1000)
commit00f5c74b1bc583d37315fa094c6f50cef7961c0c
tree395936461b425fad9026cf172ff5745aea62b497
parent6e5119658989db9dbc74168985a1de7e0dc7f1fe
top: exploit that library p-core/e-core identification

I sure hope we won't disappoint the library with these
changes since we're only exploiting one of the two new
enumerators that the immediately prior patch provided.

Now top will be able to offer a visual clue as to each
cpu (thread actually) core association. Is it a P-core
offering multiple threads or a single threaded E-core.

We'll accomplish this feat with a subtle change to the
states portion ('t' toggle) of the summary area. Where
before processors were represented as 'Cpu', they will
now be displayed as 'CpP' (P-core) and 'CpE' (E-core).

[ assuming that new '5' command toggle has been used ]

There are also new provisions for filtering those cpus
by their core type association via the new '5' toggle.

Signed-off-by: Jim Warner <james.warner@comcast.net>
src/top/top.c
src/top/top.h
src/top/top_nls.c