X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=libcfs%2Flibcfs%2Fdarwin%2Fdarwin-tracefile.c;h=7ab943f8675fba5554ce98b62dae5c593acfc533;hp=7c0095d2e35a27143492390c899d40cc0434463e;hb=744f5f8e6d8b902953431b0a39542b86c09275b1;hpb=6869932b552ac705f411de3362f01bd50c1f6f7d diff --git a/libcfs/libcfs/darwin/darwin-tracefile.c b/libcfs/libcfs/darwin/darwin-tracefile.c index 7c0095d..7ab943f 100644 --- a/libcfs/libcfs/darwin/darwin-tracefile.c +++ b/libcfs/libcfs/darwin/darwin-tracefile.c @@ -68,6 +68,7 @@ int tracefile_init_arch() { } void tracefile_fini_arch() { + fini_rwsem(&tracefile_sem); } void tracefile_read_lock() { @@ -161,7 +162,7 @@ int tcd_owns_tage(struct trace_cpu_data *tcd, struct trace_page *tage) void set_ptldebug_header(struct ptldebug_header *header, int subsys, int mask, - const int line, unsigned long stack) + const int line, unsigned long stack) { struct timeval tv; @@ -172,7 +173,8 @@ set_ptldebug_header(struct ptldebug_header *header, int subsys, int mask, do_gettimeofday(&tv); header->ph_subsys = subsys; header->ph_mask = mask; - header->ph_cpu_id = smp_processor_id(); + header->ph_cpu_id = cfs_smp_processor_id(); + header->ph_type = 0; header->ph_sec = (__u32)tv.tv_sec; header->ph_usec = tv.tv_usec; header->ph_stack = stack; @@ -217,9 +219,3 @@ int trace_max_debug_mb(void) { return max_permit_mb; } - -void -trace_call_on_all_cpus(void (*fn)(void *arg), void *arg) -{ -#error "tbd" -}