X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=libcfs%2Flibcfs%2Ftracefile.h;h=d1892957d2d3ff6e40da342c65847ac38782a4fa;hb=0d7a6d1d8df4756aa791f3574dc36ed01c4bbf36;hp=6eed697af95ae9d6e50617d179decd61ca1481f3;hpb=c64a87cede3b070573ed0062d98fc33be34111b8;p=fs%2Flustre-release.git diff --git a/libcfs/libcfs/tracefile.h b/libcfs/libcfs/tracefile.h index 6eed697..d189295 100644 --- a/libcfs/libcfs/tracefile.h +++ b/libcfs/libcfs/tracefile.h @@ -27,7 +27,7 @@ * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. * - * Copyright (c) 2012, Intel Corporation. + * Copyright (c) 2012, 2014, Intel Corporation. */ /* * This file is part of Lustre, http://www.lustre.org/ @@ -39,17 +39,25 @@ #include -#ifdef __KERNEL__ -# include "linux/linux-tracefile.h" -#else /* __KERNEL__ */ -# include "posix/posix-tracefile.h" -#endif /* !__KERNEL__ */ +typedef enum { + CFS_TCD_TYPE_PROC = 0, + CFS_TCD_TYPE_SOFTIRQ, + CFS_TCD_TYPE_IRQ, + CFS_TCD_TYPE_MAX +} cfs_trace_buf_type_t; + /* trace file lock routines */ #define TRACEFILE_NAME_SIZE 1024 extern char cfs_tracefile[TRACEFILE_NAME_SIZE]; extern long long cfs_tracefile_size; +extern char lnet_upcall[1024]; +/** + * The path of debug log dump upcall script. + */ +extern char lnet_debug_log_upcall[1024]; + extern void libcfs_run_debug_log_upcall(char *file); int cfs_tracefile_init_arch(void); @@ -258,13 +266,6 @@ extern void cfs_print_to_console(struct ptldebug_header *hdr, int mask, extern int cfs_trace_lock_tcd(struct cfs_trace_cpu_data *tcd, int walking); extern void cfs_trace_unlock_tcd(struct cfs_trace_cpu_data *tcd, int walking); -/** - * trace_buf_type_t, trace_buf_idx_get() and trace_console_buffers[][] - * are not public libcfs API; they should be defined in - * platform-specific tracefile include files - * (see, for example, linux-tracefile.h). - */ - extern char *cfs_trace_console_buffers[NR_CPUS][CFS_TCD_TYPE_MAX]; extern cfs_trace_buf_type_t cfs_trace_buf_idx_get(void);