From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6730113598409932800 X-Received: by 2002:a37:9ec5:: with SMTP id h188mr2488752qke.93.1566976680201; Wed, 28 Aug 2019 00:18:00 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:620a:129b:: with SMTP id w27ls733432qki.1.gmail; Wed, 28 Aug 2019 00:17:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8d1iOVXoxwb0cISATDwoymmtPQl0DecRJ4kXwx2lt9i627sb+q6UjlxyRpuQ57njJUHuV X-Received: by 2002:a37:4051:: with SMTP id n78mr2396959qka.138.1566976679943; Wed, 28 Aug 2019 00:17:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566976679; cv=none; d=google.com; s=arc-20160816; b=ghdprJr61lV4P6G3TF5BFzgaVJoY4DEsPko4RXxCIr0EiMv1QHTayoblyBn/24v44e jnBo+qJz0ecSacI58fHCr5mbVz7Uo+lusgRkFy84NwtgUg5q6RYgtxwlM+fS2c3aMJ0r qbb7pRtlyrBEtGoKpqTmCrU+dDeu1OPDCYL5SYnfvRcH20+AQRzjOoTzu63Swq0FbvIa vpYGi57k7rdSfb6ODV2lrb51LuMXswxphR0d4ElJLmXLG5HXvYXHPh73CZtveTPVgStc oMa7mrIl4T9xBVggdtNCFe8iDL70cdGU8ZeA916s8vZ3i31/4huyrRya+43a1sdHQzjb M5YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:subject:cc:to:from:ironport-sdr :ironport-sdr; bh=0o10cY8orEuMZ8anB3e5+U8GYg9xhNQ5Sg30fvJQmzU=; b=cbBTCiZJRF+CxC1akU4tDqSi3NJ71+a52qjQT47846WbybtcKX5ZwPrTaMM5qQnbfV vbmG/i8j/A5tkZH66I1UnxdBVWWNqVA98ocLhmAC2XUdwHIp35SBxZAXJa1g/4zw2WIT SM+5v4YIJt7poAUfEqmGQCGvlYVjFh1KXi4UiwHQsdfCsfSe8sPspWXO5VHVxAZTDHJf 9XEBY9bw+iPP1fe4bqmm78yzTGYNGK4LCN7wjEbUfKDGsPslCkFPzk5ad+KuIbs1ySx4 +jHZf7Gus3FRisA3Q6PvZUQPfZkY681v5kHf4jihGH3AhUkOLGq3/017IIJJ9AmKQWfE Zh8Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Return-Path: Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com. [68.232.137.252]) by gmr-mx.google.com with ESMTPS id v3si43573qki.4.2019.08.28.00.17.59 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Aug 2019 00:17:59 -0700 (PDT) Received-SPF: pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.137.252 as permitted sender) client-ip=68.232.137.252; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com IronPort-SDR: ciI1BzOJ/w0Pw7FZIIzpdengBZ1EPryBkOEWz5adTND0kPwzp3XI8dLbjr8O6GUowk7NQ9mAHo bppNFl/ClYuDIGJTJF0KmDVcNNaeq6P+T/clu+FoZAqT3W7dNGRTH3IVAy6noRmnhRkVVGEKdK VrsJY8vVrFFSgk+E7pcGm/3hnwfqlvqEZOD4J5+sm8h+zUv9S3kDmSJscr92iHh32gALveajGW x6FnVXQ7R35p2KUYziJfd5cVgbr0gJpTynqkHmNU/m557jACV3Rr2vIp5+TeZBzcg41tCW1xUP tXg= X-IronPort-AV: E=Sophos;i="5.64,440,1559548800"; d="scan'208";a="40833814" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 27 Aug 2019 23:17:58 -0800 IronPort-SDR: vu7UfcNCSnbNCl9GHSfUR8l0PHWiLMvDf6oEaTIMLF5BiFEna4no1C3Ny61I7vGiMiOaOYhs9k wVWJjaO/Dh/kQJzFUH4YCL8lgStQCgp8TsLtWws3MeXUP+rCXcsCksVFRIvktafrVZFKk0d2Us re7rVpl4hb+cg1D0zvVZ8DtRdlc0LxCdt4foINVPML87Dan+Fvk4ZHZROBc0umLxZ5bioMf+9G 0z4eIdFLPeHfoHIn4Jxy0XP2O9rZQ1dCKXaWSHui/DCRITle6upHtXk3IyXIcFrshZjFXnHFxY 2Sk= From: Cedric Hombourger To: CC: Cedric Hombourger Subject: [RFC Kernel PATCH 0/1] support creation of linux-perf packages Date: Wed, 28 Aug 2019 09:17:32 +0200 Message-ID: <1566976653-174-1-git-send-email-Cedric_Hombourger@mentor.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain Return-Path: Cedric_Hombourger@mentor.com X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) X-TUID: FfYdGR+E3X6F Hello all, As you may know we are using the kernel "make deb-pkg" infrastructure to build and package our custom kernels. When we upgrade the kernel to a more recent version than Debian (e.g. when targeting use of 5.x kernel while Debian 10 is on 4.19), we lose support for perf since the created rootfs will not have a perf binary matching the kernel version we are running (/usr/bin/perf will be looking for perf_5.3 if you are running a 5.3 kernel). This patch modifies the builddeb and mkdebian scripts from the Linux kernel tree to generate linux-perf packages with a structure matching Debian's I would anticipate that our build-kernel.sh script would be modified to build/package the kernel with "make deb-pkg KDEB_PERF=1" (should cause no harm for older kernel builds). I would appreciate your review comments before submitting this to the Linux kernel folks TIA! Cedric Hombourger (1): builddeb: support creation of linux-perf packages scripts/package/builddeb | 32 ++++++++++++++++++++++++++++++++ scripts/package/mkdebian | 26 ++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) -- 2.11.0