Project

General

Profile

Actions

Bug #2734

open

Aspectator incorrectly weaves calls to functions returning void *

Added by Evgeny Novikov over 12 years ago. Updated almost 9 years ago.

Status:
Open
Priority:
High
Category:
Weaving
Start date:
04/10/2012
Due date:
% Done:

0%

Estimated time:
Detected in build:
svn
Platform:
Published in build:

Description

Because of this reason one cannot write aspects, like:

after: call(static inline void *kzalloc(..))
{
  if ($res != 0)
  {
    ldv_alloc_count++;
  }
}

Actions #1

Updated by Evgeny Novikov over 12 years ago

There is a working workaround for this issue:

around: execution(static inline void *kzalloc(..))
{
  void *res;

  res = $proceed;

  if (res != 0)
  {
    ldv_alloc_count++;
  }

  return res;
}

Actions #2

Updated by Evgeny Novikov about 12 years ago

  • Project changed from Linux Driver Verification to C Instrumentation Framework
  • Category deleted (15)
Actions #3

Updated by Evgeny Novikov almost 9 years ago

  • Category set to Weaving
  • Priority changed from Normal to High
Actions

Also available in: Atom PDF