]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
10 years agoMerge pull request #2288 from xiaoxichen/fix_add_simple_ruleset
Loic Dachary [Fri, 22 Aug 2014 15:00:54 +0000 (17:00 +0200)]
Merge pull request #2288 from xiaoxichen/fix_add_simple_ruleset

CrushWrapper: pick a ruleset same as rule_id

Reviewed-by: Loic Dachary <loic-201408@dachary.org>
10 years agoCrushWrapper: pick a ruleset same as rule_id 2288/head
Xiaoxi Chen [Wed, 20 Aug 2014 07:35:44 +0000 (15:35 +0800)]
CrushWrapper: pick a ruleset same as rule_id

Originally in the add_simple_ruleset funtion, the ruleset_id
is not reused but rule_id is reused. So after some add/remove
against rules, the newly created rule likely to have
ruleset!=rule_id.

We dont want this happen because we are trying to hold the constraint
that ruleset == rule_id.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
10 years agoMerge pull request #2273 from dachary/wip-mailmap
Loic Dachary [Fri, 22 Aug 2014 01:05:48 +0000 (03:05 +0200)]
Merge pull request #2273 from dachary/wip-mailmap

mailmap updates

10 years agoMerge remote-tracking branch 'gh/wip-filejournal'
Sage Weil [Fri, 22 Aug 2014 00:48:41 +0000 (17:48 -0700)]
Merge remote-tracking branch 'gh/wip-filejournal'

Reviewed-by: Sage Weil <sage@redhat.com>
Tested-by: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
10 years agoMerge remote-tracking branch 'gh/wip-lttng'
Sage Weil [Thu, 21 Aug 2014 22:06:11 +0000 (15:06 -0700)]
Merge remote-tracking branch 'gh/wip-lttng'

10 years agoRevert "Merge pull request #2253 from adamcrume/wip-lttng"
Sage Weil [Thu, 21 Aug 2014 22:05:40 +0000 (15:05 -0700)]
Revert "Merge pull request #2253 from adamcrume/wip-lttng"

This reverts commit 5b9ade5058f72116eb3dc920f442361c2a33b46b, reversing
changes made to b0aa846b3f81225a779de00100e15334fb8156b3.

I merged the wrong version of wip-lttng.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #2274 from ceph/wip-9144
David Zafman [Thu, 21 Aug 2014 20:43:50 +0000 (13:43 -0700)]
Merge pull request #2274 from ceph/wip-9144

filestore: fix force_sync race with mount + umount + mount

Reviewed-by: David Zafman <dzafman@redhat.com>
10 years agoMerge pull request #2253 from adamcrume/wip-lttng
Sage Weil [Thu, 21 Aug 2014 20:14:51 +0000 (13:14 -0700)]
Merge pull request #2253 from adamcrume/wip-lttng

RBD-replay

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agorbd_replay: Add unit test for batch_unreachable_from
Adam Crume [Tue, 19 Aug 2014 23:04:40 +0000 (16:04 -0700)]
rbd_replay: Add unit test for batch_unreachable_from

This requires a fair amount of code reorganization, since the types in
the function signature were previously not in a header file.

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Add unit test for Ser
Adam Crume [Tue, 19 Aug 2014 20:45:09 +0000 (13:45 -0700)]
rbd-replay: Add unit test for Ser

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Split --with-lttng and --with-babeltrace options
Adam Crume [Tue, 19 Aug 2014 18:16:50 +0000 (11:16 -0700)]
lttng: Split --with-lttng and --with-babeltrace options

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Remove tracing-specfic local variables when lttng disabled
Adam Crume [Mon, 18 Aug 2014 20:14:02 +0000 (13:14 -0700)]
lttng: Remove tracing-specfic local variables when lttng disabled

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Add informational messages to configure.ac
Adam Crume [Mon, 18 Aug 2014 17:58:04 +0000 (10:58 -0700)]
lttng: Add informational messages to configure.ac

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Only install rbd-replay-prep when enabled
Adam Crume [Mon, 18 Aug 2014 16:27:02 +0000 (09:27 -0700)]
lttng: Only install rbd-replay-prep when enabled

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Check for babeltrace when autoconfiguring lttng
Adam Crume [Fri, 15 Aug 2014 23:25:55 +0000 (16:25 -0700)]
lttng: Check for babeltrace when autoconfiguring lttng

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Check that the main babeltrace header is present
Adam Crume [Fri, 15 Aug 2014 23:25:36 +0000 (16:25 -0700)]
lttng: Check that the main babeltrace header is present

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Test for sane lttng-gen-tp
Adam Crume [Fri, 15 Aug 2014 22:47:18 +0000 (15:47 -0700)]
lttng: Test for sane lttng-gen-tp

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Don't build trace libraries when lttng is disabled
Adam Crume [Fri, 15 Aug 2014 22:22:37 +0000 (15:22 -0700)]
lttng: Don't build trace libraries when lttng is disabled

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Fix build error on 32-bit systems
Adam Crume [Fri, 15 Aug 2014 19:49:53 +0000 (12:49 -0700)]
lttng: Fix build error on 32-bit systems

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Remove -lboost_regex from unit test
Adam Crume [Fri, 15 Aug 2014 19:43:08 +0000 (12:43 -0700)]
lttng: Remove -lboost_regex from unit test

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Don't build trace headers when lttng is disabled
Adam Crume [Fri, 15 Aug 2014 19:42:18 +0000 (12:42 -0700)]
lttng: Don't build trace headers when lttng is disabled

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Update packaging
Adam Crume [Fri, 15 Aug 2014 18:45:26 +0000 (11:45 -0700)]
lttng: Update packaging

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Only require lttng for Fedora >= 20 and RHEL == 6 for RPM distros
Adam Crume [Fri, 15 Aug 2014 17:27:05 +0000 (10:27 -0700)]
lttng: Only require lttng for Fedora >= 20 and RHEL == 6 for RPM distros

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Add distro packaging
Adam Crume [Fri, 15 Aug 2014 04:33:43 +0000 (21:33 -0700)]
lttng: Add distro packaging

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Fix "make distcheck"
Adam Crume [Fri, 15 Aug 2014 01:25:20 +0000 (18:25 -0700)]
lttng: Fix "make distcheck"

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Support --with-lttng=check
Adam Crume [Wed, 13 Aug 2014 22:22:42 +0000 (15:22 -0700)]
lttng: Support --with-lttng=check

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Remove tracing from libcommon
Adam Crume [Wed, 13 Aug 2014 18:42:00 +0000 (11:42 -0700)]
lttng: Remove tracing from libcommon

This is a short-term fix for issues caused by tracepoints in libcommon.
Code crashes at runtime if the same tracepoints are linked into the
program multiple times.  This happens with libcommon because it is
statically linked into dynamic libraries such as librados, then
statically linked into executables because symbols from libcommon are
not exposed in librados.  Therefore, any programs that use librados and
libcommon would crash because of duplicate tracepoints.

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Fix bug in rbd-replay-prep, Thread::issued_io with wrong IO
Adam Crume [Wed, 13 Aug 2014 00:42:31 +0000 (17:42 -0700)]
rbd-replay: Fix bug in rbd-replay-prep, Thread::issued_io with wrong IO

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Remove extent tracepoints and inline extents
Adam Crume [Tue, 12 Aug 2014 23:10:53 +0000 (16:10 -0700)]
rbd-replay: Remove extent tracepoints and inline extents

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Move tracepoints from internal.cc to librbd.cc
Adam Crume [Tue, 12 Aug 2014 22:49:53 +0000 (15:49 -0700)]
rbd-replay: Move tracepoints from internal.cc to librbd.cc

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Add man page and package binaries for rbd-replay-prep
Adam Crume [Tue, 12 Aug 2014 03:52:45 +0000 (20:52 -0700)]
rbd-replay: Add man page and package binaries for rbd-replay-prep

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Convert prep-for-replay.py to rbd-replay-prep.cc
Adam Crume [Thu, 7 Aug 2014 20:38:19 +0000 (13:38 -0700)]
rbd-replay: Convert prep-for-replay.py to rbd-replay-prep.cc

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Add man page, and add binaries to Debian packaging
Adam Crume [Fri, 8 Aug 2014 00:20:05 +0000 (17:20 -0700)]
rbd-replay: Add man page, and add binaries to Debian packaging

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Remove outdated message that says regexes are used
Adam Crume [Fri, 8 Aug 2014 00:18:04 +0000 (17:18 -0700)]
rbd-replay: Remove outdated message that says regexes are used

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Replace Boost dependencies with custom string code
Adam Crume [Thu, 7 Aug 2014 22:11:37 +0000 (15:11 -0700)]
lttng: Replace Boost dependencies with custom string code

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Remove boost_regex from LIBADD and LDADD
Adam Crume [Thu, 7 Aug 2014 19:12:39 +0000 (12:12 -0700)]
rbd-replay: Remove boost_regex from LIBADD and LDADD

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Fix compiler warning in unit tests
Adam Crume [Thu, 7 Aug 2014 16:05:00 +0000 (09:05 -0700)]
rbd-replay: Fix compiler warning in unit tests

Was getting:
test/test_rbd_replay.cc:44:3: warning: converting ‘false’ to pointer type for argument 1 of ‘char testing::internal::IsNullLiteralHelper(testing::internal::Secret*)’ [-Wconversion-null]

Fixed by changing EXPECT_EQ(false, xxx) to EXPECT_FALSE(xxx).
For completeness, also changed EXPECT_EQ(true, xxx) to EXPECT_TRUE(xxx).

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Switch ImageNameMap from regex to plain string matching
Adam Crume [Thu, 7 Aug 2014 00:37:10 +0000 (17:37 -0700)]
rbd-replay: Switch ImageNameMap from regex to plain string matching

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Switch ImageNameMap to using rbd_loc
Adam Crume [Wed, 6 Aug 2014 23:00:40 +0000 (16:00 -0700)]
rbd-replay: Switch ImageNameMap to using rbd_loc

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Add rbd_replay::rbd_loc
Adam Crume [Wed, 6 Aug 2014 23:39:56 +0000 (16:39 -0700)]
rbd-replay: Add rbd_replay::rbd_loc

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Use standard image@snap instead of image/snap
Adam Crume [Wed, 6 Aug 2014 18:56:05 +0000 (11:56 -0700)]
rbd-replay: Use standard image@snap instead of image/snap

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Fix ceph_ctf_stringp
Adam Crume [Fri, 1 Aug 2014 00:39:12 +0000 (17:39 -0700)]
lttng: Fix ceph_ctf_stringp

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Support replaying partial traces
Adam Crume [Thu, 31 Jul 2014 23:22:44 +0000 (16:22 -0700)]
rbd-replay: Support replaying partial traces

Tracing may start after the application is started, and image open calls
may missed. To support replaying these traces, additional information is
traced, allowing missing open calls to be generated.

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Use non-zero fake data
Adam Crume [Thu, 31 Jul 2014 19:21:35 +0000 (12:21 -0700)]
rbd-replay: Use non-zero fake data

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Add unit tests
Adam Crume [Thu, 31 Jul 2014 01:48:46 +0000 (18:48 -0700)]
rbd-replay: Add unit tests

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Preload liblttng-ust-fork.so in TESTS_ENVIRONMENT
Adam Crume [Mon, 28 Jul 2014 23:32:15 +0000 (16:32 -0700)]
lttng: Preload liblttng-ust-fork.so in TESTS_ENVIRONMENT

This adds LD_PRELOAD=liblttng-ust-fork.so to TESTS_ENVIRONMENT.
This prevents lttng from complaining when processes are forked.
The complaints otherwise taint the output and cause tests to fail.

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Disable LTTng by default, add --with-lttng configure option
Adam Crume [Mon, 28 Jul 2014 16:44:42 +0000 (09:44 -0700)]
lttng: Disable LTTng by default, add --with-lttng configure option

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Fix 'make check' by setting up fake HOME
Adam Crume [Wed, 23 Jul 2014 15:48:39 +0000 (08:48 -0700)]
lttng: Fix 'make check' by setting up fake HOME

If the HOME variable is not set, LTTng complains, and the extra output
fails to match what the tests expect, so they fail.

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Add --map-image option for image name mapping
Adam Crume [Tue, 22 Jul 2014 23:06:52 +0000 (16:06 -0700)]
rbd-replay: Add --map-image option for image name mapping

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Add --pool option
Adam Crume [Tue, 22 Jul 2014 23:09:29 +0000 (16:09 -0700)]
rbd-replay: Add --pool option

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Add assertions
Adam Crume [Mon, 21 Jul 2014 22:57:45 +0000 (15:57 -0700)]
rbd-replay: Add assertions

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Default to not storing buffer content
Adam Crume [Mon, 21 Jul 2014 22:35:32 +0000 (15:35 -0700)]
lttng: Default to not storing buffer content

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Add command-line arguments to prep-for-replay.py
Adam Crume [Mon, 21 Jul 2014 21:40:29 +0000 (14:40 -0700)]
rbd-replay: Add command-line arguments to prep-for-replay.py

Includes:
--print-on-read
--print-on-write
--window

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Fix async writes in prep-for-replay.py
Adam Crume [Mon, 21 Jul 2014 21:39:42 +0000 (14:39 -0700)]
rbd-replay: Fix async writes in prep-for-replay.py

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Add --read-only flag
Adam Crume [Mon, 21 Jul 2014 21:38:28 +0000 (14:38 -0700)]
rbd-replay: Add --read-only flag

Removes ignoreWrites flag in prep-for-replay.py

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Fix examples/rbd-replay/replay
Adam Crume [Mon, 21 Jul 2014 21:33:26 +0000 (14:33 -0700)]
rbd-replay: Fix examples/rbd-replay/replay

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Clean up prep-for-replay.py
Adam Crume [Mon, 21 Jul 2014 19:02:54 +0000 (12:02 -0700)]
rbd-replay: Clean up prep-for-replay.py

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Hash completions across multiple mutexes to reduce contention
Adam Crume [Mon, 21 Jul 2014 18:14:01 +0000 (11:14 -0700)]
rbd-replay: Hash completions across multiple mutexes to reduce contention

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Add --latency-multiplier option to usage statement
Adam Crume [Mon, 21 Jul 2014 18:12:48 +0000 (11:12 -0700)]
rbd-replay: Add --latency-multiplier option to usage statement

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agodoc: Add usage comment to librbd::RBD::AioCompletion
Adam Crume [Mon, 21 Jul 2014 17:37:29 +0000 (10:37 -0700)]
doc: Add usage comment to librbd::RBD::AioCompletion

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Fix memory leak in PendingIO
Adam Crume [Mon, 21 Jul 2014 17:36:51 +0000 (10:36 -0700)]
rbd-replay: Fix memory leak in PendingIO

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Check that return values are non-negative
Adam Crume [Fri, 18 Jul 2014 21:37:57 +0000 (14:37 -0700)]
rbd-replay: Check that return values are non-negative

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Support writing Actions to ostreams
Adam Crume [Fri, 18 Jul 2014 20:57:16 +0000 (13:57 -0700)]
rbd-replay: Support writing Actions to ostreams

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Print "Still waiting for" more judiciously
Adam Crume [Fri, 18 Jul 2014 20:49:15 +0000 (13:49 -0700)]
rbd-replay: Print "Still waiting for" more judiciously

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Change Worker::m_pending_ios from vector to map
Adam Crume [Fri, 18 Jul 2014 20:42:43 +0000 (13:42 -0700)]
rbd-replay: Change Worker::m_pending_ios from vector to map

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Printing pending IOs when worker threads waiting to die
Adam Crume [Fri, 18 Jul 2014 20:11:24 +0000 (13:11 -0700)]
rbd-replay: Printing pending IOs when worker threads waiting to die

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Bugfix: ensure PendingIOs are added before they're removed
Adam Crume [Fri, 18 Jul 2014 19:16:59 +0000 (12:16 -0700)]
rbd-replay: Bugfix: ensure PendingIOs are added before they're removed

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Add rbd_replay subsystem
Adam Crume [Fri, 18 Jul 2014 19:08:41 +0000 (12:08 -0700)]
rbd-replay: Add rbd_replay subsystem

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agoAdd assertf macro
Adam Crume [Fri, 18 Jul 2014 19:06:19 +0000 (12:06 -0700)]
Add assertf macro

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agorbd-replay: Switch logging from cout to dout
Adam Crume [Thu, 17 Jul 2014 22:01:42 +0000 (15:01 -0700)]
rbd-replay: Switch logging from cout to dout

To enable logs, we also have to use global_init to parse our
command-line args, so we now have other standard Ceph goodies
such as picking up config options from the environment.

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Add rbd-replay
Adam Crume [Thu, 17 Jul 2014 16:39:35 +0000 (09:39 -0700)]
lttng: Add rbd-replay

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Add more tracing to librbd
Adam Crume [Wed, 9 Jul 2014 17:20:26 +0000 (10:20 -0700)]
lttng: Add more tracing to librbd

Includes:
- aio_complete
- aio_discard
- aio_flush
- aio_get_return_value
- aio_is_complete
- aio_read
- aio_wait_for_complete
- aio_write
- copy
- discard
- flush
- invalidate_cache
- rename
- resize
- Add ImageCtx pointer to trace points
- Add snap_name and readonly flag to trace point open_image_enter

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agotracing: instrument filestore
Noah Watkins [Tue, 1 Jul 2014 22:48:00 +0000 (15:48 -0700)]
tracing: instrument filestore

This adds objectstore tracepoints for the filestore. It'd be nice to add
these to the objectstore interface some how so we can get all
implementations for free, but that might just be a bit difficult
especially since each impl will apply transactions in a differnet way.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
10 years agolttng: Basic tracing of librbd
Adam Crume [Fri, 27 Jun 2014 23:48:19 +0000 (16:48 -0700)]
lttng: Basic tracing of librbd

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Remove 'ver' from trace in code for CEPH_OSD_OP_NOTIFY
Adam Crume [Mon, 30 Jun 2014 14:17:32 +0000 (07:17 -0700)]
lttng: Remove 'ver' from trace in code for CEPH_OSD_OP_NOTIFY

'ver' is obsolete and variable exists only for proper deserialization

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Split up libtracepoints
Adam Crume [Fri, 27 Jun 2014 23:27:20 +0000 (16:27 -0700)]
lttng: Split up libtracepoints

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Prevent deletion of tracing-common.h when cleaning
Adam Crume [Fri, 27 Jun 2014 22:40:25 +0000 (15:40 -0700)]
lttng: Prevent deletion of tracing-common.h when cleaning

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Prevent creation of incorrect .o files when generating from .tp
Adam Crume [Fri, 27 Jun 2014 22:38:24 +0000 (15:38 -0700)]
lttng: Prevent creation of incorrect .o files when generating from .tp

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Trace librados C API
Adam Crume [Wed, 25 Jun 2014 20:59:08 +0000 (13:59 -0700)]
lttng: Trace librados C API

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agoexamples: Add example for the librados C API
Adam Crume [Thu, 26 Jun 2014 15:46:10 +0000 (08:46 -0700)]
examples: Add example for the librados C API

Simply copied and modified the C++ API example.

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Add tracing-common.h
Adam Crume [Wed, 25 Jun 2014 20:57:42 +0000 (13:57 -0700)]
lttng: Add tracing-common.h

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Trace ReplicatedPG::do_osd_ops
Adam Crume [Wed, 18 Jun 2014 18:01:19 +0000 (11:01 -0700)]
lttng: Trace ReplicatedPG::do_osd_ops

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Add rmw_flags to tracepoint in PG::queue_op
Adam Crume [Wed, 18 Jun 2014 17:52:56 +0000 (10:52 -0700)]
lttng: Add rmw_flags to tracepoint in PG::queue_op

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agolttng: Trace OpRequest
Adam Crume [Sat, 14 Jun 2014 00:17:22 +0000 (17:17 -0700)]
lttng: Trace OpRequest

Signed-off-by: Adam Crume <adamcrume@gmail.com>
10 years agotracing: automake-ify tracepoint generation
Noah Watkins [Fri, 20 Jun 2014 23:49:28 +0000 (16:49 -0700)]
tracing: automake-ify tracepoint generation

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
10 years agolttng: Check for lttng/tracepoint.h when configuring
Adam Crume [Thu, 12 Jun 2014 23:27:19 +0000 (16:27 -0700)]
lttng: Check for lttng/tracepoint.h when configuring

10 years agolttng: add pg and osd tracepoints
Noah Watkins [Sat, 7 Jun 2014 16:37:39 +0000 (09:37 -0700)]
lttng: add pg and osd tracepoints

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
10 years agolttng: trace mutex::unlock
Noah Watkins [Sat, 31 May 2014 22:59:27 +0000 (15:59 -0700)]
lttng: trace mutex::unlock

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
10 years agotracing: bootstrap lttng-ust with mutex events
Noah Watkins [Fri, 30 May 2014 21:13:12 +0000 (14:13 -0700)]
tracing: bootstrap lttng-ust with mutex events

See src/tracing/README.md

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
10 years agoos/FileJournal: For journal-aio-mode, don't use aio when closing journal.
Ma Jianpeng [Thu, 21 Aug 2014 07:10:46 +0000 (15:10 +0800)]
os/FileJournal: For journal-aio-mode, don't use aio when closing journal.

For jouranl-aio-mode when closing journal, the write_finish_thread_entry may exit before
write_thread_entry. This cause no one wait last aios to complete.
On some platform, after that the journal-header on journal corrupted.
To avoid this, when closing jouranl we don't use aio.

Fixes: 9073
Reported-by: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
Tested-by: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
Signed-off-by: Ma Jianpeng <jianpeng.ma@intel.com>
10 years agoMerge pull request #2295 from dachary/wip-9153-jerasure-upgrade
Sage Weil [Wed, 20 Aug 2014 22:09:42 +0000 (15:09 -0700)]
Merge pull request #2295 from dachary/wip-9153-jerasure-upgrade

erasure-code: do not preload the isa plugin

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoerasure-code: do not preload the isa plugin 2295/head
Loic Dachary [Wed, 20 Aug 2014 21:10:49 +0000 (23:10 +0200)]
erasure-code: do not preload the isa plugin

Because it's not built for all architectures and distributions.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
10 years agoMerge pull request #2219 from somnathr/wip-optracker-lock
Sage Weil [Wed, 20 Aug 2014 20:08:39 +0000 (13:08 -0700)]
Merge pull request #2219 from somnathr/wip-optracker-lock

TrackedOp: Removed redundant lock in OpTracker::_mark_event()

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoTrackedOp:_dump_op_descriptor is renamed to _dump_op_descriptor_unlocked 2219/head
Pavan Rallabhandi [Wed, 20 Aug 2014 08:31:57 +0000 (14:01 +0530)]
TrackedOp:_dump_op_descriptor is renamed to _dump_op_descriptor_unlocked

Caller don't need to hold lock before calling _dump_op_descriptor(),so,
to reflect this it is renamed to _dump_op_descriptor_unlocked().

Signed-off-by: Pavan Rallabhandi <pavan.rallabhandi@sandisk.com>
Signed-off-by: Somnath Roy <somnath.roy@sandisk.com>
10 years agoTrackedOp: Removed redundant lock in OpTracker::_mark_event()
Pavan Rallabhandi [Tue, 5 Aug 2014 11:51:35 +0000 (17:21 +0530)]
TrackedOp: Removed redundant lock in OpTracker::_mark_event()

ops_in_flight_lock seems redundant in OpTracker::_mark_event()
and this lock is highly contended for. Removing the same
is giving a significant performance boost.

Signed-off-by: Pavan Rallabhandi <pavan.rallabhandi@sandisk.com>
10 years agoMerge pull request #2282 from dachary/wip-9153-jerasure-upgrade
Sage Weil [Wed, 20 Aug 2014 17:08:39 +0000 (10:08 -0700)]
Merge pull request #2282 from dachary/wip-9153-jerasure-upgrade

erasure-code: preload the jerasure plugin

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoos/FileJournal: signal aio_cond even if seq is 0
Sage Weil [Wed, 20 Aug 2014 03:50:13 +0000 (20:50 -0700)]
os/FileJournal: signal aio_cond even if seq is 0

This can happen if we write a journal but no events.

Reported-by: Somnath Roy <somnath.roy@sandisk.com>
Reported-by: Ma, Jianpeng <jianpeng.ma@intel.com>
Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoos/FileJournal: Update the journal header when closing journal
Ma Jianpeng [Wed, 23 Jul 2014 17:10:38 +0000 (10:10 -0700)]
os/FileJournal: Update the journal header when closing journal

When closing journal, it should check must_write_header and update
journal header if must_write_header alreay set.
It can reduce the nosense journal-replay after restarting osd.

Signed-off-by: Ma Jianpeng <jianpeng.ma@intel.com>
Reviewed-by: Sage Weil <sage@redhat.com>
10 years agodoc/start/quick-ceph-deploy: missing {ceph-node} from mon create-initial
Dan Mick [Wed, 20 Aug 2014 04:23:46 +0000 (21:23 -0700)]
doc/start/quick-ceph-deploy: missing {ceph-node} from mon create-initial

Signed-off-by: Dan Mick <dan.mick@inktank.com>
10 years agoMerge pull request #2283 from somnathr/wip-sd-9145
Sage Weil [Wed, 20 Aug 2014 03:56:06 +0000 (20:56 -0700)]
Merge pull request #2283 from somnathr/wip-sd-9145

CollectionIndex: Collection name is added to the access_lock name

Reviewed-by: Samuel Just <sam.just@inktank.com>