qcacmn: Add qdf_print_thread_trace API

Add an abstraction to QDF for printing the stack trace of a given
thread.

Change-Id: Ibea6e6bed7f3ebe67538b8ea8b6b437b643d5541
CRs-Fixed: 2088806
This commit is contained in:
Dustin Brown
2017-08-04 17:01:11 -07:00
committed by snandini
parent 7b32946958
commit a86de10a9a
5 changed files with 67 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2016 The Linux Foundation. All rights reserved.
* Copyright (c) 2014-2017 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -34,7 +34,9 @@
#define __QDF_THREADS_H
#include <qdf_types.h>
#include <qdf_util.h>
#include "i_qdf_threads.h"
typedef __qdf_thread_t qdf_thread_t;
/* Function declarations and documenation */
@@ -71,4 +73,12 @@ qdf_thread_t *qdf_create_thread(int (*thread_handler)(void *data), void *data,
*/
int qdf_wake_up_process(qdf_thread_t *thread);
/**
* qdf_print_stack_trace_thread() - prints the stack trace of the given thread
* @thread: the thread for which the stack trace will be printed
*
* Return: None
*/
void qdf_print_thread_trace(qdf_thread_t *thread);
#endif /* __QDF_THREADS_H */