Whamcloud - gitweb
LU-9859 libcfs: fold cfs_tracefile_*_arch into their only callers.
[fs/lustre-release.git] / libcfs / libcfs / tracefile.h
index 6b17fee..2a7b47f 100644 (file)
@@ -53,9 +53,6 @@ extern char lnet_debug_log_upcall[1024];
 
 extern void libcfs_run_debug_log_upcall(char *file);
 
-int  cfs_tracefile_init_arch(void);
-void cfs_tracefile_fini_arch(void);
-
 int cfs_tracefile_dump_all_pages(char *filename);
 void cfs_trace_debug_print(void);
 void cfs_trace_flush_pages(void);
@@ -174,15 +171,6 @@ union cfs_trace_data_union {
        char __pad[L1_CACHE_ALIGN(sizeof(struct cfs_trace_cpu_data))];
 };
 
-#define TCD_MAX_TYPES      8
-extern union cfs_trace_data_union (*cfs_trace_data[TCD_MAX_TYPES])[NR_CPUS];
-
-#define cfs_tcd_for_each(tcd, i, j)                                      \
-    for (i = 0; cfs_trace_data[i] != NULL; i++)                                  \
-       for (j = 0, ((tcd) = &(*cfs_trace_data[i])[j].tcd);               \
-            j < num_possible_cpus();                                     \
-            j++, (tcd) = &(*cfs_trace_data[i])[j].tcd)
-
 /* XXX nikita: this declaration is internal to tracefile.c and should probably
  * be moved there */
 struct page_collection {
@@ -234,13 +222,6 @@ struct cfs_trace_page {
        unsigned short          type;
 };
 
-extern void cfs_set_ptldebug_header(struct ptldebug_header *header,
-                                    struct libcfs_debug_msg_data *m,
-                                    unsigned long stack);
-extern void cfs_print_to_console(struct ptldebug_header *hdr, int mask,
-                                 const char *buf, int len, const char *file,
-                                 const char *fn);
-
 extern char *cfs_trace_console_buffers[NR_CPUS][CFS_TCD_TYPE_MAX];
 extern enum cfs_trace_buf_type cfs_trace_buf_idx_get(void);
 
@@ -252,10 +233,6 @@ static inline char *cfs_trace_get_console_buffer(void)
        return cfs_trace_console_buffers[i][j];
 }
 
-int cfs_trace_refill_stock(struct cfs_trace_cpu_data *tcd, gfp_t gfp,
-                               struct list_head *stock);
-
-
 int cfs_tcd_owns_tage(struct cfs_trace_cpu_data *tcd,
                       struct cfs_trace_page *tage);