summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra
diff options
context:
space:
mode:
authorAcorn Pooley <apooley@nvidia.com>2010-03-10 17:34:49 -0800
committerGary King <gking@nvidia.com>2010-03-11 18:27:23 -0800
commit6b3516aed2dd9a4fdf062a291cdb95058d26b153 (patch)
treec3e00d1cea98c206a4bd7a752f9f4e015c4cd61c /arch/arm/mach-tegra
parentdf55060db23f1b246488c3007133f2bf35a7436f (diff)
Export NvULowestBitSet and NvOsGetProcessInfo.
pre-existing NvULowestBitSet must be exported for upcoming channel-in-kernel change NvOsGetProcessInfo is useful for debugging. Implemented and exported. Change-Id: I9265626bc4496589a71c6b3517af44d8571a2c2e Reviewed-on: http://git-master/r/828 Reviewed-by: Acorn Pooley <apooley@nvidia.com> Tested-by: Acorn Pooley <apooley@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra')
-rw-r--r--arch/arm/mach-tegra/include/nvos.h3
-rw-r--r--arch/arm/mach-tegra/nvos/nvos.c5
-rw-r--r--arch/arm/mach-tegra/nvos/nvos_exports.c2
3 files changed, 8 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/include/nvos.h b/arch/arm/mach-tegra/include/nvos.h
index 450bb0e21857..9f05fcd905d1 100644
--- a/arch/arm/mach-tegra/include/nvos.h
+++ b/arch/arm/mach-tegra/include/nvos.h
@@ -2368,12 +2368,12 @@ typedef enum
typedef void (*NvOsDumpCallback)(void* context, const char* line);
void NvOsDumpToDebugPrintf(void* context, const char* line);
+void NvOsGetProcessInfo(char* buf, NvU32 len);
/* implemented by the OS-backend, for now CE and Linux only */
#if (NVOS_IS_WINDOWS_CE || NVOS_IS_LINUX)
NvCallstack* NvOsCreateCallstack (NvOsCallstackType stackType);
void NvOsGetStackFrame (char* buf, NvU32 len, NvCallstack* stack, NvU32 level);
-void NvOsGetProcessInfo (char* buf, NvU32 len);
void NvOsDestroyCallstack (NvCallstack* callstack);
NvU32 NvOsHashCallstack (NvCallstack* stack);
void NvOsDumpCallstack (NvCallstack* stack, NvU32 skip, NvOsDumpCallback callBack, void* context);
@@ -2383,7 +2383,6 @@ NvU32 NvOsCallstackGetNumLevels(NvCallstack* stack);
static NV_INLINE NvCallstack* NvOsCreateCallstack (NvOsCallstackType stackType) { return NULL; }
static NV_INLINE void NvOsGetStackFrame (char* buf, NvU32 len, NvCallstack* stack, NvU32 level) { NvOsStrncpy(buf, "<stack>", len); }
static NV_INLINE void NvOsDestroyCallstack (NvCallstack* callstack) { }
-static NV_INLINE void NvOsGetProcessInfo (char* buf, NvU32 len) {NvOsStrncpy(buf, "<procinfo>", len);}
static NV_INLINE NvU32 NvOsHashCallstack (NvCallstack* stack) { return 0; }
static NV_INLINE void NvOsDumpCallstack (NvCallstack* stack, NvU32 skip, NvOsDumpCallback callBack, void* context) { }
static NvBool NV_INLINE NvOsCallstackContainsPid (NvCallstack* stack, NvU32 pid) { return NV_FALSE; }
diff --git a/arch/arm/mach-tegra/nvos/nvos.c b/arch/arm/mach-tegra/nvos/nvos.c
index d0b19f792c86..b45454b9e515 100644
--- a/arch/arm/mach-tegra/nvos/nvos.c
+++ b/arch/arm/mach-tegra/nvos/nvos.c
@@ -1524,6 +1524,11 @@ void NvOsFreeLeak( void *ptr, const char *f, int l )
}
#endif
+void NvOsGetProcessInfo(char* buf, NvU32 len)
+{
+ NvOsSnprintf(buf,len, "(kernel pid=%d)", current->pid);
+}
+
#if (NVOS_TRACE || NV_DEBUG)
void NvOsSetResourceAllocFileLine(void* userptr, const char* file, int line)
{
diff --git a/arch/arm/mach-tegra/nvos/nvos_exports.c b/arch/arm/mach-tegra/nvos/nvos_exports.c
index 916daca3ec28..447e12918bcb 100644
--- a/arch/arm/mach-tegra/nvos/nvos_exports.c
+++ b/arch/arm/mach-tegra/nvos/nvos_exports.c
@@ -156,4 +156,6 @@ EXPORT_SYMBOL(NvOsTlsAlloc);
EXPORT_SYMBOL(NvOsTlsFree);
EXPORT_SYMBOL(NvOsTlsGet);
EXPORT_SYMBOL(NvOsTlsSet);
+EXPORT_SYMBOL(NvULowestBitSet);
+EXPORT_SYMBOL(NvOsGetProcessInfo);
#endif /* NVOS_IS_LINUX_KERNEL */