Date: Tue, 13 Apr 2010 09:53:08 +0000 (UTC) From: Luigi Rizzo <luigi@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r206551 - head/sys/geom/sched Message-ID: <201004130953.o3D9r8r0012552@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: luigi Date: Tue Apr 13 09:53:08 2010 New Revision: 206551 URL: http://svn.freebsd.org/changeset/base/206551 Log: make code compile with KTR Modified: head/sys/geom/sched/g_sched.c Modified: head/sys/geom/sched/g_sched.c ============================================================================== --- head/sys/geom/sched/g_sched.c Tue Apr 13 09:52:42 2010 (r206550) +++ head/sys/geom/sched/g_sched.c Tue Apr 13 09:53:08 2010 (r206551) @@ -753,13 +753,6 @@ g_gsched_modevent(module_t mod, int cmd, #ifdef KTR #define TRC_BIO_EVENT(e, bp) g_sched_trace_bio_ ## e (bp) -static inline int -g_sched_issuer_pid(struct bio *bp) -{ - struct thread *thread = g_sched_issuer(bp); - - return (thread->td_tid); -} static inline char g_sched_type(struct bio *bp) @@ -776,7 +769,7 @@ static inline void g_sched_trace_bio_START(struct bio *bp) { - CTR5(KTR_GSCHED, "S %d %c %lu/%lu %lu", g_sched_issuer_pid(bp), + CTR5(KTR_GSCHED, "S %lu %c %lu/%lu %lu", g_sched_classify(bp), g_sched_type(bp), bp->bio_offset / ULONG_MAX, bp->bio_offset, bp->bio_length); } @@ -785,13 +778,13 @@ static inline void g_sched_trace_bio_DONE(struct bio *bp) { - CTR5(KTR_GSCHED, "D %d %c %lu/%lu %lu", g_sched_issuer_pid(bp), + CTR5(KTR_GSCHED, "D %lu %c %lu/%lu %lu", g_sched_classify(bp), g_sched_type(bp), bp->bio_offset / ULONG_MAX, bp->bio_offset, bp->bio_length); } -#else +#else /* !KTR */ #define TRC_BIO_EVENT(e, bp) -#endif +#endif /* !KTR */ /* * g_sched_done() and g_sched_start() dispatch the geom requests to
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004130953.o3D9r8r0012552>