diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-01 22:43:53 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-01 22:43:53 -0400 |
| commit | b33ce442993865180292df2a314ee5251ba38b50 (patch) | |
| tree | 004b703ea3cd19c932393086fe9cde96e8db8de7 /include/trace | |
| parent | 7a48837732f87a574ee3e1855927dc250117f565 (diff) | |
| parent | e84987a1f941b8e2e3173bb38510ddf25cc8c7f0 (diff) | |
Merge branch 'for-3.15/drivers' of git://git.kernel.dk/linux-block
Pull block driver update from Jens Axboe:
"On top of the core pull request, here's the pull request for the
driver related changes for 3.15. It contains:
- Improvements for msi-x registration for block drivers (mtip32xx,
skd, cciss, nvme) from Alexander Gordeev.
- A round of cleanups and improvements for drbd from Andreas
Gruenbacher and Rashika Kheria.
- A round of clanups and improvements for bcache from Kent.
- Removal of sleep_on() and friends in DAC960, ataflop, swim3 from
Arnd Bergmann.
- Bug fix for a bug in the mtip32xx async completion code from Sam
Bradshaw.
- Bug fix for accidentally bouncing IO on 32-bit platforms with
mtip32xx from Felipe Franciosi"
* 'for-3.15/drivers' of git://git.kernel.dk/linux-block: (103 commits)
bcache: remove nested function usage
bcache: Kill bucket->gc_gen
bcache: Kill unused freelist
bcache: Rework btree cache reserve handling
bcache: Kill btree_io_wq
bcache: btree locking rework
bcache: Fix a race when freeing btree nodes
bcache: Add a real GC_MARK_RECLAIMABLE
bcache: Add bch_keylist_init_single()
bcache: Improve priority_stats
bcache: Better alloc tracepoints
bcache: Kill dead cgroup code
bcache: stop moving_gc marking buckets that can't be moved.
bcache: Fix moving_pred()
bcache: Fix moving_gc deadlocking with a foreground write
bcache: Fix discard granularity
bcache: Fix another bug recovering from unclean shutdown
bcache: Fix a bug recovering from unclean shutdown
bcache: Fix a journalling reclaim after recovery bug
bcache: Fix a null ptr deref in journal replay
...
Diffstat (limited to 'include/trace')
| -rw-r--r-- | include/trace/events/bcache.h | 52 |
1 files changed, 35 insertions, 17 deletions
diff --git a/include/trace/events/bcache.h b/include/trace/events/bcache.h index 7110897c3dfa..c9c3c044b32f 100644 --- a/include/trace/events/bcache.h +++ b/include/trace/events/bcache.h | |||
| @@ -399,26 +399,43 @@ TRACE_EVENT(bcache_keyscan, | |||
| 399 | 399 | ||
| 400 | /* Allocator */ | 400 | /* Allocator */ |
| 401 | 401 | ||
| 402 | TRACE_EVENT(bcache_alloc_invalidate, | 402 | TRACE_EVENT(bcache_invalidate, |
| 403 | TP_PROTO(struct cache *ca), | 403 | TP_PROTO(struct cache *ca, size_t bucket), |
| 404 | TP_ARGS(ca), | 404 | TP_ARGS(ca, bucket), |
| 405 | 405 | ||
| 406 | TP_STRUCT__entry( | 406 | TP_STRUCT__entry( |
| 407 | __field(unsigned, free ) | 407 | __field(unsigned, sectors ) |
| 408 | __field(unsigned, free_inc ) | 408 | __field(dev_t, dev ) |
| 409 | __field(unsigned, free_inc_size ) | 409 | __field(__u64, offset ) |
| 410 | __field(unsigned, unused ) | ||
| 411 | ), | 410 | ), |
| 412 | 411 | ||
| 413 | TP_fast_assign( | 412 | TP_fast_assign( |
| 414 | __entry->free = fifo_used(&ca->free[RESERVE_NONE]); | 413 | __entry->dev = ca->bdev->bd_dev; |
| 415 | __entry->free_inc = fifo_used(&ca->free_inc); | 414 | __entry->offset = bucket << ca->set->bucket_bits; |
| 416 | __entry->free_inc_size = ca->free_inc.size; | 415 | __entry->sectors = GC_SECTORS_USED(&ca->buckets[bucket]); |
| 417 | __entry->unused = fifo_used(&ca->unused); | ||
| 418 | ), | 416 | ), |
| 419 | 417 | ||
| 420 | TP_printk("free %u free_inc %u/%u unused %u", __entry->free, | 418 | TP_printk("invalidated %u sectors at %d,%d sector=%llu", |
| 421 | __entry->free_inc, __entry->free_inc_size, __entry->unused) | 419 | __entry->sectors, MAJOR(__entry->dev), |
| 420 | MINOR(__entry->dev), __entry->offset) | ||
| 421 | ); | ||
| 422 | |||
| 423 | TRACE_EVENT(bcache_alloc, | ||
| 424 | TP_PROTO(struct cache *ca, size_t bucket), | ||
| 425 | TP_ARGS(ca, bucket), | ||
| 426 | |||
| 427 | TP_STRUCT__entry( | ||
| 428 | __field(dev_t, dev ) | ||
| 429 | __field(__u64, offset ) | ||
| 430 | ), | ||
| 431 | |||
| 432 | TP_fast_assign( | ||
| 433 | __entry->dev = ca->bdev->bd_dev; | ||
| 434 | __entry->offset = bucket << ca->set->bucket_bits; | ||
| 435 | ), | ||
| 436 | |||
| 437 | TP_printk("allocated %d,%d sector=%llu", MAJOR(__entry->dev), | ||
| 438 | MINOR(__entry->dev), __entry->offset) | ||
| 422 | ); | 439 | ); |
| 423 | 440 | ||
| 424 | TRACE_EVENT(bcache_alloc_fail, | 441 | TRACE_EVENT(bcache_alloc_fail, |
| @@ -426,21 +443,22 @@ TRACE_EVENT(bcache_alloc_fail, | |||
| 426 | TP_ARGS(ca, reserve), | 443 | TP_ARGS(ca, reserve), |
| 427 | 444 | ||
| 428 | TP_STRUCT__entry( | 445 | TP_STRUCT__entry( |
| 446 | __field(dev_t, dev ) | ||
| 429 | __field(unsigned, free ) | 447 | __field(unsigned, free ) |
| 430 | __field(unsigned, free_inc ) | 448 | __field(unsigned, free_inc ) |
| 431 | __field(unsigned, unused ) | ||
| 432 | __field(unsigned, blocked ) | 449 | __field(unsigned, blocked ) |
| 433 | ), | 450 | ), |
| 434 | 451 | ||
| 435 | TP_fast_assign( | 452 | TP_fast_assign( |
| 453 | __entry->dev = ca->bdev->bd_dev; | ||
| 436 | __entry->free = fifo_used(&ca->free[reserve]); | 454 | __entry->free = fifo_used(&ca->free[reserve]); |
| 437 | __entry->free_inc = fifo_used(&ca->free_inc); | 455 | __entry->free_inc = fifo_used(&ca->free_inc); |
| 438 | __entry->unused = fifo_used(&ca->unused); | ||
| 439 | __entry->blocked = atomic_read(&ca->set->prio_blocked); | 456 | __entry->blocked = atomic_read(&ca->set->prio_blocked); |
| 440 | ), | 457 | ), |
| 441 | 458 | ||
| 442 | TP_printk("free %u free_inc %u unused %u blocked %u", __entry->free, | 459 | TP_printk("alloc fail %d,%d free %u free_inc %u blocked %u", |
| 443 | __entry->free_inc, __entry->unused, __entry->blocked) | 460 | MAJOR(__entry->dev), MINOR(__entry->dev), __entry->free, |
| 461 | __entry->free_inc, __entry->blocked) | ||
| 444 | ); | 462 | ); |
| 445 | 463 | ||
| 446 | /* Background writeback */ | 464 | /* Background writeback */ |
