From 29bac892ad447ab9ad03eb6fe0681aab941eae32 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Tue, 16 Feb 2021 01:02:52 +0300 Subject: [PATCH] Add .gitignore --- .gitignore | 18 +++++++++++++++++ lambda_size.cpp | 51 ----------------------------------------------- test-build-el7.sh | 34 ------------------------------- 3 files changed, 18 insertions(+), 85 deletions(-) create mode 100644 .gitignore delete mode 100644 lambda_size.cpp delete mode 100644 test-build-el7.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..15590810 --- /dev/null +++ b/.gitignore @@ -0,0 +1,18 @@ +*.o +*.so +package-lock.json +fio +qemu +osd +stub_osd +stub_uring_osd +stub_bench +osd_test +osd_peering_pg_test +dump_journal +nbd_proxy +rm_inode +test_allocator +test_blockstore +test_shit +osd_rmw_test diff --git a/lambda_size.cpp b/lambda_size.cpp deleted file mode 100644 index 1d939238..00000000 --- a/lambda_size.cpp +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Vitaliy Filippov, 2019+ -// License: VNPL-1.1 (see README.md for details) - -#include -#include -#include -#include // for malloc() and free() -using namespace std; - -// replace operator new and delete to log allocations -void* operator new(std::size_t n) -{ - cout << "Allocating " << n << " bytes" << endl; - return malloc(n); -} - -void operator delete(void* p) throw() -{ - free(p); -} - -class test -{ -public: - std::string s; - void a(std::function & f, const char *str) - { - auto l = [this, str]() { cout << str << " ? " << s << " from this\n"; }; - cout << "Assigning lambda3 of size " << sizeof(l) << endl; - f = l; - } -}; - -int main() -{ - std::array arr1; - auto lambda1 = [arr1](){}; - cout << "Assigning lambda1 of size " << sizeof(lambda1) << endl; - std::function f1 = lambda1; - - std::array arr2; - auto lambda2 = [arr2](){}; - cout << "Assigning lambda2 of size " << sizeof(lambda2) << endl; - std::function f2 = lambda2; - - test t; - std::function f3; - t.s = "str"; - t.a(f3, "huyambda"); - f3(); -} diff --git a/test-build-el7.sh b/test-build-el7.sh deleted file mode 100644 index f9920a7f..00000000 --- a/test-build-el7.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash - -# Cheatsheet for CentOS 7 packaging (not a build script) - -set -e -rm -f /etc/yum.repos.d/CentOS-Media.repo -yum -y --enablerepo=extras install centos-release-scl epel-release -yum -y --enablerepo='*' install devtoolset-9-gcc-c++ devtoolset-9-libatomic-devel gperftools-devel -yumdownloader --source qemu -yumdownloader --source fio -yum-builddep -y --enablerepo='*' qemu -yum -y install rpm-build -. /opt/rh/devtoolset-9/enable -rpm --nomd5 -i qemu*.src.rpm -rpm --nomd5 -i fio*.src.rpm -cd ~/rpmbuild/SPECS -rpmbuild -bp fio.spec -perl -i -pe 's/^make V=1/exit 1; make V=1/' qemu.spec -rpmbuild -bc qemu.spec -perl -i -pe 's/^exit 1; make V=1/make V=1/' qemu.spec -cd ~/rpmbuild/BUILD/qemu*/ -make qapi-types.h -mkdir -p ~/vitastor/qemu/b/qemu -cp config-host.h ~/vitastor/qemu/b/qemu -cp qapi-types.h ~/vitastor/qemu/b/qemu -cp -r include ~/vitastor/qemu -cd ~/vitastor -sh copy-qemu-includes.sh -mv qemu qemu-old -mv qemu-copy qemu -ln -s ~/rpmbuild/BUILD/fio*/ fio -sh copy-fio-includes.sh -rm fio -mv fio-copy fio