Commit Graph

58 Commits

Author SHA1 Message Date
Yushan Zhou f27728205d Fix the kernel perf package
Signed-off-by: Haisu Wang <haisuwang@tencent.com>
Signed-off-by: Yushan Zhou <katrinzhou@tencent.com>
2022-09-29 19:25:52 +08:00
Haisu Wang c04cc75c65 package: compat perf build on tmanager
libperf-jvmti.so doesn't build in tmanager.
Add a dummy libperf-jvmti.so in perf to compat two system.

Signed-off-by: Haisu Wang <haisuwang@tencent.com>
2022-09-28 16:14:02 +08:00
Haisu Wang 854a58783a package: include cpupower file to kernel-tools
After fixed the wide cast of perf package.
Move the cpupower files to kernel-tools.

Signed-off-by: Haisu Wang <haisuwang@tencent.com>
2022-09-27 16:54:03 +08:00
Haisu Wang 3f527002c7 package: remove the duplicate file included by perf
Remove the duplicate files from kernel-tools/bpftools but
included by perf.

Keep the python2, python-perf name and libraries location
for backward compatibility.

Signed-off-by: Haisu Wang <haisuwang@tencent.com>
2022-09-27 16:34:21 +08:00
Honglin Li ba0ddf48bc package: fix a warning/error in spec for x86/arm
Add %{_mandir}/man7/bpf-helpers.7.gz to solve
the bug with kernel.

Signed-off-by: Honglin Li <honglinli@tencent.com>
Reviewed-by: Haisu Wang <haisuwang@tencent.com>
2022-09-23 17:40:56 +08:00
sclaibin e88965af0f
Merge pull request #280 from Tencent/tk4/katrinzhou-fixpack
package: support tag startswith x86
2022-09-23 16:06:09 +08:00
Yushan Zhou 27a914a699 package: support tag startswith x86
Tmanager generates tag to build kernel when branch specified.
The tag starts with x86, which leads to the build process failing
to parse the tag.
Modify the generate-rpms.sh to support building with "x86-*" tags.

Signed-off-by: Yushan Zhou <katrinzhou@tencent.com>
2022-09-23 15:31:01 +08:00
Bin Lai d60e770a8d config: enable hyperv configurations for x86 platform
Hyperv is a native hypervisor that can create virtual machine on x86-64
platform. Enable all hyperv configurations for linux, then it can run
on windows hyperv.

Signed-off-by: Bin Lai <robinlai@tencent.com>
2022-09-23 15:16:12 +08:00
Yushan Zhou 32b6274570 generate-rpm.sh: unify package script
Modify generate-rpm.sh so that x86/arm can use the same tag.

Signed-off-by: Yushan Zhou <katrinzhou@tencent.com>
2022-09-22 16:16:11 +08:00
sclaibin 2005afdc6c
Merge pull request #270 from nick-wang/tk4-master
package: support repackage bpftool for tl2
2022-09-21 11:03:34 +08:00
Haisu Wang 6a9ae87797 package: support repackage bpftool for tl2
tl2 release system using repackage trick instead of full tl2
env to build kernel and other packages from scratch.

Update the perf tools spec to support build bpftool with
perf and kernel tools.

Signed-off-by: Haisu Wang <haisuwang@tencent.com>
2022-09-19 14:16:50 +08:00
Yushan Zhou c65aab2a4a perf spec: remove perf obj default
The bash script mkmakefile generates Makefile which includes itself.
It leads to dead cycle when build rpm packages.

Signed-off-by: Yushan Zhou <katrinzhou@tencent.com>
2022-09-19 10:13:51 +08:00
sclaibin 96aa2400b1
Merge pull request #265 from Tencent/haisu/tk4-public-bpftool
package: enable build bpftool with kernel
2022-09-16 15:01:20 +08:00
Haisu Wang 0a38cbfb23 package: support bpftool in tlinux2
In tlinux2, use python2-docutils instead of python3-docutils.

Signed-off-by: Haisu Wang <haisuwang@tencent.com>
2022-09-06 16:25:43 +08:00
Haisu Wang b68ab35a8d package: enable build bpftool with kernel
Build and deliver kernel builtin bpftool

Signed-off-by: Haisu Wang <haisuwang@tencent.com>
2022-09-06 09:48:49 +08:00
Bin Lai 691db8a9b0 config: enable CONFIG_ZRAM
ZRAM is a memory compression method that used for anon swap out/in,
it could help system reclaim more free memory when the applications
have consumed too much memory. So we introduce the ZRAM by kernel
modules, user could insmod it as needed.

Signed-off-by: Bin Lai <robinlai@tencent.com>
Reviewed-by: Bauerchen <bauerchen@tencent.com>
2022-08-24 16:58:06 +08:00
frankjpliu 42d6bf3ee2
Merge pull request #241 from minfree123/tk4/master
add iptables target WH and DNATLB
2022-08-08 15:08:10 +08:00
Haisu Wang 01a8184389 config: enable BTF for BPF CO-RE application in aarch64
BPF CO-RE applications like libbpf are need kernel
headers with all types, so it require BTF type
information built-in.

CONFIG_DEBUG_INFO_BTF have already enabled in x86_64,
enable in aarch64 to align.

Signed-off-by: Haisu Wang <haisuwang@tencent.com>
2022-08-02 10:51:48 +08:00
bobpeng 19d0e8960e add iptables target WH and DNATLB
target WH: add target ip:port into tcp option, eg:
iptables -t mangle -A OUTPUT -p tcp --dst 10.1.0.0/255.255.255.0 -j WH ;
target DNATLB: support dnat to mutiple destination,each destination with weight specified,
eg: iptables -t nat -A OUTPUT -p tcp --dst 10.1.0.0/255.255.255.0 --dport 4001 -j DNATLB
--to-destination 192.168.0.1:4001:10  --to-destination 192.168.0.2:4001:20
2022-07-14 09:32:50 +08:00
kidzhang 5310c252dd config: auto generate kasan config
generate-rpms.sh add parse parameters 'k' for build config of type.
usage: generate-rpms.sh -k config_type
config type is 'kasan' or 'nosign'.

Signed-off-by: kidzhang <kidzhang@tencent.com>
2022-06-29 15:30:41 +08:00
Bin Lai 13f2b1a994 sli: add the CONFIG_CGROUP_SLI configuration for SLI
SLI is used for cgroup performance monitoring, but it is not
necessary for some cases(such as running the linux without
cgroups on the embedded device). Therefor we add this
configuration to decide whether package SLI into kernel or not.

Signed-off-by: Bin Lai <robinlai@tencent.com>
2022-06-21 10:39:08 +08:00
Jianping Liu 433bcdb25b default/config: enable CONFIG_DEBUG_KMEMLEAK to debug kernel memory leak.
When running kmemleak , it will cost much CPU.
So, disable the auto scan of kmemleak, trigger kmemleak scan by manual if needed.

Signed-off-by: Jianping Liu <frankjpliu@tencent.com>
2022-06-07 11:09:41 +08:00
Jianping Liu b2d1e6a757 default/config: update x86 config by make menuconfig, without manual change
Signed-off-by: Jianping Liu <frankjpliu@tencent.com>
2022-06-07 11:07:23 +08:00
Jianping Liu ca3bfc2781 open CONFIG_JUMP_LABEL to optimize very unlikely/likely branches
This option enables a transparent branch optimization that
makes certain almost-always-true or almost-always-false branch
conditions even cheaper to execute within the kernel.
2022-05-18 20:09:51 +08:00
katrinzhou a76d2f8cda configs: enable CONFIG_BPF_KPROBE_OVERRIDE=y
Signed-off-by: katrinzhou <katrinzhou@tencent.com>
2022-04-01 10:58:59 +08:00
Kairui Song be440c7a91 config: enable VMMOUSE
Signed-off-by: Kairui Song <kasong@tencent.com>
2022-03-24 14:21:47 +08:00
Honglin Li faa1dadcbc config: set CONFIG_ENA_ETHERNET=m for x86
Signed-off-by: Honglin Li <honglinli@tencent.com>
2022-02-24 10:24:01 +08:00
Kairui Song ebc7ecb844 config: set CONFIG_BLK_DEV_RAM=m
CONFIG_BLK_DEV_RAM=y will create /dev/ram* by default which is unneeded,
just make it a module, ram block devices can still be created with
modprobe.

Signed-off-by: Kairui Song <kasong@tencent.com>
2021-12-30 14:33:07 +08:00
Mungerjiang e065537049 config: enable CONFIG_NUMA_AWARE_SPINLOCKS default
Signed-off-by: Munger Jiang <mungerjiang@tencent.com>
2021-12-20 11:43:06 +08:00
Hongbo Li e98c4900fc config: open CONFIG_NETFILTER_XT_TARGET_TPROXY
Signed-off-by: Hongbo Li <herberthbli@tencent.com>
2021-12-14 10:26:05 +08:00
Kairui Song 54fe74a6b1 config: enable NF_CT_NETLINK_TIMEOUT and NF_CONNTRACK_TIMEOUT
Enable NF_CT_NETLINK_TIMEOUT as a module, it depends on
NF_CONNTRACK_TIMEOUT so enable that as well.

Signed-off-by: Kairui Song <kasong@tencent.com>
2021-12-10 15:53:24 +08:00
katrinzhou 1265b88089 default/config: set CONFIG_TCM_USER2 as module 2021-11-02 16:19:31 +08:00
caelli b80247552b cgroupfs: support for proc and sys
export files such as cpuinfo, meminfo, stat and so on, which can by used
by containers.

Signed-off-by: caelli <caelli@tencent.com>
Reviewed-by: Peng Hao <flyingpeng@tencent.com>
Reviewed-by: Bin Lai <robinlai@tencent.com>
2021-11-01 15:00:06 +08:00
markwhwu 4bba8351f9 mm: enable transparent hugepage by default
Signed-off-by: Mark whwu <markwhwu@tencent.com>
2021-10-29 08:50:28 +00:00
Kaixu Xia 47f5d67346 config: set timer frequency to 1000 HZ by default 2021-09-22 17:46:37 +08:00
Kaixu Xia e6e20d423d package/spec: add the kernel-tools kernel-tools-libs packages
Add the kernel-tools kernel-tools-libs files.
2021-08-05 17:23:46 +08:00
rogerhui feff7ae94d add the package-requirement of grubby 2021-08-03 09:00:22 +00:00
Fuhai Wang a10085f69f config: open intel sgx config
Signed-off-by: Fuhai Wang <fuhaiwang@tencent.com>
2021-07-12 08:56:46 +00:00
Kaixu Xia 7de61cb2e3 config: enable RETOPLINE config for the Spectre issue
Enable RETOPLINE config for the Spectre mitigation.
2021-07-06 11:16:59 +08:00
denisecheng 1649a605e3 kabi: update kabi Modver file
Signed-off-by: Denise Cheng <denisecheng@tencent.com>
2021-06-23 07:24:18 +00:00
denisecheng 41c8ed76f7 kabi: kabi check support
add check-kabi scripts
  add -c option to enable kabi check in generate script(x86 version)
  add kabi Modver for arch x86_64 in gcc 8.3.1 version

Signed-off-by: Denise Cheng <denisecheng@tencent.com>
Signed-off-by: Fuhai Wang <Fuhaiwang@tencent.com>
2021-06-23 07:24:18 +00:00
denisecheng 7a9eb5f94c spec/x86: fix rpmbuild error
Fixes: a58601a0a ("spec/x86: fix ts3 installation")
Signed-off-by: denisecheng <denisecheng@tencent.com>
2021-06-23 07:24:18 +00:00
Kaixu Xia 96e329f55b package: use the correct description and packager
Use the correct description and packager.
2021-06-17 10:40:20 +08:00
Kaixu Xia 4a1052051d config: enable CONFIG_SCSI_SMARTPQI and CONFIG_VMXNET3
Open CONFIG_SCSI_SMARTPQI and CONFIG_VMXNET3 as module.
2021-06-02 17:31:05 +08:00
Kaixu Xia ca033c4908 Rebase to linux long term 5.4.119
Update to upstream 5.4.119.
2021-05-20 16:08:02 +08:00
Kaixu Xia bd105940ec config: open CONFIG_GENEVE as module
Open CONFIG_GENEVE as module.
2021-04-27 16:43:36 +08:00
Honglin Li 75709b0882 spec/x86: modify perf-tlinux.spec
Signed-off-by: Honglin Li <honglinli@tencent.com>
2021-04-12 09:13:28 +00:00
Kaixu Xia 58c1e28d14 Rebase to linux long term 5.4.109
Update to upstream 5.4.109.
2021-04-12 12:53:32 +08:00
Honglin Li 2f000a7457 generate-rpms: modify the name of the kernel tag for x86 and arm64
Signed-off-by: Honglin Li <honglinli@tencent.com>
2021-04-07 06:53:59 +00:00
Hongbo Li 5eee46c539 mellanox: add x86 driver
Add mellanox x86 driver for 5.4 public kernel.

Signed-off-by: Hongbo Li <herberthbli@tencent.com>
2021-03-18 07:09:21 +00:00