enabling rbd and ceph

2014-02-02 Thread Sage Weil
Hi,

Someone just asked asked when rbd.ko and ceph.ko will be 
enabled in debian kernels.  I didn't realize they weren't.  What does it 
take to get them enabled in the debian .config?

Thanks!
sage   (ceph maintainer)


-- 
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/alpine.deb.2.00.1402022044540.17...@cobra.newdream.net



[PATCH] scripts/package/builddeb: build perftools package

2013-07-01 Thread Sage Weil
This will build a linux-tools-$version package for each build that includes
perf.

Signed-off-by: Gary Lowell 
---
 scripts/package/builddeb |   95 +-
 1 file changed, 94 insertions(+), 1 deletion(-)

diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index acb8650..f57d33c 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -78,17 +78,20 @@ tmpdir="$objtree/debian/tmp"
 fwdir="$objtree/debian/fwtmp"
 kernel_headers_dir="$objtree/debian/hdrtmp"
 libc_headers_dir="$objtree/debian/headertmp"
+tools_dir="$objtree/debian/toolstmp"
+tmp_build_dir="$objtree/debian/toolsbuild"
 packagename=linux-image-$version
 fwpackagename=linux-firmware-image
 kernel_headers_packagename=linux-headers-$version
 libc_headers_packagename=linux-libc-dev
+tools_packagename=linux-tools-$version
 
 if [ "$ARCH" = "um" ] ; then
packagename=user-mode-linux-$version
 fi
 
 # Setup the directory structure
-rm -rf "$tmpdir" "$fwdir" "$kernel_headers_dir" "$libc_headers_dir"
+rm -rf "$tmpdir" "$fwdir" "$kernel_headers_dir" "$libc_headers_dir" 
"$tools_dir" "$tmp_build_dir"
 mkdir -m 755 -p "$tmpdir/DEBIAN"
 mkdir -p  "$tmpdir/lib" "$tmpdir/boot" "$tmpdir/usr/share/doc/$packagename"
 mkdir -m 755 -p "$fwdir/DEBIAN"
@@ -98,6 +101,10 @@ mkdir -p 
"$libc_headers_dir/usr/share/doc/$libc_headers_packagename"
 mkdir -m 755 -p "$kernel_headers_dir/DEBIAN"
 mkdir -p "$kernel_headers_dir/usr/share/doc/$kernel_headers_packagename"
 mkdir -p "$kernel_headers_dir/lib/modules/$version/"
+mkdir -m 755 -p "$tools_dir/DEBIAN"
+mkdir -p "$tools_dir/usr/share/doc/$tools_packagename"
+mkdir -p "$tools_dir/usr/bin/"
+mkdir -p "$tmp_build_dir"
 if [ "$ARCH" = "um" ] ; then
mkdir -p "$tmpdir/usr/lib/uml/modules/$version" "$tmpdir/usr/bin"
 fi
@@ -120,6 +127,77 @@ else
fi
 fi
 
+# Build the tools
+num_tools="0"
+tools_flavour_abi=${version#*-}
+tools_flavour=${tools_flavour_abi#*-}
+tools_version=${version%-$tools_flavour}
+debian_tools_version="${version%%-*}"
+debian_tools_version="${version%.*}"
+if grep -q '^CONFIG_PERF_EVENTS=y' .config ; then
+   # Build and install perf
+   (
+unset MAKEFLAGS
+unset MFLAGS
+unset MAKEOVERRIDES
+
+mkdir -p $objtree/tools/perf
+cd "$srctree/tools/perf"
+$MAKE DESTDIR="$tools_dir/usr/" LDFLAGS= O=$objtree/tools/perf/ install
+mv "$tools_dir/usr/bin/perf" 
"$tools_dir/usr/bin/perf_$debian_tools_version"
+ln -s "/usr/bin/perf_$debian_tools_version" 
"$tools_dir/usr/bin/perf_$tools_version"
+mv "$tools_dir/usr/libexec/perf-core" 
"$tools_dir/usr/share/perf_$debian_tools_version-core"
+rmdir "$tools_dir/usr/libexec"
+
+# Documentation can't be built out-of-tree so copy source
+# over to objtree and build man pages there
+mkdir -p $tmp_build_dir/perf
+cp -a "$srctree/tools/perf/Documentation" "$tmp_build_dir/perf/"
+cp -a "$srctree/tools/perf/config" "$tmp_build_dir/perf/"
+cd "$tmp_build_dir/perf/Documentation"
+$MAKE man
+$MAKE DESTDIR="$tools_dir/usr/" install
+for manpage in `find $tools_dir/usr/share/man/ -type f`; do
+   mv $manpage ${manpage/perf/perf_$debian_tools_version}
+   gzip -9 ${manpage/perf/perf_$debian_tools_version}
+done
+   )
+   num_tools=$(($num_tools+1))
+fi
+
+if [[ "$ARCH" = "i386" || "$ARCH" = "x86_64" ]]; then
+   # Build turbostat
+   (
+cp -a $srctree/tools/power/x86/turbostat "$tmp_build_dir"
+ln -s $srctree/arch "$tmp_build_dir/../../../arch"
+cd "$tmp_build_dir/turbostat/"
+unset MAKEFLAGS
+unset MFLAGS
+unset MAKEOVERRIDES
+$MAKE LDFLAGS=
+cp turbostat "$tools_dir/usr/bin/turbostat_$debian_tools_version"
+ln -s "/usr/bin/turbostat_$debian_tools_version" 
"$tools_dir/usr/bin/turbostat_$tools_version"
+mkdir -p "$tools_dir/usr/share/man/man8"
+cp turbostat.8 
"$tools_dir/usr/share/man/man8/turbotstat_${debian_tools_version}.8"
+gzip -9 
"$tools_dir/usr/share/man/man8/turbotstat_${debian_tools_version}.8"
+   )
+
+   # Build x86_energy_perf_policy
+   (
+cp -a $srctree/tools/power/x86/x86_energy_perf_policy "$tmp_build_dir"
+cd "$tmp_build_dir/x86_energy_perf_policy"
+unset MAKEFLAGS
+unset MFLAGS
+unset MAKEOVERRIDES
+$MAKE LDFLAGS=
+cp x86_energy_perf_policy 
"$tools_dir/usr/bin/x86_energy_perf_policy_$debian_tools_version"
+ln -s "/usr/bin/x86_energy_perf_policy_$debian_tools_version" 
"$tools_dir/usr/bin/x86_energy_perf_policy_$tools_version"
+cp x86_energy_perf_policy.8 
"$tools_dir/usr/share/man/man8/x86_energy_perf_policy_${debian_tools_version}.8"
+gzip -9 
"$tools_dir/usr/share/man/man8/x86_energy_perf_policy_${debian_tools_version}.8"
+   )
+   num_tools=$(($num_tools+2))
+fi
+
 if grep -q '^CO

Re: Bug#589562: ITP: ceph-dkms - ceph client kernel module

2010-07-19 Thread Sage Weil
On Sun, 18 Jul 2010, Ben Hutchings wrote:
> On Sun, 2010-07-18 at 11:01 -0700, Sage Weil wrote:
> > Package: ceph-dkms
> > Severity: wishlist
> > Owner: Sage Weil 
> > 
> > 
> > * Package name: ceph-dkms
> > * URL : http://ceph.newdream.net/
> > * License : GPL2
> >   Programming Lang: C
> >   Description : Ceph client kernel module [DKMS driver source]
> > 
> > The Ceph client Linux kernel module allows hosts to natively mount a Ceph 
> > file system.  This package provides teh kernel modules source with has
> > been prepared for use with DKMS.
> 
> Will this be the same code that has been accepted upstream?  If so, I
> think we could add it to the linux-2.6 package instead of creating a
> separate package.

It has.  The DKMS package is the latest code, though, with backport 
#ifdefs allowing it to build as far back as 2.6.27.  If that's 
inappropriate for debian, I can just keep those packages on the ceph 
site only.

sage


-- 
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/pine.lnx.4.64.1007192137160.32...@cobra.newdream.net



Bug#589562: ITP: ceph-dkms - ceph client kernel module

2010-07-18 Thread Sage Weil
Package: ceph-dkms
Severity: wishlist
Owner: Sage Weil 


* Package name: ceph-dkms
* URL : http://ceph.newdream.net/
* License : GPL2
  Programming Lang: C
  Description : Ceph client kernel module [DKMS driver source]

The Ceph client Linux kernel module allows hosts to natively mount a Ceph 
file system.  This package provides teh kernel modules source with has
been prepared for use with DKMS.


-- 
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/pine.lnx.4.64.1007181057430.15...@cobra.newdream.net