%global debug_package %{nil} Name: etmem Version: 1.0 Release: 6 Summary: etmem License: Mulan PSL v2 Source0: etmem-%{version}.tar.gz Patch0: 0001-fix-64K-pagesize-scan-problem.patch Patch1: 0002-change-aarch64-march-to-armv8-a.patch Patch2: 0003-update-README.md.patch Patch3: 0004-add-cslide-for-etmem.patch Patch4: 0005-fix-code-check-problems.patch Patch5: 0006-remove-unused-share-vmas-merge.patch Patch6: 0007-fix-error-when-open-idle_pages-failed.patch Patch7: 0008-fix-memleak.patch Patch8: 0009-fix-some-bugs-that-occur-when-execute-obj-add-or-del.patch Patch9: 0010-clean-code.patch Patch10: 0011-wait-for-next-period-when-error-occurs-in-this-perio.patch Patch11: 0012-add-recursive-in-etmemd_get_task_pids.patch Patch12: 0013-check-permission-according-cmd-to-be-executed.patch Patch13: 0014-stat-pages-info-early-only-replace-cold-mem-in-hot-nodes.patch Patch14: 0015-limit-mig_quota-hot_reserve-to-0-INT_MAX.patch Patch15: 0016-add-some-dfx-info.patch Patch16: 0017-do-not-stop-the-process-when-failed-to-delete-any-obj.patch Patch17: 0018-fix-code-check-warnning.patch Patch18: 0019-accept-review-advise.patch Patch19: 0020-revert-socket-permission-check.patch Patch20: 0021-add-thirdpart-engine.patch Patch21: 0022-export-symbols-for-user-defined-thirdparty-engine.patch Patch22: 0023-accept-review-advise.patch Patch23: 0024-correct-etmemd-name.patch Patch24: 0025-add-support-for-systemctl-mode-to-start-etmem.patch Patch25: 0026-add-scan-library.patch Patch26: 0027-add-ign_host-to-ignore-host-access-when-scan-vm.patch Patch27: 0028-openlog-with-same-ident.patch Patch28: 0029-accept-advise.patch Patch29: 0030-notify-rpc-success-with-finish-tag.patch Patch30: 0031-remove-node_watermark.patch Patch31: 0032-print-all-log-to-stdout.patch Patch32: 0033-accept-review-advise.patch Patch33: 0034-fix-open-swap_pages-failure.patch Patch34: 0035-give-the-correct-example-of-config-file.patch Patch35: 0036-check-if-start_task-is-NULL-before-call-it.patch Patch36: 0037-correct-max_threads-when-max_threads-is-0.patch Patch37: 0038-fix-etmem-help-return-error.patch Patch38: 0039-check-if-eng_mgt_func-is-NULL-before-use-it.patch Patch39: 0040-make-code-clean-for-etmem.patch Patch40: 0041-return-error-if-migrate-failed-and-clean-code.patch Patch41: 0042-etmemd-fix-memleak-and-clean-code.patch Patch42: 0043-update-README.md.patch Patch43: 0044-etmem-cleancode.patch Patch44: 0045-add-dram_percent-to-etmem.patch Patch45: 0046-Fix-memory-leak-in-slide-engine.patch Patch46: 0047-move-all-the-files-to-sub-directory-of-etmem.patch Patch47: 0048-Commit-new-features-memRouter-and-userswap-to-etmem.patch #Dependency BuildRequires: cmake gcc gcc-c++ BuildRequires: libboundscheck Requires: libboundscheck %description etmem module #Build sections %prep %autosetup -n etmem-%{version} -p1 %build mkdir -p build cd build cmake .. make %install mkdir -p $RPM_BUILD_ROOT%{_bindir} install -d $RPM_BUILD_ROOT%{_sysconfdir}/etmem/ install -m 0500 build/bin/etmem $RPM_BUILD_ROOT%{_bindir} install -m 0500 build/bin/etmemd $RPM_BUILD_ROOT%{_bindir} install -m 0600 conf/example_conf.yaml $RPM_BUILD_ROOT%{_sysconfdir}/etmem/ %files %defattr(-,root,root,0750) %{_bindir}/etmem %{_bindir}/etmemd %dir %{_sysconfdir}/etmem %{_sysconfdir}/etmem/example_conf.yaml %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %changelog * Mon Aug 1 2021 louhongxiang 1.0-6 - cancel write permission of root. * Mon May 24 2021 liubo 1.0-5 - add missing BuildRequires in etmem spec * Fri Apr 2 2021 louhongxiang 1.0-4 - modify README correctly * Sat Mar 30 2021 liubo 1.0-3 - Change aarch64 march to armv8-a * Thu Mar 18 2021 liubo 1.0-2 - Fix 64K pagesize scan problem * Thu Mar 18 2021 louhongxiang - Package init