mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-25 10:59:05 +00:00
abf917cd91
If we want to stop the tick further idle, we need to be able to account the cputime without using the tick. Virtual based cputime accounting solves that problem by hooking into kernel/user boundaries. However implementing CONFIG_VIRT_CPU_ACCOUNTING require low level hooks and involves more overhead. But we already have a generic context tracking subsystem that is required for RCU needs by archs which plan to shut down the tick outside idle. This patch implements a generic virtual based cputime accounting that relies on these generic kernel/user hooks. There are some upsides of doing this: - This requires no arch code to implement CONFIG_VIRT_CPU_ACCOUNTING if context tracking is already built (already necessary for RCU in full tickless mode). - We can rely on the generic context tracking subsystem to dynamically (de)activate the hooks, so that we can switch anytime between virtual and tick based accounting. This way we don't have the overhead of the virtual accounting when the tick is running periodically. And one downside: - There is probably more overhead than a native virtual based cputime accounting. But this relies on hooks that are already set anyway. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Ingo Molnar <mingo@kernel.org> Cc: Li Zhong <zhong@linux.vnet.ibm.com> Cc: Namhyung Kim <namhyung.kim@lge.com> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Paul Gortmaker <paul.gortmaker@windriver.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Thomas Gleixner <tglx@linutronix.de>
308 lines
7.2 KiB
Plaintext
308 lines
7.2 KiB
Plaintext
CONFIG_PPC64=y
|
|
CONFIG_PPC_BOOK3E_64=y
|
|
# CONFIG_VIRT_CPU_ACCOUNTING_NATIVE is not set
|
|
CONFIG_SMP=y
|
|
CONFIG_NR_CPUS=256
|
|
CONFIG_EXPERIMENTAL=y
|
|
CONFIG_SYSVIPC=y
|
|
CONFIG_POSIX_MQUEUE=y
|
|
CONFIG_BSD_PROCESS_ACCT=y
|
|
CONFIG_TASKSTATS=y
|
|
CONFIG_TASK_DELAY_ACCT=y
|
|
CONFIG_TASK_XACCT=y
|
|
CONFIG_TASK_IO_ACCOUNTING=y
|
|
CONFIG_AUDIT=y
|
|
CONFIG_AUDITSYSCALL=y
|
|
CONFIG_IKCONFIG=y
|
|
CONFIG_IKCONFIG_PROC=y
|
|
CONFIG_LOG_BUF_SHIFT=19
|
|
CONFIG_CGROUPS=y
|
|
CONFIG_CGROUP_DEVICE=y
|
|
CONFIG_CPUSETS=y
|
|
CONFIG_CGROUP_CPUACCT=y
|
|
CONFIG_RESOURCE_COUNTERS=y
|
|
CONFIG_CGROUP_MEMCG=y
|
|
CONFIG_CGROUP_MEMCG_SWAP=y
|
|
CONFIG_NAMESPACES=y
|
|
CONFIG_RELAY=y
|
|
CONFIG_BLK_DEV_INITRD=y
|
|
CONFIG_INITRAMFS_SOURCE=""
|
|
CONFIG_RD_BZIP2=y
|
|
CONFIG_RD_LZMA=y
|
|
CONFIG_INITRAMFS_COMPRESSION_GZIP=y
|
|
CONFIG_KALLSYMS_ALL=y
|
|
CONFIG_EMBEDDED=y
|
|
CONFIG_PERF_EVENTS=y
|
|
CONFIG_PROFILING=y
|
|
CONFIG_OPROFILE=y
|
|
CONFIG_KPROBES=y
|
|
CONFIG_MODULES=y
|
|
CONFIG_MODULE_FORCE_LOAD=y
|
|
CONFIG_MODULE_UNLOAD=y
|
|
CONFIG_MODULE_FORCE_UNLOAD=y
|
|
CONFIG_MODVERSIONS=y
|
|
CONFIG_MODULE_SRCVERSION_ALL=y
|
|
CONFIG_SCOM_DEBUGFS=y
|
|
CONFIG_PPC_A2_DD2=y
|
|
CONFIG_KVM_GUEST=y
|
|
CONFIG_NO_HZ=y
|
|
CONFIG_HIGH_RES_TIMERS=y
|
|
CONFIG_HZ_100=y
|
|
# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
|
|
CONFIG_BINFMT_MISC=y
|
|
CONFIG_NUMA=y
|
|
# CONFIG_MIGRATION is not set
|
|
CONFIG_PPC_64K_PAGES=y
|
|
CONFIG_SCHED_SMT=y
|
|
CONFIG_CMDLINE_BOOL=y
|
|
CONFIG_CMDLINE=""
|
|
# CONFIG_SECCOMP is not set
|
|
CONFIG_PCIEPORTBUS=y
|
|
# CONFIG_PCIEASPM is not set
|
|
CONFIG_PCI_MSI=y
|
|
CONFIG_PACKET=y
|
|
CONFIG_UNIX=y
|
|
CONFIG_XFRM_USER=m
|
|
CONFIG_XFRM_SUB_POLICY=y
|
|
CONFIG_XFRM_STATISTICS=y
|
|
CONFIG_NET_KEY=m
|
|
CONFIG_NET_KEY_MIGRATE=y
|
|
CONFIG_INET=y
|
|
CONFIG_IP_MULTICAST=y
|
|
CONFIG_IP_ADVANCED_ROUTER=y
|
|
CONFIG_IP_ROUTE_MULTIPATH=y
|
|
CONFIG_IP_ROUTE_VERBOSE=y
|
|
CONFIG_IP_PNP=y
|
|
CONFIG_IP_PNP_DHCP=y
|
|
CONFIG_IP_PNP_BOOTP=y
|
|
CONFIG_NET_IPIP=y
|
|
CONFIG_IP_MROUTE=y
|
|
CONFIG_IP_PIMSM_V1=y
|
|
CONFIG_IP_PIMSM_V2=y
|
|
CONFIG_SYN_COOKIES=y
|
|
CONFIG_INET_AH=m
|
|
CONFIG_INET_ESP=m
|
|
CONFIG_INET_IPCOMP=m
|
|
CONFIG_IPV6=y
|
|
CONFIG_IPV6_PRIVACY=y
|
|
CONFIG_IPV6_ROUTER_PREF=y
|
|
CONFIG_IPV6_ROUTE_INFO=y
|
|
CONFIG_IPV6_OPTIMISTIC_DAD=y
|
|
CONFIG_INET6_AH=y
|
|
CONFIG_INET6_ESP=y
|
|
CONFIG_INET6_IPCOMP=y
|
|
CONFIG_IPV6_MIP6=y
|
|
CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION=y
|
|
CONFIG_IPV6_TUNNEL=y
|
|
CONFIG_IPV6_MULTIPLE_TABLES=y
|
|
CONFIG_IPV6_SUBTREES=y
|
|
CONFIG_IPV6_MROUTE=y
|
|
CONFIG_IPV6_PIMSM_V2=y
|
|
CONFIG_NETFILTER=y
|
|
CONFIG_NF_CONNTRACK=m
|
|
CONFIG_NF_CONNTRACK_EVENTS=y
|
|
CONFIG_NF_CT_PROTO_UDPLITE=m
|
|
CONFIG_NF_CONNTRACK_FTP=m
|
|
CONFIG_NF_CONNTRACK_IRC=m
|
|
CONFIG_NF_CONNTRACK_TFTP=m
|
|
CONFIG_NF_CT_NETLINK=m
|
|
CONFIG_NETFILTER_XT_TARGET_CLASSIFY=m
|
|
CONFIG_NETFILTER_XT_TARGET_CONNMARK=m
|
|
CONFIG_NETFILTER_XT_TARGET_MARK=m
|
|
CONFIG_NETFILTER_XT_TARGET_NFLOG=m
|
|
CONFIG_NETFILTER_XT_TARGET_NFQUEUE=m
|
|
CONFIG_NETFILTER_XT_TARGET_TCPMSS=m
|
|
CONFIG_NETFILTER_XT_MATCH_COMMENT=m
|
|
CONFIG_NETFILTER_XT_MATCH_CONNBYTES=m
|
|
CONFIG_NETFILTER_XT_MATCH_CONNLIMIT=m
|
|
CONFIG_NETFILTER_XT_MATCH_CONNMARK=m
|
|
CONFIG_NETFILTER_XT_MATCH_CONNTRACK=m
|
|
CONFIG_NETFILTER_XT_MATCH_DCCP=m
|
|
CONFIG_NETFILTER_XT_MATCH_DSCP=m
|
|
CONFIG_NETFILTER_XT_MATCH_ESP=m
|
|
CONFIG_NETFILTER_XT_MATCH_HASHLIMIT=m
|
|
CONFIG_NETFILTER_XT_MATCH_HELPER=m
|
|
CONFIG_NETFILTER_XT_MATCH_IPRANGE=m
|
|
CONFIG_NETFILTER_XT_MATCH_LENGTH=m
|
|
CONFIG_NETFILTER_XT_MATCH_LIMIT=m
|
|
CONFIG_NETFILTER_XT_MATCH_MAC=m
|
|
CONFIG_NETFILTER_XT_MATCH_MARK=m
|
|
CONFIG_NETFILTER_XT_MATCH_MULTIPORT=m
|
|
CONFIG_NETFILTER_XT_MATCH_OWNER=m
|
|
CONFIG_NETFILTER_XT_MATCH_POLICY=m
|
|
CONFIG_NETFILTER_XT_MATCH_PKTTYPE=m
|
|
CONFIG_NETFILTER_XT_MATCH_QUOTA=m
|
|
CONFIG_NETFILTER_XT_MATCH_RATEEST=m
|
|
CONFIG_NETFILTER_XT_MATCH_REALM=m
|
|
CONFIG_NETFILTER_XT_MATCH_RECENT=m
|
|
CONFIG_NETFILTER_XT_MATCH_SCTP=m
|
|
CONFIG_NETFILTER_XT_MATCH_STATE=m
|
|
CONFIG_NETFILTER_XT_MATCH_STATISTIC=m
|
|
CONFIG_NETFILTER_XT_MATCH_STRING=m
|
|
CONFIG_NETFILTER_XT_MATCH_TCPMSS=m
|
|
CONFIG_NETFILTER_XT_MATCH_TIME=m
|
|
CONFIG_NETFILTER_XT_MATCH_U32=m
|
|
CONFIG_NF_CONNTRACK_IPV4=m
|
|
CONFIG_IP_NF_QUEUE=m
|
|
CONFIG_IP_NF_IPTABLES=m
|
|
CONFIG_IP_NF_MATCH_AH=m
|
|
CONFIG_IP_NF_MATCH_ECN=m
|
|
CONFIG_IP_NF_MATCH_TTL=m
|
|
CONFIG_IP_NF_FILTER=m
|
|
CONFIG_IP_NF_TARGET_REJECT=m
|
|
CONFIG_IP_NF_TARGET_LOG=m
|
|
CONFIG_IP_NF_TARGET_ULOG=m
|
|
CONFIG_NF_NAT=m
|
|
CONFIG_IP_NF_TARGET_MASQUERADE=m
|
|
CONFIG_IP_NF_TARGET_NETMAP=m
|
|
CONFIG_IP_NF_TARGET_REDIRECT=m
|
|
CONFIG_NET_TCPPROBE=y
|
|
# CONFIG_WIRELESS is not set
|
|
CONFIG_NET_9P=y
|
|
CONFIG_NET_9P_DEBUG=y
|
|
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
|
|
CONFIG_DEVTMPFS=y
|
|
CONFIG_MTD=y
|
|
CONFIG_MTD_CHAR=y
|
|
CONFIG_MTD_BLOCK=y
|
|
CONFIG_MTD_CFI=y
|
|
CONFIG_MTD_CFI_ADV_OPTIONS=y
|
|
CONFIG_MTD_CFI_LE_BYTE_SWAP=y
|
|
CONFIG_MTD_CFI_INTELEXT=y
|
|
CONFIG_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ONFIG_SERIO is not set
|
|
# CONFIG_VT is not set
|
|
CONFIG_DEVPTS_MULTIPLE_INSTANCES=y
|
|
CONFIG_SERIAL_8250=y
|
|
CONFIG_SERIAL_8250_CONSOLE=y
|
|
CONFIG_HW_RANDOM=y
|
|
CONFIG_RAW_DRIVER=y
|
|
CONFIG_MAX_RAW_DEVS=1024
|
|
# CONFIG_HWMON is not set
|
|
# CONFIG_VGA_ARB is not set
|
|
# CONFIG_USB_SUPPORT is not set
|
|
CONFIG_EDAC=y
|
|
CONFIG_EDAC_MM_EDAC=y
|
|
CONFIG_RTC_CLASS=y
|
|
CONFIG_RTC_DRV_DS1511=y
|
|
CONFIG_RTC_DRV_DS1553=y
|
|
CONFIG_EXT2_FS=y
|
|
CONFIG_EXT2_FS_XATTR=y
|
|
CONFIG_EXT2_FS_POSIX_ACL=y
|
|
CONFIG_EXT2_FS_SECURITY=y
|
|
CONFIG_EXT2_FS_XIP=y
|
|
CONFIG_EXT3_FS=y
|
|
# CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set
|
|
CONFIG_EXT3_FS_POSIX_ACL=y
|
|
CONFIG_EXT3_FS_SECURITY=y
|
|
CONFIG_EXT4_FS=y
|
|
# CONFIG_DNOTIFY is not set
|
|
CONFIG_FUSE_FS=y
|
|
CONFIG_ISO9660_FS=y
|
|
CONFIG_JOLIET=y
|
|
CONFIG_ZISOFS=y
|
|
CONFIG_UDF_FS=m
|
|
CONFIG_MSDOS_FS=y
|
|
CONFIG_VFAT_FS=y
|
|
CONFIG_PROC_KCORE=y
|
|
CONFIG_TMPFS=y
|
|
CONFIG_TMPFS_POSIX_ACL=y
|
|
CONFIG_CONFIGFS_FS=m
|
|
CONFIG_CRAMFS=y
|
|
CONFIG_NFS_FS=y
|
|
CONFIG_NFS_V3=y
|
|
CONFIG_NFS_V3_ACL=y
|
|
CONFIG_NFS_V4=y
|
|
CONFIG_NFS_V4_1=y
|
|
CONFIG_ROOT_NFS=y
|
|
CONFIG_CIFS=y
|
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
CONFIG_CRYPTO_LZO=m
|
|
# CONFIG_CRYPTO_ANSI_CPRNG is not set
|
|
CONFIG_VIRTUALIZATION=y
|